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

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Trace parser - capture trace on multiple AOS/batch servers

(0) ShareShare
ReportReport
Posted on by 4,131

Hi experts,

I have a batch job running in a multithread mode. How can I capture the trace on the right AOS or batch server?

Thanks,

I have the same question (0)
  • Suggested answer
    Mohit Rampal Profile Picture
    12,565 Moderator on at
    RE: Trace parser - capture trace on multiple AOS/batch servers

    Hi Yuji, Please check this article, I haven't used it so not sure if it will help.

    www.d365stuff.co/.../

    Also, I can see your query in the below thread. Have you tried that suggestions?

    community.dynamics.com/.../trace-parser-on-batch-jobs

  • Suggested answer
    DAnny3211 Profile Picture
    11,397 on at
    RE: Trace parser - capture trace on multiple AOS/batch servers

    hi

    to capture the trace on the right AOS or batch server in a multithreaded batch job, you can follow these steps:

    Open the Dynamics 365 Finance and Operations environment and navigate to System Administration > Setup > Azure Active Directory applications.

    Create a new client ID for tracing by selecting "New" and entering a name for the new client ID. Then select the "Generate key" button to generate a new client secret.

    Copy the client ID and client secret as you will need them later.

    Open the Trace Parser tool in a command prompt window and start the trace capture by entering the following command: TraceParser.exe -StartTrace

    Open a new command prompt window and navigate to the folder where your batch job is running.

    Set the environment variable DYNAMICSAX_BATCHSERVER to the name of the AOS or batch server you want to capture the trace on.

    Set the environment variable DYNAMICSAX_CLIENTID to the client ID you created earlier.

    Set the environment variable DYNAMICSAX_CLIENTSECRET to the client secret you generated earlier.

    Start your batch job by entering the command to run your batch job.

    Once the batch job has finished running, stop the trace capture by returning to the Trace Parser window and entering the following command: TraceParser.exe -StopTrace

    This will capture the trace on the AOS or batch server specified in the DYNAMICSAX_BATCHSERVER environment variable and store it in a trace file that you can use for troubleshooting or performance analysis.

    DAniele

  • Yuji Profile Picture
    4,131 on at
    RE: Trace parser - capture trace on multiple AOS/batch servers

    The sandbox environments are in self-service. Does it mean we need to RDP to the servers which I think it is not applicable to self service environments any more?

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
Martin Dráb Profile Picture

Martin Dráb 683 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 563 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 398 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans