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, ...
Answered

Deployment package failed

(0) ShareShare
ReportReport
Posted on by 5

Hi,

We deployed a package on one environment which got successful but on another environment it failed. 

Install_AX log file has the below:

*******************************************************
** Starting the package deployment at 02/12/2020 09:54:55 **
*******************************************************
Removing package installation record D:\T\TempDataFolder\OnPrem\1sgsnfm4.px0\res\tempPack\Packages\InstallationRecords\dynamicsax-rsc_rsc.*
Unpacking the Dynamics packages to D:\T\TempDataFolder\OnPrem\1sgsnfm4.px0\res\tempPack\Packages\InstallationRecords
Running command: D:\DynamicsTools\nuget.exe install -OutputDirectory "D:\T\TempDataFolder\OnPrem\1sgsnfm4.px0\res\tempPack\Packages\InstallationRecords" dynamicsax-rsc_rsc -Source D:\T\TempDataFolder\OnPrem\1sgsnfm4.px0\res\DepPack\AOSService\Packages
12022020095521: Install-AxPackage(RSC_RSC, dynamicsax-rsc_rsc.7.0.5407.35455.zip, D:\T\TempDataFolder\OnPrem\1sgsnfm4.px0\res\tempPack\Packages\RSC_RSC, D:\T\TempDataFolder\OnPrem\1sgsnfm4.px0\res\DepPack\AOSService\Packages\files, D:\T\TempDataFolder\OnPrem\1sgsnfm4.px0\res\log\install-AXpackages_02122020095455.log)
12022020095521: Got install target dir 'D:\T\TempDataFolder\OnPrem\1sgsnfm4.px0\res\tempPack\Packages\RSC_RSC'
12022020095521: Unzipping file at 'D:\T\TempDataFolder\OnPrem\1sgsnfm4.px0\res\DepPack\AOSService\Packages\files\dynamicsax-rsc_rsc.7.0.5407.35455.zip' to 'D:\T\TempDataFolder\OnPrem\1sgsnfm4.px0\res\tempPack\Packages\RSC_RSC'
12022020095521: Start-Process D:\DynamicsTools\7za.exe -ArgumentList "x D:\T\TempDataFolder\OnPrem\1sgsnfm4.px0\res\DepPack\AOSService\Packages\files\dynamicsax-rsc_rsc.7.0.5407.35455.zip -oD:\T\TempDataFolder\OnPrem\1sgsnfm4.px0\res\tempPack\Packages\RSC_RSC -y -mmt" -WindowStyle Hidden -PassThru
12022020095522: Could not find FileLocations.xml in the package '[RSC_RSC]'
******************************************************
** Completed the package deployment at 02/12/2020 09:55:51 **
******************************************************

Package deployment duration:
00:00:56.8750928

******************************************************
Packages installed in this session:
******************************************************
dynamicsax-rsc_rsc.7.0.5407.35455

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

    On AOS Server event log... below errors are logged

    Log Name: Microsoft-Dynamics-AX-LocalAgent/Operational
    Source: Microsoft-Dynamics-AX-LocalAgent
    Date: 2/12/2020 6:43:16 PM
    Event ID: 65002
    Task Category: Error
    Level: Error
    Keywords: Session0,Session1,Session2,Session3,Error
    User: domain\tsterp01lasvc$
    Computer: AOSNode1.domain
    Description:
    Error
    Event Xml:
    <EventData>
    <Data Name="MachineName">AOSNode1</Data>
    <Data Name="Message">Module aos failed with error code -1.</Data>
    <Data Name="Detail"> 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.&lt;&gt;c__DisplayClass12_1.&lt;InvokeModules&gt;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&amp; currentTaskSlot)
    at System.Threading.Tasks.Task.ExecuteEntry(Boolean bPreventDoubleExecution)
    at System.Threading.ThreadPoolWorkQueue.Dispatch()</Data>
    <Data Name="ErrorCode">0</Data>
    <Data Name="MemberName">ErrorPrettify</Data>
    <Data Name="SourceFile">E:\Work\41\s\Source\LocalAgentEvents\LocalAgentEventSource.cs</Data>
    <Data Name="SourceLineNumber">79</Data>
    </EventData>
    </Event>

    =====================

    Log Name: Microsoft-Dynamics-AX-LocalAgent/Operational
    Source: Microsoft-Dynamics-AX-LocalAgent
    Date: 2/12/2020 6:43:16 PM
    Event ID: 65002
    Task Category: Error
    Level: Error
    Keywords: Session0,Session1,Session2,Session3,Error
    User: domain\tsterp01lasvc$
    Computer: AOSNode1.domain
    Description:
    Error
    Event Xml:
    <EventData>
    <Data Name="MachineName">AOSNode1</Data>
    <Data Name="Message">Task OrchestrationService.DeployModulesRunnerTask,OrchestrationService failed for command id 3ce5e7ce-b86b-45f6-8034-547c03047a01</Data>
    <Data Name="Detail">System.InvalidOperationException: Unable to deploy modules
    at OrchestrationService.DeployModulesRunnerTask.Run(OrchestratorRunbookResource runbookResource, String commandId, String jobId, String runbookTaskId)
    at OrchestrationService.OrchestrationJobManager.&lt;&gt;c__DisplayClass23_0.&lt;CreateNewTaskThread&gt;b__4()</Data>
    <Data Name="ErrorCode">0</Data>
    <Data Name="MemberName">ErrorPrettify</Data>
    <Data Name="SourceFile">E:\Work\41\s\Source\LocalAgentEvents\LocalAgentEventSource.cs</Data>
    <Data Name="SourceLineNumber">79</Data>
    </EventData>
    </Event>

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

    Hi Kritine,

    Is there any difference in version of the build environment and the environment where you want to deploy this package? At least, did you use the build server to create the deployable package or did you create it directly from Visual Studio? The last option is not recommended.

  • Kritine Profile Picture
    5 on at

    No build environment is the same. The build got successful and was deployed in one environment successfully.

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

    Is the version of the other environment the same or not?

  • Kritine Profile Picture
    5 on at

    Yes the version is the same for all environments.

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

    You can consider creating a ticket for Microsoft Support. If you met all pre-requisites as mentioned above, it could be an environment specific configuration issue.

  • Navneeth Nagrajan Profile Picture
    2,618 Super User 2026 Season 1 on at

    Hello Kritine,

    As Andre suggested, there could be a version conflict.

    A few questions:

    1. Are you trying to deploy from a higher version (Higher PU version) to a lower version (Lower PU version)?
    2. Have you built your package from Visual Studio or from Azure DevOps (Using continuous integration)? If you have built a package through Visual Studio,(as Andre said) recommendation is never build packages from Visual Studio.

    Thanks,
    Navneeth Nagrajan | Dynamics 365 Technical Consultant

  • Kritine Profile Picture
    5 on at

    @André Arnaud de Calavon

    Yes I already have created a ticket, as the issue seems to be little weird.

    Also to add here, I did retry the deployment couple of times and it got successful. I still cannot understand the reason. Maybe MS Support can answer.

    @Navneeth Nagrajan

    1- No its from lower to higher.
    2- Yes built from VS. This is an D365FO on-prem deployment and using onprem TFS for code repo and build.

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

    Hi Kritine,

    Once you get some more information from Microsoft Support or if you have own new findings, please also update this thread.

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 591

#2
André Arnaud de Calavon Profile Picture

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

#3
Abhilash Warrier Profile Picture

Abhilash Warrier 543 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans