locked
After depolyiong customisation error on export RRS feed

  • Question

  • Hi

    We have modified the account entity, just added a couple of attributes and some javascript. When the entity is exported from our dev environment, along with a number of other custom entities, to another environment it imports fine then publishes fine. The problems start when I try to export the account from the new environment as soon as I click export it throws an error, not the normal CRM error but just an error page:

    Which is not that helpful.

     

    Any help would be much apprictiated


    SQL Server and .Net developer using VB for the most part but a little C#
    Monday, October 31, 2011 2:06 AM

Answers

All replies

  • Hi MayBoy,

    The error description is common at CRM. Can you please run the trace and post it.?

    Thanks

     


    VenkataP
    Monday, October 31, 2011 7:22 AM
  • Here is the output from the trace log, it is showing a null reference exception, but it doesn't say which label is null?

     

     

    # CRM Tracing Version 2.0
    # LocalTime: 2011-10-31 20:41:58.5
    # Categories:
    # CallStackOn: No
    # ComputerName: MYCRM
    # CRMVersion: 4.0.7333.3414
    # DeploymentType: OnPremise
    # ScaleGroup:
    # ServerRole: AppServer, AsyncService, DiscoveryService, WebService, ApiServer, HelpServer, DeploymentService

    [2011-10-31 20:41:58.5] Process: w3wp |Organization:ba3ee8f3-f8ad-4765-a886-c638e283bb6a |Thread:    1 |Category: Platform |User: 815ebdd2-8735-41da-97f9-c5abac665d8f |Level: Error | MessageProcessor.Execute
    >MessageProcessor fail to process message 'ExportCompressed' for 'none'.
    [2011-10-31 20:41:58.5] Process: w3wp |Organization:ba3ee8f3-f8ad-4765-a886-c638e283bb6a |Thread:    1 |Category: Platform.Sdk |User: 815ebdd2-8735-41da-97f9-c5abac665d8f |Level: Error | InProcessCrmService.Execute
    >non-plugin non- CrmException detected - report will be sent to Watson:
    System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object.
       at Microsoft.Crm.ObjectModel.OrganizationUIService.LabelLoaderAllLanguages.LoadMetadataLabel(Int32 entityType, String attributeName, ExecutionContext context)
       at Microsoft.Crm.ObjectModel.OrganizationUIService.LabelLoader.LoadCellLabel(Guid cellObjectId, String cellObjectColumnName, Int32 objectType, String attributeName, ExecutionContext context)
       at Microsoft.Crm.ObjectModel.OrganizationUIService.InsertFormLabels(IBusinessEntity entity, ILabelLoader labelLoader, ExecutionContext context)
       at Microsoft.Crm.ObjectModel.OrganizationUIService.RetrieveMultipleWithAllLanguages(EntityExpression entityExpression, ExecutionContext context)
       at Microsoft.Crm.Metadata.OrganizationUIHelper.RetrieveInProductionHelper(Int32 objectTypeCode, ExecutionContext context)
       at Microsoft.Crm.Tools.ImportExportPublish.FormXmlHandler.ExportItem(XmlDocument importDocument)
       at Microsoft.Crm.Tools.ImportExportPublish.ExportHandler.Export(XmlDocument XDoc)
       at Microsoft.Crm.Tools.ImportExportPublish.ExportHandler.Export(XmlDocument XDoc)
       at Microsoft.Crm.Tools.ImportExportPublish.RootExportHandler.RunExport(String[] ExportEntities, String[] ExportRoles, String[] ExportWorkflows, ExportMask Mask)
       at Microsoft.Crm.Tools.ImportExportPublish.ExportXml.RunExport(String xmlArgs, XmlDocument& ExportDoc)
       at Microsoft.Crm.WebServices.ExportXmlService.ExportCompressed(String entities, String embeddedFileName, ExecutionContext context)
       --- End of inner exception stack trace ---
       at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
       at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
       at System.Web.Services.Protocols.LogicalMethodInfo.Invoke(Object target, Object[] values)
       at Microsoft.Crm.Extensibility.InternalOperationPlugin.Execute(IPluginExecutionContext context)
       at Microsoft.Crm.Extensibility.PluginStep.Execute(PipelineExecutionContext context)
       at Microsoft.Crm.Extensibility.Pipeline.Execute(PipelineExecutionContext context)
       at Microsoft.Crm.Extensibility.MessageProcessor.Execute(PipelineExecutionContext context)
       at Microsoft.Crm.Extensibility.InternalMessageDispatcher.Execute(PipelineExecutionContext context)
       at Microsoft.Crm.Extensibility.ExternalMessageDispatcher.Execute(String messageName, Int32 primaryObjectTypeCode, Int32 secondaryObjectTypeCode, PropertyBag fields, CorrelationToken correlationToken, CallerOriginToken originToken, UserAuth userAuth, Guid callerId)
       at Microsoft.Crm.Sdk.RequestBase.Process(Int32 primaryObjectTypeCode, Int32 secondaryObjectTypeCode, CorrelationToken correlationToken, CallerOriginToken originToken, UserAuth userAuth, Guid callerId)
       at Microsoft.Crm.Sdk.RequestBase.Process(CorrelationToken correlationToken, CallerOriginToken originToken, UserAuth userAuth, Guid callerId)
       at Microsoft.Crm.Sdk.CrmServiceInternal.Execute(RequestBase request, CorrelationToken correlationToken, CallerOriginToken originToken, UserAuth userAuth, Guid callerId)
       at Microsoft.Crm.Sdk.InProcessCrmService.Execute(Object request)
    [2011-10-31 20:41:58.8] Process: w3wp |Organization:ba3ee8f3-f8ad-4765-a886-c638e283bb6a |Thread:    1 |Category: Application |User: 00000000-0000-0000-0000-000000000000 |Level: Error | ErrorInformation.LogError
    >MSCRM Error Report:
    --------------------------------------------------------------------------------------------------------
    Error: Exception of type 'System.Web.HttpUnhandledException' was thrown.

    Error Message: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Error Details: Exception of type 'System.Web.HttpUnhandledException' was thrown.

    Source File: Not available

    Line Number: Not available

    Request URL: http://localhost:5555/MtOrganisation/_grid/cmds/dlg_exportcustomizations.aspx

    Stack Trace Info: [NullReferenceException: Object reference not set to an instance of an object.]
       at Microsoft.Crm.ObjectModel.OrganizationUIService.LabelLoaderAllLanguages.LoadMetadataLabel(Int32 entityType, String attributeName, ExecutionContext context)
       at Microsoft.Crm.ObjectModel.OrganizationUIService.LabelLoader.LoadCellLabel(Guid cellObjectId, String cellObjectColumnName, Int32 objectType, String attributeName, ExecutionContext context)
       at Microsoft.Crm.ObjectModel.OrganizationUIService.InsertFormLabels(IBusinessEntity entity, ILabelLoader labelLoader, ExecutionContext context)
       at Microsoft.Crm.ObjectModel.OrganizationUIService.RetrieveMultipleWithAllLanguages(EntityExpression entityExpression, ExecutionContext context)
       at Microsoft.Crm.Metadata.OrganizationUIHelper.RetrieveInProductionHelper(Int32 objectTypeCode, ExecutionContext context)
       at Microsoft.Crm.Tools.ImportExportPublish.FormXmlHandler.ExportItem(XmlDocument importDocument)
       at Microsoft.Crm.Tools.ImportExportPublish.ExportHandler.Export(XmlDocument XDoc)
       at Microsoft.Crm.Tools.ImportExportPublish.ExportHandler.Export(XmlDocument XDoc)
       at Microsoft.Crm.Tools.ImportExportPublish.RootExportHandler.RunExport(String[] ExportEntities, String[] ExportRoles, String[] ExportWorkflows, ExportMask Mask)
       at Microsoft.Crm.Tools.ImportExportPublish.ExportXml.RunExport(String xmlArgs, XmlDocument& ExportDoc)
       at Microsoft.Crm.WebServices.ExportXmlService.ExportCompressed(String entities, String embeddedFileName, ExecutionContext context)

    [TargetInvocationException: Exception has been thrown by the target of an invocation.]
       at Microsoft.Crm.Application.Utility.Util.RaiseXMLError(Exception exception)
       at Microsoft.Crm.Dialogs.ExportCustomizationsPage.ConfigureForm()
       at Microsoft.Crm.Application.Controls.AppUIPage.OnPreRender(EventArgs e)
       at System.Web.UI.Control.PreRenderRecursiveInternal()
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

    [HttpUnhandledException: Exception of type 'System.Web.HttpUnhandledException' was thrown.]
       at System.Web.UI.Page.HandleError(Exception e)
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
       at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
       at System.Web.UI.Page.ProcessRequest()
       at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)
       at System.Web.UI.Page.ProcessRequest(HttpContext context)
       at ASP.mtorganisation__grid_cmds_dlg_exportcustomizations_aspx.ProcessRequest(HttpContext context)
       at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
       at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

     


    SQL Server and .Net developer using VB for the most part but a little C#
    Tuesday, November 1, 2011 3:52 AM
  • It seems worth noting that the issue appears to maybe have something to do with working with localized labels.  I would check to see what language packs you have installed and provisioned and verify that you are bringing over your localized labels with your customizations

    http://mileyja.blogspot.com/2011/08/retrieve-installed-language-packs-in.html

    http://mileyja.blogspot.com/2011/11/retrieve-version-of-installed-multi.html

    http://mileyja.blogspot.com/2011/10/retrieve-installed-multi-language-pack.html

    http://mileyja.blogspot.com/2011/10/retrieve-list-of-provision-languages-in.html


    Jamie Miley
    Check out my about.me profile!
    http://mileyja.blogspot.com
    Linked-In Profile
    Follow Me on Twitter!
    Wednesday, November 2, 2011 3:31 PM
    Moderator
  • Hi Jamie

    We are using CRM 4.


    CRM 4, SQL Server and .Net developer using C#
    Wednesday, November 2, 2011 8:21 PM
  • I see, so are you using localized labels at all in your organizations?
    Jamie Miley
    Check out my about.me profile!
    http://mileyja.blogspot.com
    Linked-In Profile
    Follow Me on Twitter!
    Wednesday, November 2, 2011 8:27 PM
    Moderator
  • Yes, we have added a couple of attributes with localised labels on the form.


    CRM 4, SQL Server and .Net developer using C#
    Wednesday, November 2, 2011 8:59 PM
  • Thanks for all your help Jamie we have raised a Microsoft support issue for this now, they have looked at te localised labels and it wasn't that, I will update when they find a solution. Thanks again
    CRM 4, SQL Server and .Net developer using C#
    Thursday, November 3, 2011 8:53 PM
  • Thursday, November 3, 2011 8:55 PM
    Moderator
  • Wednesday, July 11, 2012 6:47 PM
    Moderator
  • We did, Nicrosoft gave us a tools that shows which attribute is causing the error, when I ran it it pointed to a lookup that was looking up from an entity that we havd not exported, once we added that entity to the customisations the problem was fixed
    Wednesday, July 11, 2012 8:03 PM
  • Weird.  This was an older thread.  I hope this issue has been fixed with rollups.  The solution should never have successfully imported and published in this instance.

    Jamie Miley
    Check out my about.me profile!
    http://mileyja.blogspot.com
    Linked-In Profile
    Follow Me on Twitter!

    Wednesday, July 11, 2012 8:08 PM
    Moderator
  • Hi,

    is-it possible to obtain the tools ? I have the same issue with the 'lead' entity.

    thanks

    Friday, August 31, 2012 1:15 PM