Skip to main content

Notifications

Announcements

No record found.

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!

  • André Arnaud de Calavon Profile Picture
    294,261 Super User 2025 Season 1 on at
    RE: LCS upgrade 10.0.29 error - GlobalUpdate script for service model: AOSService on machine

    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.

  • Suren_G Profile Picture
    252 on at
    RE: LCS upgrade 10.0.29 error - GlobalUpdate script for service model: AOSService on machine

    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
    294,261 Super User 2025 Season 1 on at
    RE: LCS upgrade 10.0.29 error - GlobalUpdate script for service model: AOSService on machine

    Hi Suren,

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

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,261 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 233,013 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Product updates

Dynamics 365 release plans