Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 general forum

You are attempting to do a published update of publishable component in an unmodified active context

Posted on by 200

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 ---&gt; 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 ---&gt; 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.&lt;&gt;c__DisplayClass3_0.&lt;Update&gt;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.&lt;&gt;c__DisplayClass116_0.&lt;ProcessQueue_metabaseActionsToExecute&gt;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.&lt;ProcessQueue&gt;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&amp; 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&amp; curPath, ImportHandler&amp; 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.&lt;&gt;c__DisplayClass2_1.&lt;Execute&gt;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> 



Categories:
  • Suggested answer
    Rickards08 Profile Picture
    Rickards08 200 on at
    RE: You are attempting to do a published update of publishable component in an unmodified active context

    Hi,

    a solution to this that worked fine for us is to:

    There are two system jobs that are waiting to be executed after the upgrade.

    Now there are two options here:

    1. Manually start the jobs from CRM, takes a short while and when they are done, the import works fine.

    2. Wait until the next day; The jobs are scehduled to run at 01:00

    It seems to be an issue that the jobs dont run automatically after the upgrade.

    However knowing this makes it easy to add it as a steg to your upgrade process.

    Matthias: Can you confirm if the system jobs ran after the reboot and thats the reason why it worked for you? You can see that in the system jobs history and match the date to when you did the reboot/s.

    Best Regards

    Rickard

  • Suggested answer
    Matthias_Back Profile Picture
    Matthias_Back 20 on at
    RE: You are attempting to do a published update of publishable component in an unmodified active context

    Hi,

    we had the similar error, also on the first solution deployment after the Upgrade to D365 v9 (Source CRM 2016 8.1).

    After looking into strange errors in the CRM trace, we have decided to reboot the DB and CRM server, and after that the deployment have worked without any issue

    regards

    matthias

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans