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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

Batch Job error in D365FO

(0) ShareShare
ReportReport
Posted on by 931

Hi All,

when trying to add two sysoperationbatch class to create dependable conditional batch task and when executing the batch it is immediatly moving to error state and getting the below error.

An error occurred while processing batch job xxx
Microsoft.Dynamics.Ax.Xpp.ErrorException: An error occurred
while processing batch job xxx
at Dynamics.AX.Application.BatchRun.`runJobStaticCodeFromBuffer(Batch buffer) in
xppSource://Source/ApplicationPlatform\AxClass_BatchRun.xpp:line 835
at Dynamics.AX.Application.BatchRun.runJobStaticCodeFromBuffer(Batch buffer)
at Dynamics.AX.Application.BatchRun.`runJobStaticFromBuffer(Batch buffer)
in xppSource://Source/ApplicationPlatform\AxClass_BatchRun.xpp:line 773
at Dynamics.AX.Application.BatchRun.runJobStaticFromBuffer(Batch buffer)
at Microsoft.Dynamics.AX.Batch.BatchRunAction.Run()
at Microsoft.Dynamics.AX.Batch.Batch.ExecuteOneBatchJobTask(BatchTaskInfoWrapper taskInfo)

End of task log

Thanks in advance.

I have the same question (0)
  • Martin Dráb Profile Picture
    239,660 Most Valuable Professional on at

    I would start by looking properties of the exception, such as Message.

  • Sergei Minozhenko Profile Picture
    23,097 on at

    Hi Rusty Ryan,

    I had more a less similar issue recently and it was related to the broken unpack method. I realized by checking the exact line from a stack trace in BatchRun.

    In your case, it's line 835 and in my version, there is an error statement with the message "Unable to construct an object from the class %1 in the batch framework. Make sure that the X++ code has been compiled to Microsoft .NET Framework CIL, and that the constructor does not require any parameters." Maybe class you trying to add to the batch processing have a private new method?

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

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 676

#2
Abhilash Warrier Profile Picture

Abhilash Warrier 635 Super User 2026 Season 1

#3
André Arnaud de Calavon Profile Picture

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

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans