locked
CRM 2011: Error while importing solution RRS feed

  • Question

  • I am getting an error when I try to update an entity with import solution. The error says "A SQL Server error occurred." We are still working with CRM RC

    This is the trace log:

    [2011-02-24 11:39:52.519] Process: w3wp |Organization:964da486-37f3-450d-aee2-742ba52d5195 |Thread: 292 |Category: Platform.Metadata |User: 4958996a-1052-4888-ba20-38a0fbc9dd3b |Level: Error | EntityService.UpdateNoPrivilegeChecks
    >EntityService.Update caught exception: System.NullReferenceException: Object reference not set to an instance of an object.
      at Microsoft.Crm.Metadata.AttributeService.UpdateInternal(Guid attributeId, AttributeInfo attributeInfo, MetadataHelper metadataHelper, Boolean mergeLabels, ContextModifierOption modifierOption, ExecutionContext context)
      at Microsoft.Crm.Metadata.EntityService.ProcessAttribute(AttributeInfo attributeInfo, Dictionary`2 existedAttributeList, MetadataHelper metadataHelper, ExecutionContext context)
      at Microsoft.Crm.Metadata.EntityService.ProcessAttributeList(Guid entityId, AttributeProcessInfo attributeProcessInfo, MetadataHelper metadataHelper, ExecutionContext context)
      at Microsoft.Crm.Metadata.EntityService.UpdateInternal(Guid entityId, EntityUpdateInfo entityInfo, ExecutionContext context, MetadataHelper metadataHelper, Boolean mergeLabels)
      at Microsoft.Crm.Metadata.EntityService.UpdateNoPrivilegeChecks(Guid entityId, EntityUpdateInfo entityInfo, ExecutionContext context, MetadataHelper metadataHelper, Boolean mergeLabels)
    [2011-02-24 11:39:52.551] Process: w3wp |Organization:964da486-37f3-450d-aee2-742ba52d5195 |Thread: 292 |Category: Exception |User: 4958996a-1052-4888-ba20-38a0fbc9dd3b |Level: Error | CrmException..ctor
    	at CrmException..ctor(String message, Exception innerException, Int32 errorCode, Boolean isFlowControlException)
    	at CrmException..ctor(String message, Exception innerException, Int32 errorCode)
    	at RootImportHandler.RunImport(String[] ImportEntities)
    	at ImportXml.RunImport(String[] ImportEntities)
    	at ImportXml.RunImport()
    	at ImportXmlService.ImportSolution(Boolean overwriteUnmanagedCustomizations, Boolean publishWorkflows, Byte[] customizationFile, Guid importJobId, Boolean convertToManaged, ExecutionContext context)
    	at RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
    	at RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
    	at RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
    	at LogicalMethodInfo.Invoke(Object target, Object[] values)
    	at InternalOperationPlugin.Execute(IServiceProvider serviceProvider)
    	at V5PluginProxyStep.ExecuteInternal(PipelineExecutionContext context)
    	at VersionedPluginProxyStepBase.Execute(PipelineExecutionContext context)
    	at Pipeline.Execute(PipelineExecutionContext context)
    	at MessageProcessor.Execute(PipelineExecutionContext context)
    	at InternalMessageDispatcher.Execute(PipelineExecutionContext context)
    	at ExternalMessageDispatcher.ExecuteInternal(IInProcessOrganizationServiceFactory serviceFactory, IPlatformMessageDispatcherFactory dispatcherFactory, String messageName, String requestName, Int32 primaryObjectTypeCode, Int32 secondaryObjectTypeCode, ParameterCollection fields, CorrelationToken correlationToken, CallerOriginToken originToken, UserAuth userAuth, Guid callerId, Guid transactionContextId, Int32 invocationSource, Nullable`1 requestId, Version endpointVersion)
    	at OrganizationSdkServiceInternal.ExecuteRequest(OrganizationRequest request, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType)
    	at OrganizationSdkServiceInternal.Execute(OrganizationRequest request, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType)
    	at InprocessServiceProxy.ExecuteCore(OrganizationRequest request)
    	at PlatformCommand.XrmExecuteInternal()
    	at ImportSolutionCommand.Execute()
    	at DataSource.ImportSolution(Byte[] customizationFile, Boolean overwriteUnmanagedCustomizations, Boolean publishWorkflows, Guid importJobId, Boolean convertToManaged, IOrganizationContext context)
    	at SolutionImportProcessPage.ImportSolution()
    	at SolutionImportProcessPage.ProcessRequestData()
    	at SolutionImportProcessPage.ConfigurePage()
    	at AppUIPage.OnPreRender(EventArgs e)
    	at Control.PreRenderRecursiveInternal()
    	at Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
    	at Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
    	at Page.ProcessRequest()
    	at Page.ProcessRequest(HttpContext context)
    	at CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
    	at HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
    	at ApplicationStepManager.ResumeSteps(Exception error)
    	at HttpApplication.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData)
    	at HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr)
    	at ISAPIRuntime.ProcessRequest(IntPtr ecb, Int32 iWRType)
    >Crm Exception: Message: Import failed, ErrorCode: -2147188706, InnerException: System.NullReferenceException: Object reference not set to an instance of an object.
      at Microsoft.Crm.Metadata.AttributeService.UpdateInternal(Guid attributeId, AttributeInfo attributeInfo, MetadataHelper metadataHelper, Boolean mergeLabels, ContextModifierOption modifierOption, ExecutionContext context)
      at Microsoft.Crm.Metadata.EntityService.ProcessAttribute(AttributeInfo attributeInfo, Dictionary`2 existedAttributeList, MetadataHelper metadataHelper, ExecutionContext context)
      at Microsoft.Crm.Metadata.EntityService.ProcessAttributeList(Guid entityId, AttributeProcessInfo attributeProcessInfo, MetadataHelper metadataHelper, ExecutionContext context)
      at Microsoft.Crm.Metadata.EntityService.UpdateInternal(Guid entityId, EntityUpdateInfo entityInfo, ExecutionContext context, MetadataHelper metadataHelper, Boolean mergeLabels)
      at Microsoft.Crm.Metadata.EntityService.UpdateNoPrivilegeChecks(Guid entityId, EntityUpdateInfo entityInfo, ExecutionContext context, MetadataHelper metadataHelper, Boolean mergeLabels)
      at Microsoft.Crm.Metadata.EntityService.Update(Guid entityId, EntityUpdateInfo entityInfo, Boolean mergeLabels, ExecutionContext context)
      at Microsoft.Crm.Metadata.EntityService.Update(Guid entityId, EntityUpdateInfo entityInfo, ExecutionContext context)
      at Microsoft.Crm.Tools.ImportExportPublish.ImportEntityHandler.CreateEntityAndAttributesFromNode(XmlNode entityNode)
      at Microsoft.Crm.Tools.ImportExportPublish.ImportEntityHandler.ImportItem()
      at Microsoft.Crm.Tools.ImportExportPublish.ImportHandler.Import()
      at Microsoft.Crm.Tools.ImportExportPublish.RootImportHandler.RunImport(String[] ImportEntities)
    [2011-02-24 11:39:52.551] Process: w3wp |Organization:964da486-37f3-450d-aee2-742ba52d5195 |Thread: 292 |Category: Platform.Sdk |User: 4958996a-1052-4888-ba20-38a0fbc9dd3b |Level: Error | VersionedPluginProxyStepBase.Execute
    >Web Service Plug-in failed in SdkMessageProcessingStepId: {1B830950-E106-4EE1-B3FD-D348CB65DC8D}; EntityName: none; Stage: 30; MessageName: ImportSolution; AssemblyName: Microsoft.Crm.Extensibility.InternalOperationPlugin, Microsoft.Crm.ObjectModel, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35; ClassName: Microsoft.Crm.Extensibility.InternalOperationPlugin; Exception: Unhandled Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
      at System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType 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(IServiceProvider serviceProvider)
      at Microsoft.Crm.Extensibility.V5PluginProxyStep.ExecuteInternal(PipelineExecutionContext context)
      at Microsoft.Crm.Extensibility.VersionedPluginProxyStepBase.Execute(PipelineExecutionContext context)
    Inner Exception: Microsoft.Crm.Tools.ImportExportPublish.ImportGenericException: Import failed
      at Microsoft.Crm.Tools.ImportExportPublish.ImportXml.RunImport(String[] ImportEntities)
      at Microsoft.Crm.Tools.ImportExportPublish.ImportXml.RunImport()
      at Microsoft.Crm.WebServices.ImportXmlService.ImportSolution(Boolean overwriteUnmanagedCustomizations, Boolean publishWorkflows, Byte[] customizationFile, Guid importJobId, Boolean convertToManaged, ExecutionContext context)
    Inner Exception: System.NullReferenceException: Object reference not set to an instance of an object.
      at Microsoft.Crm.Metadata.AttributeService.UpdateInternal(Guid attributeId, AttributeInfo attributeInfo, MetadataHelper metadataHelper, Boolean mergeLabels, ContextModifierOption modifierOption, ExecutionContext context)
      at Microsoft.Crm.Metadata.EntityService.ProcessAttribute(AttributeInfo attributeInfo, Dictionary`2 existedAttributeList, MetadataHelper metadataHelper, ExecutionContext context)
      at Microsoft.Crm.Metadata.EntityService.ProcessAttributeList(Guid entityId, AttributeProcessInfo attributeProcessInfo, MetadataHelper metadataHelper, ExecutionContext context)
      at Microsoft.Crm.Metadata.EntityService.UpdateInternal(Guid entityId, EntityUpdateInfo entityInfo, ExecutionContext context, MetadataHelper metadataHelper, Boolean mergeLabels)
      at Microsoft.Crm.Metadata.EntityService.UpdateNoPrivilegeChecks(Guid entityId, EntityUpdateInfo entityInfo, ExecutionContext context, MetadataHelper metadataHelper, Boolean mergeLabels)
      at Microsoft.Crm.Metadata.EntityService.Update(Guid entityId, EntityUpdateInfo entityInfo, Boolean mergeLabels, ExecutionContext context)
      at Microsoft.Crm.Metadata.EntityService.Update(Guid entityId, EntityUpdateInfo entityInfo, ExecutionContext context)
      at Microsoft.Crm.Tools.ImportExportPublish.ImportEntityHandler.CreateEntityAndAttributesFromNode(XmlNode entityNode)
      at Microsoft.Crm.Tools.ImportExportPublish.ImportEntityHandler.ImportItem()
      at Microsoft.Crm.Tools.ImportExportPublish.ImportHandler.Import()
      at Microsoft.Crm.Tools.ImportExportPublish.RootImportHandler.RunImport(String[] ImportEntities)
    .
    [2011-02-24 11:39:52.551] Process: w3wp |Organization:964da486-37f3-450d-aee2-742ba52d5195 |Thread: 292 |Category: Exception |User: 4958996a-1052-4888-ba20-38a0fbc9dd3b |Level: Error | CrmException..ctor
    	at CrmException..ctor(String message, Exception innerException, Int32 errorCode, Boolean isFlowControlException)
    	at CrmException..ctor(String message, Exception innerException, Int32 errorCode)
    	at RuntimeMethodHandle._InvokeConstructor(IRuntimeMethodInfo method, Object[] args, SignatureStruct& signature, RuntimeType declaringType)
    	at RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
    	at RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
    	at VersionedPluginProxyStepBase.WrapExceptionToThrow(CrmException exception)
    	at VersionedPluginProxyStepBase.Execute(PipelineExecutionContext context)
    	at Pipeline.Execute(PipelineExecutionContext context)
    	at MessageProcessor.Execute(PipelineExecutionContext context)
    	at InternalMessageDispatcher.Execute(PipelineExecutionContext context)
    	at ExternalMessageDispatcher.ExecuteInternal(IInProcessOrganizationServiceFactory serviceFactory, IPlatformMessageDispatcherFactory dispatcherFactory, String messageName, String requestName, Int32 primaryObjectTypeCode, Int32 secondaryObjectTypeCode, ParameterCollection fields, CorrelationToken correlationToken, CallerOriginToken originToken, UserAuth userAuth, Guid callerId, Guid transactionContextId, Int32 invocationSource, Nullable`1 requestId, Version endpointVersion)
    	at OrganizationSdkServiceInternal.ExecuteRequest(OrganizationRequest request, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType)
    	at OrganizationSdkServiceInternal.Execute(OrganizationRequest request, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType)
    	at InprocessServiceProxy.ExecuteCore(OrganizationRequest request)
    	at PlatformCommand.XrmExecuteInternal()
    	at ImportSolutionCommand.Execute()
    	at DataSource.ImportSolution(Byte[] customizationFile, Boolean overwriteUnmanagedCustomizations, Boolean publishWorkflows, Guid importJobId, Boolean convertToManaged, IOrganizationContext context)
    	at SolutionImportProcessPage.ImportSolution()
    	at SolutionImportProcessPage.ProcessRequestData()
    	at SolutionImportProcessPage.ConfigurePage()
    	at AppUIPage.OnPreRender(EventArgs e)
    	at Control.PreRenderRecursiveInternal()
    	at Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
    	at Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
    	at Page.ProcessRequest()
    	at Page.ProcessRequest(HttpContext context)
    	at CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
    	at HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
    	at ApplicationStepManager.ResumeSteps(Exception error)
    	at HttpApplication.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData)
    	at HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr)
    	at ISAPIRuntime.ProcessRequest(IntPtr ecb, Int32 iWRType)
    >Crm Exception: Message: Import failed, ErrorCode: -2147188706, InnerException: Microsoft.Crm.Tools.ImportExportPublish.ImportGenericException: Import failed ---> System.NullReferenceException: Object reference not set to an instance of an object.
      at Microsoft.Crm.Metadata.AttributeService.UpdateInternal(Guid attributeId, AttributeInfo attributeInfo, MetadataHelper metadataHelper, Boolean mergeLabels, ContextModifierOption modifierOption, ExecutionContext context)
      at Microsoft.Crm.Metadata.EntityService.ProcessAttribute(AttributeInfo attributeInfo, Dictionary`2 existedAttributeList, MetadataHelper metadataHelper, ExecutionContext context)
      at Microsoft.Crm.Metadata.EntityService.ProcessAttributeList(Guid entityId, AttributeProcessInfo attributeProcessInfo, MetadataHelper metadataHelper, ExecutionContext context)
      at Microsoft.Crm.Metadata.EntityService.UpdateInternal(Guid entityId, EntityUpdateInfo entityInfo, ExecutionContext context, MetadataHelper metadataHelper, Boolean mergeLabels)
      at Microsoft.Crm.Metadata.EntityService.UpdateNoPrivilegeChecks(Guid entityId, EntityUpdateInfo entityInfo, ExecutionContext context, MetadataHelper metadataHelper, Boolean mergeLabels)
      at Microsoft.Crm.Metadata.EntityService.Update(Guid entityId, EntityUpdateInfo entityInfo, Boolean mergeLabels, ExecutionContext context)
      at Microsoft.Crm.Metadata.EntityService.Update(Guid entityId, EntityUpdateInfo entityInfo, ExecutionContext context)
      at Microsoft.Crm.Tools.ImportExportPublish.ImportEntityHandler.CreateEntityAndAttributesFromNode(XmlNode entityNode)
      at Microsoft.Crm.Tools.ImportExportPublish.ImportEntityHandler.ImportItem()
      at Microsoft.Crm.Tools.ImportExportPublish.ImportHandler.Import()
      at Microsoft.Crm.Tools.ImportExportPublish.RootImportHandler.RunImport(String[] ImportEntities)
      --- End of inner exception stack trace ---
      at Microsoft.Crm.Tools.ImportExportPublish.ImportXml.RunImport(String[] ImportEntities)
      at Microsoft.Crm.Tools.ImportExportPublish.ImportXml.RunImport()
      at Microsoft.Crm.WebServices.ImportXmlService.ImportSolution(Boolean overwriteUnmanagedCustomizations, Boolean publishWorkflows, Byte[] customizationFile, Guid importJobId, Boolean convertToManaged, ExecutionContext context)
    [2011-02-24 11:39:52.551] Process: w3wp |Organization:964da486-37f3-450d-aee2-742ba52d5195 |Thread: 292 |Category: Platform |User: 4958996a-1052-4888-ba20-38a0fbc9dd3b |Level: Error | MessageProcessor.Execute
    >MessageProcessor fail to process message 'ImportSolution' for 'none'.
    [2011-02-24 11:39:52.551] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread: 292 |Category: Platform |User: 00000000-0000-0000-0000-000000000000 |Level: Error | ExceptionConverter.ConvertMessageAndErrorCode
    >System.NullReferenceException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #E32B1116: System.NullReferenceException: Object reference not set to an instance of an object.
    >  at Microsoft.Crm.Metadata.AttributeService.UpdateInternal(Guid attributeId, AttributeInfo attributeInfo, MetadataHelper metadataHelper, Boolean mergeLabels, ContextModifierOption modifierOption, ExecutionContext context)
    >  at Microsoft.Crm.Metadata.EntityService.ProcessAttribute(AttributeInfo attributeInfo, Dictionary`2 existedAttributeList, MetadataHelper metadataHelper, ExecutionContext context)
    >  at Microsoft.Crm.Metadata.EntityService.ProcessAttributeList(Guid entityId, AttributeProcessInfo attributeProcessInfo, MetadataHelper metadataHelper, ExecutionContext context)
    >  at Microsoft.Crm.Metadata.EntityService.UpdateInternal(Guid entityId, EntityUpdateInfo entityInfo, ExecutionContext context, MetadataHelper metadataHelper, Boolean mergeLabels)
    >  at Microsoft.Crm.Metadata.EntityService.UpdateNoPrivilegeChecks(Guid entityId, EntityUpdateInfo entityInfo, ExecutionContext context, MetadataHelper metadataHelper, Boolean mergeLabels)
    >  at Microsoft.Crm.Metadata.EntityService.Update(Guid entityId, EntityUpdateInfo entityInfo, Boolean mergeLabels, ExecutionContext context)
    >  at Microsoft.Crm.Metadata.EntityService.Update(Guid entityId, EntityUpdateInfo entityInfo, ExecutionContext context)
    >  at Microsoft.Crm.Tools.ImportExportPublish.ImportEntityHandler.CreateEntityAndAttributesFromNode(XmlNode entityNode)
    >  at Microsoft.Crm.Tools.ImportExportPublish.ImportEntityHandler.ImportItem()
    >  at Microsoft.Crm.Tools.ImportExportPublish.ImportHandler.Import()
    >  at Microsoft.Crm.Tools.ImportExportPublish.RootImportHandler.RunImport(String[] ImportEntities)
    [2011-02-24 11:39:52.551] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread: 292 |Category: Exception |User: 00000000-0000-0000-0000-000000000000 |Level: Error | CrmException..ctor
    	at CrmException..ctor(String message, Exception innerException, Int32 errorCode, Boolean isFlowControlException)
    	at CrmException..ctor(String message, Int32 errorCode)
    	at PlatformCommand.CreateCrmExceptionFromServiceFault(FaultException`1 fe)
    	at PlatformCommand.XrmExecuteInternal()
    	at ImportSolutionCommand.Execute()
    	at DataSource.ImportSolution(Byte[] customizationFile, Boolean overwriteUnmanagedCustomizations, Boolean publishWorkflows, Guid importJobId, Boolean convertToManaged, IOrganizationContext context)
    	at SolutionImportProcessPage.ImportSolution()
    	at SolutionImportProcessPage.ProcessRequestData()
    	at SolutionImportProcessPage.ConfigurePage()
    	at AppUIPage.OnPreRender(EventArgs e)
    	at Control.PreRenderRecursiveInternal()
    	at Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
    	at Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
    	at Page.ProcessRequest()
    	at Page.ProcessRequest(HttpContext context)
    	at CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
    	at HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
    	at ApplicationStepManager.ResumeSteps(Exception error)
    	at HttpApplication.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData)
    	at HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr)
    	at ISAPIRuntime.ProcessRequest(IntPtr ecb, Int32 iWRType)
    >Crm Exception: Message: Import failed, ErrorCode: -2147188706
    [2011-02-24 11:39:52.551] Process: w3wp |Organization:964da486-37f3-450d-aee2-742ba52d5195 |Thread: 292 |Category: Application |User: 00000000-0000-0000-0000-000000000000 |Level: Error | ErrorInformation.LogError
    >MSCRM Error Report:
    --------------------------------------------------------------------------------------------------------
    Error: Import failed
    
    Error Number: 0x8004801E
    
    Error Message: Import failed
    
    Error Details: Import failed
    
    Source File: Not available
    
    Line Number: Not available
    
    Request URL: 
    
    Stack Trace Info: [CrmException: Import failed]
      at Microsoft.Crm.Application.Platform.ServiceCommands.PlatformCommand.XrmExecuteInternal()
      at Microsoft.Crm.Application.Platform.ServiceCommands.ImportSolutionCommand.Execute()
      at Microsoft.Crm.Application.Platform.DataSource.ImportSolution(Byte[] customizationFile, Boolean overwriteUnmanagedCustomizations, Boolean publishWorkflows, Guid importJobId, Boolean convertToManaged, IOrganizationContext context)
      at Microsoft.Crm.Web.Tools.Solution.SolutionImportProcessPage.ImportSolution()
      at Microsoft.Crm.Web.Tools.Solution.SolutionImportProcessPage.ProcessRequestData()
    
    

    It seems to fail on an update of an attribute but is there a way to find out wich one?

    Regards.

    Thursday, February 24, 2011 10:58 AM

Answers

  • I figured out what the problem was by comparing the customization.xml from the first time the import succeeded with the customization file now. Turns out an attribute with the same name had changed type from text to optionset, this is why the import failed. It was solved by deleting the specific field.
    • Marked as answer by Dimitri G Monday, February 28, 2011 2:30 PM
    Monday, February 28, 2011 2:30 PM
  • Can you open the Xml customization file in Internet Explorer?
    Regards Faisal
    Thursday, February 24, 2011 12:58 PM

All replies

  • Can you open the Xml customization file in Internet Explorer?
    Regards Faisal
    Thursday, February 24, 2011 12:58 PM
  • Yes I can open the customizations file
    Thursday, February 24, 2011 3:17 PM
  • I figured out what the problem was by comparing the customization.xml from the first time the import succeeded with the customization file now. Turns out an attribute with the same name had changed type from text to optionset, this is why the import failed. It was solved by deleting the specific field.
    • Marked as answer by Dimitri G Monday, February 28, 2011 2:30 PM
    Monday, February 28, 2011 2:30 PM
  • I've also run across this when the business users delete and re-create a field with a different data type.  It would be nice if the solution import wizard would give us a meaningful error message indicating a data type mismatch or something similar.
    Monday, September 26, 2011 4:15 PM