web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

LCS upgrade 10.0.29 error - GlobalUpdate script for service model: AOSService on machine

(0) ShareShare
ReportReport
Posted on by 252

Hi All,

I am trying to upgrade the VM from 10.0.28 to 10.0.29 through LCS service update and getting the below error at step 25 - GlobalUpdate script for service model: AOSService on machine.

I have ran full DB sync on Visual Studio and haven't received any error. Also I have tried to increase the timeout value for the step 25 in the runbook but still getting same error as below. Could someone please assist on the issue.

New SyssetupInstaller exception System.AggregateException: One or more errors occurred. ---> Microsoft.Dynamics.Ax.Xpp.TimeoutException: Exceeded the execution time limit for the script: InventSysSetup at Microsoft.Dynamics.AX.Framework.Syssetup.SysSetupTaskHelper.<>c__DisplayClass1_0.<ExecuteMethodInNewTask>b__1() at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.CancellationCallbackInfo.ExecuteCallback() at System.Threading.CancellationTokenSource.ExecuteCallbackHandlers(Boolean throwOnFirstException) --- End of inner exception stack trace --- at System.Threading.CancellationTokenSource.ExecuteCallbackHandlers(Boolean throwOnFirstException) at System.Threading.CancellationTokenSource.NotifyCancellation(Boolean throwOnFirstException) at Microsoft.Dynamics.AX.Framework.Syssetup.SyssetupInstaller.ExecuteScriptWithTimeout(Int32 scriptId, DictClass syssetupDictClass, String className, Int32 timeout) at Microsoft.Dynamics.AX.Framework.Syssetup.SyssetupInstaller.<>c__DisplayClass21_0.<WriteAllData>b__0() at Microsoft.Dynamics.AX.Framework.Syssetup.SyssetupRetryHelper.Execute(Action executeMethod, String className) at Microsoft.Dynamics.AX.Framework.Syssetup.SyssetupInstaller.WriteAllData() at Microsoft.Dynamics.AX.Framework.Syssetup.SyssetupInstaller.loadAllData() at Microsoft.Dynamics.AX.Deployment.Setup.AppOperations.RaiseOnDbsyncSyncApplEvent(Action`2 logCallback) ---> (Inner Exception #0) Microsoft.Dynamics.Ax.Xpp.TimeoutException: Exceeded the execution time limit for the script: InventSysSetup at Microsoft.Dynamics.AX.Framework.Syssetup.SysSetupTaskHelper.<>c__DisplayClass1_0.<ExecuteMethodInNewTask>b__1() at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.CancellationCallbackInfo.ExecuteCallback() at System.Threading.CancellationTokenSource.ExecuteCallbackHandlers(Boolean throwOnFirstException)<--- 01/25/2023 13:31:13: Application configuration sync failed. Microsoft.Dynamics.AX.Framework.Database.TableSyncException: Custom action threw exception(s), please investigate before synchronizing again: 'AggregateException:One or more errors occurred. at System.Threading.CancellationTokenSource.ExecuteCallbackHandlers(Boolean throwOnFirstException) at System.Threading.CancellationTokenSource.NotifyCancellation(Boolean throwOnFirstException) at Microsoft.Dynamics.AX.Framework.Syssetup.SyssetupInstaller.ExecuteScriptWithTimeout(Int32 scriptId, DictClass syssetupDictClass, String className, Int32 timeout) at Microsoft.Dynamics.AX.Framework.Syssetup.SyssetupInstaller.<>c__DisplayClass21_0.<WriteAllData>b__0() at Microsoft.Dynamics.AX.Framework.Syssetup.SyssetupRetryHelper.Execute(Action executeMethod, String className) at Microsoft.Dynamics.AX.Framework.Syssetup.SyssetupInstaller.WriteAllData() at Microsoft.Dynamics.AX.Framework.Syssetup.SyssetupInstaller.loadAllData() at Microsoft.Dynamics.AX.Deployment.Setup.AppOperations.RaiseOnDbsyncSyncApplEvent(Action`2 logCallback) at Microsoft.Dynamics.AX.Deployment.Setup.Program.<RunFullSync>g__RaiseDbSyncEvent|24_8(IMetadataProvider _) at Microsoft.Dynamics.AX.Framework.Database.Tools.LegacyCodepath.<>c__DisplayClass34_0.<NOTE_LeavingSynchronizer_CallStackAboveThisLineIsCustomCode>b__0() at Microsoft.Dynamics.AX.Framework.Database.Tools.LegacyCodepath.ExecuteWithinAOS(SyncOptions syncOptions, String sqlConnectionString, IMetadataProvider metadataProvider, Func`1 func, Action`1 errorHandler) Inner exceptions: TimeoutException:Exceeded the execution time limit for the script: InventSysSetup at Microsoft.Dynamics.AX.Framework.Syssetup.SysSetupTaskHelper.<>c__DisplayClass1_0.<ExecuteMethodInNewTask>b__1() at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.CancellationCallbackInfo.ExecuteCallback() at System.Threading.CancellationTokenSource.ExecuteCallbackHandlers(Boolean throwOnFirstException)' ---> System.AggregateException: One or more errors occurred. ---> Microsoft.Dynamics.Ax.Xpp.TimeoutException: Exceeded the execution time limit for the script: InventSysSetup at Microsoft.Dynamics.AX.Framework.Syssetup.SysSetupTaskHelper.<>c__DisplayClass1_0.<ExecuteMethodInNewTask>b__1() at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.CancellationCallbackInfo.ExecuteCallback() at System.Threading.CancellationTokenSource.ExecuteCallbackHandlers(Boolean throwOnFirstException) --- End of inner exception stack trace --- at System.Threading.CancellationTokenSource.ExecuteCallbackHandlers(Boolean throwOnFirstException) at System.Threading.CancellationTokenSource.NotifyCancellation(Boolean throwOnFirstException) at Microsoft.Dynamics.AX.Framework.Syssetup.SyssetupInstaller.ExecuteScriptWithTimeout(Int32 scriptId, DictClass syssetupDictClass, String className, Int32 timeout) at Microsoft.Dynamics.AX.Framework.Syssetup.SyssetupInstaller.<>c__DisplayClass21_0.<WriteAllData>b__0() at Microsoft.Dynamics.AX.Framework.Syssetup.SyssetupRetryHelper.Execute(Action executeMethod, String className) at Microsoft.Dynamics.AX.Framework.Syssetup.SyssetupInstaller.WriteAllData() at Microsoft.Dynamics.AX.Framework.Syssetup.SyssetupInstaller.loadAllData() at Microsoft.Dynamics.AX.Deployment.Setup.AppOperations.RaiseOnDbsyncSyncApplEvent(Action`2 logCallback) at Microsoft.Dynamics.AX.Deployment.Setup.Program.<RunFullSync>g__RaiseDbSyncEvent|24_8(IMetadataProvider _) at Microsoft.Dynamics.AX.Framework.Database.Tools.LegacyCodepath.<>c__DisplayClass34_0.<NOTE_LeavingSynchronizer_CallStackAboveThisLineIsCustomCode>b__0() at Microsoft.Dynamics.AX.Framework.Database.Tools.LegacyCodepath.ExecuteWithinAOS(SyncOptions syncOptions, String sqlConnectionString, IMetadataProvider metadataProvider, Func`1 func, Action`1 errorHandler) --- End of inner exception stack trace --- at Microsoft.Dynamics.AX.Framework.Database.Tools.LegacyCodepath.<>c.<NOTE_LeavingSynchronizer_CallStackAboveThisLineIsCustomCode>b__34_1(Tuple`2 result) at Microsoft.Dynamics.AX.Framework.Database.Tools.LegacyCodepath.ExecuteWithinAOS(SyncOptions syncOptions, String sqlConnectionString, IMetadataProvider metadataProvider, Func`1 func, Action`1 errorHandler) at Microsoft.Dynamics.AX.Framework.Database.Tools.LegacyCodepath.NOTE_LeavingSynchronizer_CallStackAboveThisLineIsCustomCode(SyncOptions syncOptions, String sqlConnectionString, IMetadataProvider metadataProvider, Action`1 a) at Microsoft.Dynamics.AX.Framework.Database.Tools.LegacyCodepath.RunCustomAction(SyncOptions syncOptions, String sqlConnectionString, IMetadataProvider metadataProvider, Action`1 a) at Microsoft.Dynamics.AX.Framework.Database.Tools.SyncEngine.PostTableSync() at Microsoft.Dynamics.AX.Framework.Database.Tools.SyncEngine.FullSync() at Microsoft.Dynamics.AX.Framework.Database.Tools.SyncEngine.RunSync() at Microsoft.Dynamics.AX.Framework.Database.Tools.SyncEngine.Run(String metadataDirectory, String sqlConnectionString, SyncOptions options) 01/25/2023 13:31:13: The operation failed.

Thanks!

I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    305,196 Super User 2026 Season 1 on at

    Hi Suren,

    What is the exact VM size for this machine? Is it having enough and fast resources?

  • Suren_G Profile Picture
    252 on at

    Hi Andre,

    I have increased the RAM for this machine from 28 to 56GB, but still facing the same issue. The error comes exactly after 28 mins of execution for the particular step. But the same service package works fine in other machines where it runs more than 28 mins for the same step.

    Thanks!

  • André Arnaud de Calavon Profile Picture
    305,196 Super User 2026 Season 1 on at

    Hi Suren,

    Is the database size in this machine larger than other environments? You can try replacing the database with a database with less transactions in it. After the deployment you can restore the original database and start the sync job from Visual Studio.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 692

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 532 Super User 2026 Season 1

#3
CP04-islander Profile Picture

CP04-islander 478

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans