Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX forum
Suggested answer

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 :)

  • 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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,532 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,501 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans