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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Could anyone help ! I'm getting the following error when i add a batch on my class.

(0) ShareShare
ReportReport
Posted on by

Hie folks,

On my class, the business logic works fine (without adding batch), but when i schedule a batch in my class, i'm getting the following error frequently.

" Unable to construct an object from the class XXXX 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.

Microsoft.Dynamics.Ax.Xpp.ErrorException: Exception of type 'Microsoft.Dynamics.Ax.Xpp.ErrorException' was thrown at Dynamics.Ax.Application.BatchRun.runJobStaticCode(Int64 batchId) in BatchRun.runJobStaticCode.xpp:line 34 "

Looking forward for your replies !

- Arun :)

*This post is locked for comments

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

    Hi Arun,

    Try to Generate incremental CIL without errors

  • Suggested answer
    Community Member Profile Picture
    on at

    Hi Arunachalam,

                               Are you using Web Services in your program ??. Otherwise create an Incremental CIL before running the batch process.

    Best Regards

    SHah

  • ksv1 Profile Picture
    555 on at

    Hi Arun,

    is that error is solved?

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 > 🔒一 Microsoft Dynamics AX (Archived)

#1
Priya_K Profile Picture

Priya_K 4

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#3
Ali Zaidi Profile Picture

Ali Zaidi 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans