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?