Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested answer

Batch job code changed

(0) ShareShare
ReportReport
Posted on by 148
Hi all,
 
If we changed the X++ code for batch job, every time we need to re-create the batch job. Otherwise we will get the error /Unable to construct an object from the class '' (Class Number 'xxx' Job Id 'xxx' ) 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./
 
Is there any other way that no need to re-create the batch jobs?
 
Thanks,
  • Bharani Preetham Peraka Profile Picture
    Bharani Preetham Pe... 3,616 Moderator on at
    Batch job code changed
    Can you give some more detail that what code you are changing and why you are changing? 
  • Suggested answer
    Layan Jwei Profile Picture
    Layan Jwei 7,715 Super User 2025 Season 1 on at
    Batch job code changed
    Hi LB developer,
     
    It didn't happen with me before. Was your x++ code change related to contract class? Or normal code change in the service class?
     
    Did you try to build the model and maybe clear usage data?
     
    Thanks,
    Layan Jweihan

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

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

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,430 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans