Wednesday 23 January 2019

Debug batch jobs in Dynamics 365 Finance & Operation / AX 7.0

Sometimes we may need to debug batch jobs execution. In AX 2012 we have to attached Visual Studio to the 'AOS' process and debug the IL code. It's pretty much the same still and got even easier because X++ now is a .NET language. 

So navigate to Debug / Attach To Process in Visual Studio and make sure to select show processes from all users. The batch service has the obvious name Batch.exe (its location is C:\CustomerServiceUnit\DOBind\Packages\Cloud\AosWebApplication\
AosWebApplication.csx\roles\AosWeb\approot\bin – at least on locally deployed machines and this is only for informational purposes, usually you won’t need to know). 

Attach to that process and be able to debug the X++ code that is executed there.




2 comments:

  1. Great post I would like to thank you for the efforts you have made in writing this interesting and knowledgeable article. rates

    ReplyDelete
  2. Your website is really cool and this is a great inspiring article.
    on the site pozyczki-24.pl

    ReplyDelete

Adding a newline into a string in C# and X++

Below is the sample code we can use for  adding a newline after every occurrence of "@" symbol in the string in C#   using System...