Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

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

Posted on by Microsoft Employee

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

  • ksv1 Profile Picture
    ksv1 555 on at
    RE: Could anyone help ! I'm getting the following error when i add a batch on my class.

    Hi Arun,

    is that error is solved?

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Could anyone help ! I'm getting the following error when i add a batch on my class.

    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
    ksv1 555 on at
    RE: Could anyone help ! I'm getting the following error when i add a batch on my class.

    Hi Arun,

    Try to Generate incremental CIL without errors

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans