Hi,
I'm getting error "You are attempting to do a published update of publishable component in an unmodified active context" when trying to import a 9.0 solution into a 9.0 Environment after an upgrade.
Backstory (All solutions are unmanaged):
We had a 8.2 onprem installation (A) with a custom solution called (X).
We also had Another server (B) that we upgraded to version 9 and imported the solution (X).
There we upgraded Components and code to be compatible with version 9 lets now call it solution (Y) even though its the same solution but with new Components and upgraded code-
Now we upgraded server (A) to Dynamics 365 onprem version 9 solution (X).
And when trying to import solution either solution (X or Y) into server (A) we get the error message.
What we have tried
Published all customizations in org/server (A)
Restart servers, redeploy solution x and then try to import solution y.
Server trace gave nothing.
Manually imported the solution, logfile gave nothing except the error message above. Could not see what Component filed.
Still the same issue.
Info
Unmanaged solutions
Dynamics 365 8.2.3 to Dynamics 365 9.0 Service Update 0.4.
Multi-server setup.
Full error
This is not allowed context.IsModified =False, CurrentState=ActiveUnpublished ---> Microsoft.Crm.CrmArgumentException: You are attempting to do a published update of publishable component in an unmodified active context when there exists an unpublished active row.
Any idea of what might be wrong?
Thanks,
/R
Full log
Unhandled Exception: System.Exception: Import Failed: 31 Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=9.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: You are attempting to do a published update of publishable component in an unmodified active context when there exists an unpublished active row. June 14th 2019 11:41:54Error This is not allowed context.IsModified =False, CurrentState=ActiveUnpublishedDetail: June 14th 2019 11:41:54Error <OrganizationServiceFault xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/xrm/2011/Contracts"> June 14th 2019 11:41:54Error <ActivityId>9b47d2a9-2a0d-47b7-bf2d-c4fa629a2944</ActivityId> June 14th 2019 11:41:54Error <ErrorCode>-2147220989</ErrorCode> June 14th 2019 11:41:54Error <ErrorDetails xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic"> June 14th 2019 11:41:54Error <KeyValuePairOfstringanyType> June 14th 2019 11:41:54Error <d2p1:key>ApiExceptionSourceKey</d2p1:key> June 14th 2019 11:41:54Error <d2p1:value xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string">Plugin/Microsoft.Crm.WebServices.ImportXmlService</d2p1:value> June 14th 2019 11:41:54Error </KeyValuePairOfstringanyType> June 14th 2019 11:41:54Error <KeyValuePairOfstringanyType> June 14th 2019 11:41:54Error <d2p1:key>ApiOriginalExceptionKey</d2p1:key> June 14th 2019 11:41:54Error <d2p1:value xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string">Microsoft.Crm.CrmArgumentException: You are attempting to do a published update of publishable component in an unmodified active context when there exists an unpublished active row. June 14th 2019 11:41:54Error This is not allowed context.IsModified =False, CurrentState=ActiveUnpublished ---> Microsoft.Crm.CrmArgumentException: You are attempting to do a published update of publishable component in an unmodified active context when there exists an unpublished active row. June 14th 2019 11:41:54Error This is not allowed context.IsModified =False, CurrentState=ActiveUnpublished ---> System.ArgumentException: You are attempting to do a published update of publishable component in an unmodified active context when there exists an unpublished active row. June 14th 2019 11:41:54Error This is not allowed context.IsModified =False, CurrentState=ActiveUnpublished June 14th 2019 11:41:54Error --- End of inner exception stack trace --- June 14th 2019 11:41:54Error at Microsoft.Crm.Platform.SolutionAwareComponents.UpdateActiveModifiedToNoneTransition.ConstructActionSetInternal(Int32 componentType, Guid objectId, Object operationParameter, BusinessComponentState currentState, ExecutionContext context) June 14th 2019 11:41:54Error at Microsoft.Crm.Platform.SolutionAwareComponents.UpdateActiveModifiedToNoneTransition.ConstructActionSet(Int32 componentType, Guid objectId, Object operationParameter, BusinessComponentState currentState, ExecutionContext context) June 14th 2019 11:41:54Error at Microsoft.Crm.Platform.SolutionAwareComponents.ComponentStateTransition.Execute(Int32 componentType, Guid objectId, Object operationParameter, BusinessComponentState currentState, ExecutionContext context) June 14th 2019 11:41:54Error at Microsoft.Crm.Platform.MetadataBusinessEntities.MetadataProcessObject.DoUpdate(MetadataBusinessEntity metadataEntity, ExecutionContext context) June 14th 2019 11:41:54Error at Microsoft.Crm.Platform.MetadataBusinessEntities.MetadataProcessObject.<>c__DisplayClass3_0.<Update>b__0() June 14th 2019 11:41:54Error at Microsoft.PowerApps.CoreFramework.ActivityLoggerExtensions.Execute(ILogger logger, EventId eventId, ActivityType activityType, Action action) June 14th 2019 11:41:54Error at Microsoft.Xrm.Telemetry.XrmTelemetryExtensions.Execute(ILogger logger, XrmTelemetryActivityType activityType, Action action) June 14th 2019 11:41:54Error at Microsoft.Crm.Platform.MetadataBusinessEntities.LocalizedLabelService.Update(MetadataBusinessEntity metadataEntity, ExecutionContext context) June 14th 2019 11:41:54Error at Microsoft.Crm.Metadata.LocalizedLabelUpdateAction.MetabaseOperation() June 14th 2019 11:41:54Error at Microsoft.Crm.Metadata.EntityKeyUpdateAction.MetabaseOperation() June 14th 2019 11:41:54Error at Microsoft.Crm.Metadata.MetadataHelper.<>c__DisplayClass116_0.<ProcessQueue_metabaseActionsToExecute>b__0() June 14th 2019 11:41:54Error at Microsoft.PowerApps.CoreFramework.ActivityLoggerExtensions.Execute(ILogger logger, EventId eventId, ActivityType activityType, Action action) June 14th 2019 11:41:54Error at Microsoft.Xrm.Telemetry.XrmTelemetryExtensions.Execute(ILogger logger, XrmTelemetryActivityType activityType, Action action) June 14th 2019 11:41:54Error at Microsoft.Crm.Metadata.MetadataHelper.<ProcessQueue>b__110_0() June 14th 2019 11:41:54Error at Microsoft.PowerApps.CoreFramework.ActivityLoggerExtensions.Execute(ILogger logger, EventId eventId, ActivityType activityType, Action action) June 14th 2019 11:41:54Error at Microsoft.Xrm.Telemetry.XrmTelemetryExtensions.Execute(ILogger logger, XrmTelemetryActivityType activityType, Action action) June 14th 2019 11:41:54Error at Microsoft.Crm.Metadata.EntityKeyService.Update(EntityKeyCreateInfo entityKeyInfo, ExecutionContext context) June 14th 2019 11:41:54Error at Microsoft.Crm.Tools.ImportExportPublish.ImportEntityKeyHandler.MapEntityKeyWithExistingKey(MetadataBusinessEntity entitykey, XmlNode entityKeyNode, MetadataBusinessEntityCollection keyAttributeCollection) June 14th 2019 11:41:54Error at Microsoft.Crm.Tools.ImportExportPublish.ImportEntityKeyHandler.ProcessExistingKey(MetadataBusinessEntityCollection entityKeys, XmlNode entityKeyNode, MetadataBusinessEntityCollection keyAttributeCollection) June 14th 2019 11:41:54Error at Microsoft.Crm.Tools.ImportExportPublish.ImportEntityKeyHandler.EntityKeyAlreadyPresent(MetadataBusinessEntityCollection entityKeys, XmlNode entityKeyNode, Guid entityId, Guid& entityKeyId) June 14th 2019 11:41:54Error at Microsoft.Crm.Tools.ImportExportPublish.ImportEntityKeyHandler.ImportItem() June 14th 2019 11:41:54Error at Microsoft.Crm.Tools.ImportExportPublish.ImportHandler.ImportInternal() June 14th 2019 11:41:54Error at Microsoft.PowerApps.CoreFramework.ActivityLoggerExtensions.Execute(ILogger logger, EventId eventId, ActivityType activityType, Action action) June 14th 2019 11:41:54Error at Microsoft.Xrm.Telemetry.XrmTelemetryExtensions.Execute(ILogger logger, XrmTelemetryActivityType activityType, Action action) June 14th 2019 11:41:54Error at Microsoft.Crm.Tools.ImportExportPublish.RootImportHandler.ImportAndUpdateProgress(ImportHandler ih) June 14th 2019 11:41:54Error at Microsoft.Crm.Tools.ImportExportPublish.RootImportHandler.ProcessHandlers(String[] ImportEntities, Hashtable ht, String& curPath, ImportHandler& ihForCurrentPath, CounterList listCounters) June 14th 2019 11:41:54Error at Microsoft.Crm.Tools.ImportExportPublish.RootImportHandler.RunImport(String[] ImportEntities) June 14th 2019 11:41:54Error at Microsoft.Crm.Tools.ImportExportPublish.ImportXml.RunImport(String[] ImportEntities) June 14th 2019 11:41:54Error at Microsoft.Crm.Tools.ImportExportPublish.ImportXml.RunImport() June 14th 2019 11:41:54Error at Microsoft.Crm.Tools.ImportExportPublish.ImportXml.RunImportInternal(Boolean withSolutionManifest) June 14th 2019 11:41:54Error at Microsoft.PowerApps.CoreFramework.ActivityLoggerExtensions.Execute(ILogger logger, EventId eventId, ActivityType activityType, Action action) June 14th 2019 11:41:54Error at Microsoft.Xrm.Telemetry.XrmTelemetryExtensions.Execute(ILogger logger, XrmTelemetryActivityType activityType, Action action) June 14th 2019 11:41:54Error at Microsoft.Crm.WebServices.ImportXmlService.ImportSolutionSkipCapable(Boolean overwriteUnmanagedCustomizations, Boolean publishWorkflows, Byte[] customizationFile, Guid importJobId, Boolean convertToManaged, Boolean skipProductUpdateDependencies, Boolean holdingSolution, ExecutionContext context) June 14th 2019 11:41:54Error --- End of inner exception stack trace --- June 14th 2019 11:41:54Error at Microsoft.Crm.Extensibility.VersionedPluginProxyStepBase.Execute(PipelineExecutionContext context) June 14th 2019 11:41:54Error at Microsoft.Crm.Extensibility.PipelineInstrumentationHelper.Execute(Boolean instrumentationEnabled, String stopwatchName, ExecuteWithInstrumentation action, PipelineExecutionContext context) June 14th 2019 11:41:54Error at Microsoft.Crm.Extensibility.Pipeline.<>c__DisplayClass2_1.<Execute>b__0()</d2p1:value> June 14th 2019 11:41:54Error </KeyValuePairOfstringanyType> June 14th 2019 11:41:54Error <KeyValuePairOfstringanyType> June 14th 2019 11:41:54Error <d2p1:key>ApiStepKey</d2p1:key> June 14th 2019 11:41:54Error <d2p1:value xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/" i:type="d4p1:guid">1b830950-e106-4ee1-b3fd-d348cb65dc8d</d2p1:value> June 14th 2019 11:41:54Error </KeyValuePairOfstringanyType> June 14th 2019 11:41:54Error <KeyValuePairOfstringanyType> June 14th 2019 11:41:54Error <d2p1:key>ApiDepthKey</d2p1:key> June 14th 2019 11:41:54Error <d2p1:value xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:int">2</d2p1:value> June 14th 2019 11:41:54Error </KeyValuePairOfstringanyType> June 14th 2019 11:41:54Error <KeyValuePairOfstringanyType> June 14th 2019 11:41:54Error <d2p1:key>ApiActivityIdKey</d2p1:key> June 14th 2019 11:41:54Error <d2p1:value xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/" i:type="d4p1:guid">9b47d2a9-2a0d-47b7-bf2d-c4fa629a2944</d2p1:value> June 14th 2019 11:41:54Error </KeyValuePairOfstringanyType> June 14th 2019 11:41:54Error <KeyValuePairOfstringanyType> June 14th 2019 11:41:54Error <d2p1:key>ApiPluginSolutionNameKey</d2p1:key> June 14th 2019 11:41:54Error <d2p1:value xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string">System</d2p1:value> June 14th 2019 11:41:54Error </KeyValuePairOfstringanyType> June 14th 2019 11:41:54Error <KeyValuePairOfstringanyType> June 14th 2019 11:41:54Error <d2p1:key>ApiStepSolutionNameKey</d2p1:key> June 14th 2019 11:41:54Error <d2p1:value xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string">System</d2p1:value> June 14th 2019 11:41:54Error </KeyValuePairOfstringanyType> June 14th 2019 11:41:54Error <KeyValuePairOfstringanyType> June 14th 2019 11:41:54Error <d2p1:key>0</d2p1:key> June 14th 2019 11:41:54Error <d2p1:value xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string">System.ArgumentException: You are attempting to do a published update of publishable component in an unmodified active context when there exists an unpublished active row. June 14th 2019 11:41:54Error This is not allowed context.IsModified =False, CurrentState=ActiveUnpublished</d2p1:value> June 14th 2019 11:41:54Error </KeyValuePairOfstringanyType> June 14th 2019 11:41:54Error <KeyValuePairOfstringanyType> June 14th 2019 11:41:54Error <d2p1:key>HasRetried</d2p1:key> June 14th 2019 11:41:54Error <d2p1:value xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string">True</d2p1:value> June 14th 2019 11:41:54Error </KeyValuePairOfstringanyType> June 14th 2019 11:41:54Error <KeyValuePairOfstringanyType> June 14th 2019 11:41:54Error <d2p1:key>RetryExecutionStatus</d2p1:key> June 14th 2019 11:41:54Error <d2p1:value xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string">Microsoft.Crm.Core.Extensions.Retry.RetryExecutionStatus</d2p1:value> June 14th 2019 11:41:54Error </KeyValuePairOfstringanyType> June 14th 2019 11:41:54Error </ErrorDetails> June 14th 2019 11:41:54Error <Message>You are attempting to do a published update of publishable component in an unmodified active context when there exists an unpublished active row. June 14th 2019 11:41:54Error This is not allowed context.IsModified =False, CurrentState=ActiveUnpublished</Message> June 14th 2019 11:41:54Error <Timestamp>2019-06-14T09:41:38.982578Z</Timestamp> June 14th 2019 11:41:54Error <ExceptionRetriable>false</ExceptionRetriable> June 14th 2019 11:41:54Error <ExceptionSource i:nil="true" /> June 14th 2019 11:41:54Error <InnerFault> June 14th 2019 11:41:54Error <ActivityId>9b47d2a9-2a0d-47b7-bf2d-c4fa629a2944</ActivityId> June 14th 2019 11:41:54Error <ErrorCode>-2147220989</ErrorCode> June 14th 2019 11:41:54Error <ErrorDetails xmlns:d3p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic" /> June 14th 2019 11:41:54Error <Message>You are attempting to do a published update of publishable component in an unmodified active context when there exists an unpublished active row. June 14th 2019 11:41:54Error This is not allowed context.IsModified =False, CurrentState=ActiveUnpublished</Message> June 14th 2019 11:41:54Error <Timestamp>2019-06-14T09:41:38.982578Z</Timestamp> June 14th 2019 11:41:54Error <ExceptionRetriable>false</ExceptionRetriable> June 14th 2019 11:41:54Error <ExceptionSource i:nil="true" /> June 14th 2019 11:41:54Error <InnerFault> June 14th 2019 11:41:54Error <ActivityId>9b47d2a9-2a0d-47b7-bf2d-c4fa629a2944</ActivityId> June 14th 2019 11:41:54Error <ErrorCode>-2147220970</ErrorCode> June 14th 2019 11:41:54Error <ErrorDetails xmlns:d4p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic" /> June 14th 2019 11:41:54Error <Message>System.ArgumentException: You are attempting to do a published update of publishable component in an unmodified active context when there exists an unpublished active row. June 14th 2019 11:41:54Error This is not allowed context.IsModified =False, CurrentState=ActiveUnpublished</Message> June 14th 2019 11:41:54Error <Timestamp>2019-06-14T09:41:38.982578Z</Timestamp> June 14th 2019 11:41:54Error <ExceptionRetriable>false</ExceptionRetriable> June 14th 2019 11:41:54Error <ExceptionSource i:nil="true" /> June 14th 2019 11:41:54Error <InnerFault i:nil="true" /> June 14th 2019 11:41:54Error <OriginalException i:nil="true" /> June 14th 2019 11:41:54Error <TraceText i:nil="true" /> June 14th 2019 11:41:54Error </InnerFault> June 14th 2019 11:41:54Error <OriginalException i:nil="true" /> June 14th 2019 11:41:54Error <TraceText i:nil="true" /> June 14th 2019 11:41:54Error </InnerFault> June 14th 2019 11:41:54Error <OriginalException i:nil="true" /> June 14th 2019 11:41:54Error <TraceText i:nil="true" /> June 14th 2019 11:41:54Error </OrganizationServiceFault>