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 :
Small | Business Central, NAV, RMS
Suggested Answer

Package deployment failed in onprem, error: module aos failed with error code -532462766

(0) ShareShare
ReportReport
Posted on by

Hi Experts,

While deploying package in onprem, it got failed and when checking the events in orch get the below error,

The AXSF type application is not even started deploying,

module aos failed with error code -532462766

at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo) at
System.Environment.get_StackTrace() at
Microsoft.Dynamics.Operations.Local.LocalAgentEvents.LocalAgentEventHelpers.ErrorPrettify(LocalAgentEventSource source, Exception ex, Int32 errorCode, String format, Object[] values) at
SetupCore.SetupManager.<>c__DisplayClass12_2.<InvokeModules>b__6() at System.Threading.Tasks.Task.Execute() 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.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot) at
System.Threading.Tasks.Task.ExecuteEntry(Boolean bPreventDoubleExecution) at
System.Threading.ThreadPoolWorkQueue.Dispatch()

Can anyone help me to solve this.

Thanks and regards,

Srihari

I have the same question (0)
  • saepuloh Profile Picture
    on at

    Hi,

    Any log from other orchestrator?

  • Srihari.molaka Profile Picture
    on at

    Hi Ackerman,

    one more log,

    Task OrchestrationService.DeployModulesRunnerTask,

    OrchestrationService failed for command id 12d7aa79-82d3-4ac0

    Details: LocalAgentCommon.LocalAgentInvalidOperationException:

    Unable to deploy AOSSetupHybridCloudError module at

    OrchestrationService.AXSetupManager.HandleAOSSetupHybridCloudError(Guid errorCode) at

    OrchestrationService.AXSetupManager.ThrowModuleExceptionBasedOnError() at

    OrchestrationService.DeployModulesRunnerTask.Run(OrchestratorRunbookResource runbookResource, String commandId, String jobId, String runbookTaskId) at

    OrchestrationService.OrchestrationJobManager.<>c__DisplayClass23_0.<CreateNewTaskThread>b__4()

    These two logs I found on primary orch.

    Thanks and regards,

    Srihari

  • saepuloh Profile Picture
    on at

    Hi,

    How about lcs status page? If button retry available in lcs page try to retry deployment.

  • Srihari.molaka Profile Picture
    on at

    Hi,

    I have already retried the deployment but at the same step it got stuck.

  • saepuloh Profile Picture
    on at

    Hi,

    Ok, lets move to AOS server and try found some event log in AOS server.

    Maybe that will lead you to right error.

    pastedimage1645690988396v1.png

  • Srihari.molaka Profile Picture
    on at

    Hi,

    Except DatabaseSynchronize other nodes doesn't have any logs.

    In DatabaseSynchronize it is having old events which are generated while restoring database.

  • Suggested answer
    Srihari.molaka Profile Picture
    on at

    Hi All,

    I have resolved this by redeploying the environment(deleted the sandbox from LCS and deployed again)

    regards,

    Srihari.

  • CC-23041353-1 Profile Picture
    Microsoft Employee on at
    Hi Srihari,
     
    Did you able to resolve the issue and can you share how did you resolve it.
     
    Module aos failed with error code -532462766
    Unable to deploy AOSSetupHybridCloudError module at Microsoft.Dynamics.LocalAgent.OrchestrationService.Tasks.AXSetupManager

     

     


     
  • Komi Siabi Profile Picture
    Most Valuable Professional on at
    Hello Gaurav Bisht ,
     
    You need to check the SF and see which of the AOS has an error.
    Logon to the AOS VM and check the event viewer. You will be able to see the exact error on the AOS.
  • CC-23041353-1 Profile Picture
    Microsoft Employee on at
    Thanks Komi for your response.
     
    I checked all AOS Nodes and Microsoft.Dynamics and Microsoft.ServiceFabric have zero event logs(its empty and nothing is recorded).
     
     
     
    Primary Orchestra has error log in two following places 
    Error from LocalAgent source: (In general this error code -532462766 due to missing Visual Studio Compiler ++)
     
    Another Error from SetupModuleEvents Source:

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

Mansi Soni – Community Spotlight

We are honored to recognize Mansi Soni as our August 2025 Community…

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Small | Business Central, NAV, RMS

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans