
Hello.
An interesting error, that states there is 'Entity' entity and it doesn't contain modifiedon attribute.
2023-01-06 11:29:07.813| Info| Executing: action Bin\Microsoft.Crm.Setup.DiffBuilder.dll:Microsoft.Crm.Setup.DiffBuilder:UpdateMetadata with id 00000000-0000-0000-0000-0000000000ff of type DllMethod to Processing metadata changes..
2023-01-06 11:29:07.813| Info| Processing metadata changes.
2023-01-06 11:29:29.065| Info| Action Bin\Microsoft.Crm.Setup.DiffBuilder.dll:Microsoft.Crm.Setup.DiffBuilder:UpdateMetadata with id 00000000-0000-0000-0000-0000000000ff of type DllMethod to Processing metadata changes. failed on attempt 2. Retrying in 30 seconds. Exception: Exception has been thrown by the target of an invocation.
2023-01-06 11:30:09.558| Info| Action Bin\Microsoft.Crm.Setup.DiffBuilder.dll:Microsoft.Crm.Setup.DiffBuilder:UpdateMetadata with id 00000000-0000-0000-0000-0000000000ff of type DllMethod to Processing metadata changes. failed on attempt 3. Retrying in 30 seconds. Exception: Exception has been thrown by the target of an invocation.
2023-01-06 11:30:50.700| Error| Applying database updates to organization with name = XYZ, Id=f0aabb07-b0c9-4cfe-80be-8effd49bf067 failed with Exception:
Microsoft.Crm.CrmException: Error in Action: Bin\Microsoft.Crm.Setup.DiffBuilder.dll:Microsoft.Crm.Setup.DiffBuilder:UpdateMetadata on attempt 3. System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> Microsoft.Crm.Metadata.MetadataAttributeMetadataNotFoundException: 'Entity' metadata entity doesn't contain metadata attribute with Name = 'modifiedon'.
at Microsoft.Crm.Metadata.MetadataAttributeInfoCollection.ThrowIfPropertyNameIsInvalid(String metadataAttributeName)
at Microsoft.Crm.Metadata.PropertyBagMetadataAttributeInfoCollection.get_Item(String name)
at Microsoft.Crm.Platform.SolutionAwareComponents.MPOUpdateComponentInstanceForUpgradeAction.AreDataValuesDifferent(MetadataBusinessEntity entityOne, MetadataBusinessEntity entityTwo, MetadataAttributeMetadata attribute)
at Microsoft.Crm.Platform.SolutionAwareComponents.MPOUpdateComponentInstanceForUpgradeAction.Execute(ExecutionContext context)
at Microsoft.Crm.Platform.SolutionAwareComponents.ComponentStateTransition.<>c__DisplayClass4_0.<Execute>b__1()
at Microsoft.PowerApps.CoreFramework.ActivityLoggerExtensions.Execute(ILogger logger, EventId eventId, ActivityType activityType, Action action, IEnumerable`1 additionalCustomProperties)
at Microsoft.Xrm.Telemetry.XrmTelemetryExtensions.Execute(ILogger logger, XrmTelemetryActivityType activityType, Action action)
at Microsoft.Crm.Platform.SolutionAwareComponents.ComponentStateTransition.Execute(Int32 componentType, Guid objectId, Object operationParameter, BusinessComponentState currentState, ExecutionContext context)
at Microsoft.Crm.Platform.MetadataBusinessEntities.MetadataProcessObject.DoUpdate(MetadataBusinessEntity metadataEntity, ExecutionContext context)
at Microsoft.Crm.Platform.MetadataBusinessEntities.MetadataProcessObject.<>c__DisplayClass9_0.<Update>b__0()
at Microsoft.PowerApps.CoreFramework.ActivityLoggerExtensions.Execute(ILogger logger, EventId eventId, ActivityType activityType, Action action, IEnumerable`1 additionalCustomProperties)
at Microsoft.Xrm.Telemetry.XrmTelemetryExtensions.Execute(ILogger logger, XrmTelemetryActivityType activityType, Action action)
at Microsoft.Crm.Metadata.SimpleMetadataQueueProcessor.<>c__DisplayClass3_0.<ProcessQueue>b__0()
at Microsoft.PowerApps.CoreFramework.ActivityLoggerExtensions.Execute(ILogger logger, EventId eventId, ActivityType activityType, Action action, IEnumerable`1 additionalCustomProperties)
at Microsoft.Xrm.Telemetry.XrmTelemetryExtensions.Execute(ILogger logger, XrmTelemetryActivityType activityType, Action action)
at Microsoft.Crm.Metadata.SimpleMetadataQueueProcessor.<>c__DisplayClass2_0.<ProcessQueueInternal>b__0()
at Microsoft.PowerApps.CoreFramework.ActivityLoggerExtensions.Execute(ILogger logger, EventId eventId, ActivityType activityType, Action action, IEnumerable`1 additionalCustomProperties)
at Microsoft.Xrm.Telemetry.XrmTelemetryExtensions.Execute(ILogger logger, XrmTelemetryActivityType activityType, Action action)
at Microsoft.Crm.Metadata.MetadataHelper.ProcessQueue(IMetadataQueueProcessor metadataQueueProcessor)
at Microsoft.Crm.Setup.MetadataPatchService.ProcessMetadataDiffs(MetadataPatchDiffSet diffSet, Int32 lcid, ExecutionContext context)
at Microsoft.Crm.Setup.MetadataPatchService.ProcessDiffSetWithContext(MetadataPatchDiffSet diffSet, Int32 lcid, ExecutionContext context)
at Microsoft.Crm.Setup.MetadataPatchService.ProcessDiffSet(MetadataPatchDiffSet diffSet, Int32 lcid, ExecutionContext context)
at Microsoft.Crm.Setup.MetadataPatchService.ProcessMetadataDiffFile(String targetVersion, ExecutionContext context, String orgSchemaType)
at Microsoft.Crm.Setup.DiffBuilder.UpdateMetadata(String targetVersion, String orgSchemaType)
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)
at Microsoft.Crm.Setup.Database.DllMethodAction.Execute(Guid organizationId, Nullable`1 operationType)
at Microsoft.Crm.Setup.Database.DatabaseInstaller.<>c__DisplayClass86_0.<ExecuteActionInternal>b__0()
at Microsoft.Crm.Setup.Database.DatabaseInstaller.<>c__DisplayClass86_0.<ExecuteActionInternal>b__0()
at Microsoft.PowerApps.CoreFramework.ActivityLoggerExtensions.Execute(ILogger logger, EventId eventId, ActivityType activityType, Action action, IEnumerable`1 additionalCustomProperties)
at Microsoft.Xrm.Telemetry.XrmTelemetryExtensions.Execute(ILogger logger, XrmTelemetryActivityType activityType, Action action)
at Microsoft.Crm.Setup.Database.DatabaseInstaller.ExecuteReleases(ReleaseInfo releaseInfo, Boolean isInstall)
at Microsoft.Crm.Setup.Database.DatabaseInstaller.installInternal(Boolean isInstall, Int32 languageCode)
at Microsoft.Crm.Setup.Database.DatabaseInstaller.<>c__DisplayClass93_0.<Install>b__0()
at Microsoft.PowerApps.CoreFramework.ActivityLoggerExtensions.Execute(ILogger logger, EventId eventId, ActivityType activityType, Action action, IEnumerable`1 additionalCustomProperties)
at Microsoft.Xrm.Telemetry.XrmTelemetryExtensions.Execute(ILogger logger, XrmTelemetryActivityType activityType, Action action)
at Microsoft.Crm.Setup.Database.DatabaseInstaller.<>c__DisplayClass95_0.<InstallUpdate>b__0()
at Microsoft.PowerApps.CoreFramework.ActivityLoggerExtensions.Execute(ILogger logger, EventId eventId, ActivityType activityType, Action action, IEnumerable`1 additionalCustomProperties)
at Microsoft.Xrm.Telemetry.XrmTelemetryExtensions.Execute(ILogger logger, XrmTelemetryActivityType activityType, Action action)
at Microsoft.Crm.Setup.Common.Update.DBUpdateDatabaseInstaller.ApplyDBUpdates(Guid orgId, Nullable`1 operationType, OrgType orgSchemaType, Int32 langCode, Boolean shouldUpdateOrgVersion)
at Microsoft.Crm.Tools.Admin.InstallDatabaseUpdatesAction.ApplyDBUpdatesInternal(Guid orgId, String orgUniqueName, String releaseFilePath, OrganizationOperationType operationType, OrgType orgType, Int32 langCode, Boolean shouldUpdateDBVersion)
2023-01-06 11:30:50.746| Info| CrmAction execution time; InstallCDSStandardDatabaseUpdatesAction; 00:01:54.4865729
2023-01-06 11:30:50.746| Error| Installer Complete: OrganizationDBUpdateInstaller - Error encountered
2023-01-06 11:30:50.793| Error| Exception occurred during Microsoft.Crm.Tools.Admin.OrganizationDBUpdateInstaller: Error.ActionFailed Microsoft.Crm.Tools.Admin.InstallCDSStandardDatabaseUpdatesActionD
Any ideas what/where to look?
After another round of import, I encountered different error(s). So maybe re-trying was also helpful?
Here I found (+) Unable to update an on prem Organisation from 9.0.x to 9.1.x - Dynamics 365 Customer Service Forum Community Forum that my usr has to be in AD PrivUsesGroup. And yeah, the import succeeded. So basically I tried multiple imports.
2022-12-31 09:56:01.125| Info| Failed to install Scheduling_AnchorException: Microsoft.Crm.PackageDeployment.PackageDeployerException: Package Scheduling_Anchor failed to install on attempt 0.
System.AggregateException: One or more errors occurred. ---> System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault]: contextUserId=5c804f78-cf82-ea11-a2cd-00155de7e73a has correct privileges but allowImpersonationOfOrganizationSystemUser == false. Parameter'user'=c871fcc4-23c0-48df-aae2-98af1a084220, callerId=c871fcc4-23c0-48df-aae2-98af1a084220.
at Microsoft.Crm.MultiTenantPackageDeployment.PdExecutor.Process(PackageDeploymentInputArgs input, JobOutput`1 output, CancellationToken ct)
at System.Threading.Tasks.Task.Execute()
--- End of inner exception stack trace ---
---> (Inner Exception #0) System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault]: contextUserId=5c804f78-cf82-ea11-a2cd-00155de7e73a has correct privileges but allowImpersonationOfOrganizationSystemUser == false. Parameter'user'=c871fcc4-23c0-48df-aae2-98af1a084220, callerId=c871fcc4-23c0-48df-aae2-98af1a084220. (Fault Detail is equal to Exception details:
ErrorCode: 0x8004A110
Message: contextUserId=5c804f78-cf82-ea11-a2cd-00155de7e73a has correct privileges but allowImpersonationOfOrganizationSystemUser == false. Parameter'user'=c871fcc4-23c0-48df-aae2-98af1a084220, callerId=c871fcc4-23c0-48df-aae2-98af1a084220.
TimeStamp: 2022-12-31T07:56:00.9531342Z
[Information][8] Error: While trying to invoke organization request msdyn_SyncOpportunityCloseStatusReasonPicklist for msdynce_SalesPatch201904 solution. Exception Details: System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault]: contextUserId=5c804f78-cf82-ea11-a2cd-00155de7e73a has correct privileges but allowImpersonationOfOrganizationSystemUser == false. Parameter'user'=c871fcc4-23c0-48df-aae2-98af1a084220, callerId=c871fcc4-23c0-48df-aae2-98af1a084220. (Fault Detail is equal to Exception details:
ErrorCode: 0x8004A110
Message: contextUserId=5c804f78-cf82-ea11-a2cd-00155de7e73a has correct privileges but allowImpersonationOfOrganizationSystemUser == false. Parameter'user'=c871fcc4-23c0-48df-aae2-98af1a084220, callerId=c871fcc4-23c0-48df-aae2-98af1a084220.
TimeStamp: 2023-01-06T11:11:09.6361537Z
--
).
[Verbose][16] Failed to Execute Command - msdyn_SyncOpportunityCloseStatusReasonPicklist : RequestID=317f04cb-1e6f-4f1b-94f5-715e648247a5
[Error][2] Source : Microsoft.Crm.Extensibility
Method : Execute
Date : 1/6/2023
Time : 1:11:09 PM
Error : Message: contextUserId=5c804f78-cf82-ea11-a2cd-00155de7e73a has correct privileges but allowImpersonationOfOrganizationSystemUser == false. Parameter'user'=c871fcc4-23c0-48df-aae2-98af1a084220, callerId=c871fcc4-23c0-48df-aae2-98af1a084220.
ErrorCode: -2147180272
Trace: [Microsoft.Crm.ObjectModel: Microsoft.Crm.ObjectModel.SyncWorkflowExecutionPlugin]
[b611a794-b28d-ed11-ae7e-00155d00019f: ]
Entered Microsoft.Dynamics.SalesUpgrade.Plugins.SyncOpportunityCloseStatusReasonPicklist.Execute(), Correlation Id: 715ee160-5e03-4744-a36b-61a03f421904, Initiating User: 5c804f78-cf82-ea11-a2cd-00155de7e73a
Exiting Microsoft.Dynamics.SalesUpgrade.Plugins.SyncOpportunityCloseStatusReasonPicklist.Execute(), Correlation Id: 715ee160-5e03-4744-a36b-61a03f421904, Initiating User: 5c804f78-cf82-ea11-a2cd-00155de7e73a
Stack Trace : at Microsoft.Crm.Extensibility.OrganizationSdkServiceInternal.Execute(OrganizationRequest request, InvocationContext invocationContext, CallerOriginToken callerOriginToken, WebServiceType serviceType, Boolean checkAdminMode, ExecutionContext executionContext, Dictionary`2 optionalParameters)
at Microsoft.Crm.Extensibility.InprocessServiceProxy.ExecuteCore(OrganizationRequest request)
at Microsoft.Xrm.Tooling.Connector.CrmServiceClient.CrmCommand_Execute(OrganizationRequest req, String errorStringCheck)
======================================================================================================================
[Information][8] Invoking Organization Request msdyn_CreateDocumentManagementRelationshipIfDoesntExist
[Verbose][16] Failed to Execute Command - msdyn_CreateDocumentManagementRelationshipIfDoesntExist : RequestID=ea4ced60-afde-49e4-841a-97bc6a6e7fa6
[Information][8] Error: While trying to invoke organization request msdyn_CreateDocumentManagementRelationshipIfDoesntExist for msdynce_SalesPatch201904 solution. Exception Details: System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault]: contextUserId=5c804f78-cf82-ea11-a2cd-00155de7e73a has correct privileges but allowImpersonationOfOrganizationSystemUser == false. Parameter'user'=c871fcc4-23c0-48df-aae2-98af1a084220, callerId=c871fcc4-23c0-48df-aae2-98af1a084220. (Fault Detail is equal to Exception details:
ErrorCode: 0x8004A110
Message: contextUserId=5c804f78-cf82-ea11-a2cd-00155de7e73a has correct privileges but allowImpersonationOfOrganizationSystemUser == false. Parameter'user'=c871fcc4-23c0-48df-aae2-98af1a084220, callerId=c871fcc4-23c0-48df-aae2-98af1a084220.
TimeStamp: 2023-01-06T11:11:13.7780821Z
--
).
[Information][8] Executing Solution Import Pre v8.0
[Error][2] Source : Microsoft.Crm.Extensibility
Method : Execute
Date : 1/6/2023
Time : 1:11:13 PM
Error : Message: contextUserId=5c804f78-cf82-ea11-a2cd-00155de7e73a has correct privileges but allowImpersonationOfOrganizationSystemUser == false. Parameter'user'=c871fcc4-23c0-48df-aae2-98af1a084220, callerId=c871fcc4-23c0-48df-aae2-98af1a084220.
ErrorCode: -2147180272
Trace: [Microsoft.Crm.ObjectModel: Microsoft.Crm.ObjectModel.SyncWorkflowExecutionPlugin]
[a411a794-b28d-ed11-ae7e-00155d00019f: ]
Entered Microsoft.Dynamics.SalesUpgrade.Plugins.CreateDocumentManagementRelationshipIfDoesntExist.Execute(), Correlation Id: 715ee160-5e03-4744-a36b-61a03f421904, Initiating User: 5c804f78-cf82-ea11-a2cd-00155de7e73a
Exiting Microsoft.Dynamics.SalesUpgrade.Plugins.CreateDocumentManagementRelationshipIfDoesntExist.Execute(), Correlation Id: 715ee160-5e03-4744-a36b-61a03f421904, Initiating User: 5c804f78-cf82-ea11-a2cd-00155de7e73a
Stack Trace : at Microsoft.Crm.Extensibility.OrganizationSdkServiceInternal.Execute(OrganizationRequest request, InvocationContext invocationContext, CallerOriginToken callerOriginToken, WebServiceType serviceType, Boolean checkAdminMode, ExecutionContext executionContext, Dictionary`2 optionalParameters)
at Microsoft.Crm.Extensibility.InprocessServiceProxy.ExecuteCore(OrganizationRequest request)
at Microsoft.Xrm.Tooling.Connector.CrmServiceClient.CrmCommand_Execute(OrganizationRequest req, String errorStringCheck)
======================================================================================================================
[Information][8] Created new importjob id 85c90cd5-b9b1-416c-b9c6-2ac977e07025
[Error][2] Message: Importing solution threw and unforeseen exception
Source : Microsoft.Crm.Extensibility
Method : Execute
Date : 1:11:24 PM
Time : 1/6/2023
Error : Entity opportunityclose : Quick create is not supported for non-refreshed Entity
Stack Trace : at Microsoft.Xrm.Tooling.PackageDeployment.CrmPackageCore.ImportCode.BaseImportCustomizations.ExecuteImportSolution(ConfigSolutionFile Sol, String sSolutionImportFilePath)
======================================================================================================================
[Start][256] RaiseFailEvent
[Verbose][16] Failed to Execute Command - ImportSolution : RequestID=98466dfe-2684-4f4c-b3c6-26242fd9d09f
[Error][2] Source : Microsoft.Crm.Extensibility
Method : Execute
Date : 1/6/2023
Time : 1:11:24 PM
Error : Message: Entity opportunityclose : Quick create is not supported for non-refreshed Entity
ErrorCode: -2147220989
Trace:
[Microsoft.Crm.ObjectModel: Microsoft.Crm.Extensibility.InternalOperationPlugin]
[1b830950-e106-4ee1-b3fd-d348cb65dc8d: ObjectModel Implementation]
Stack Trace : at Microsoft.Crm.Extensibility.OrganizationSdkServiceInternal.Execute(OrganizationRequest request, InvocationContext invocationContext, CallerOriginToken callerOriginToken, WebServiceType serviceType, Boolean checkAdminMode, ExecutionContext executionContext, Dictionary`2 optionalParameters)
at Microsoft.Crm.Extensibility.InprocessServiceProxy.ExecuteCore(OrganizationRequest request)
at Microsoft.Xrm.Tooling.Connector.CrmServiceClient.CrmCommand_Execute(OrganizationRequest req, String errorStringCheck)
======================================================================================================================
Inner Exception Level 1 :
==OrganizationServiceFault Info=======================================================================================
Error : Entity opportunityclose : Quick create is not supported for non-refreshed Entity
Time : 1/6/2023 11:11:24 AM
ErrorCode : -2147220989
Date : 1/6/2023
Time : 1:11:24 PM
Trace : Not Provided
======================================================================================================================
[Stop][512] RaiseFailEvent
[Stop][512] ImportSolution
[Stop][512] DoImportSolutionItem
[Stop][512] CheckSolutionImportStatus
2023-01-06 13:29:47.989| Error| Import Organization (Name=XYZ, Id=f0aabb07-b0c9-4cfe-80be-8effd49bf067) failed with Exception:
Microsoft.Crm.CrmException: Encountered non-terminal failures during DBUpdates. Failing actions are: Scheduling_Anchor, msdynce_MarketingAnchor, msdynce_SalesAnchor, msdynce_MarketingSalesAnchor
at Microsoft.Crm.Tools.Admin.OrganizationDBUpdateInstaller.ProcessFailedActions()
at Microsoft.Crm.Tools.Admin.OrganizationDBUpdateInstaller.<>c__DisplayClass19_0.<Execute>b__0()
at Microsoft.PowerApps.CoreFramework.ActivityLoggerExtensions.Execute(ILogger logger, EventId eventId, ActivityType activityType, Action action, IEnumerable`1 additionalCustomProperties)
at Microsoft.Xrm.Telemetry.XrmTelemetryExtensions.Execute(ILogger logger, XrmTelemetryActivityType activityType, Action action)
at Microsoft.Crm.Tools.Admin.OrganizationDBUpdateInstaller.Execute()
at Microsoft.Crm.Tools.Admin.ImportOrganizationInstaller.Import(Guid organizationId, String organizationUniqueName, String organizationFriendlyName, String sqlServerName, String databaseName, Uri reportServerUrl, ICollection`1 users, MultipleTenancy multipleTenancy, Boolean patchOnImport, OrgDbUpdateMode orgDbUpdateMode, OrgType orgType)