Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Suggested answer

Batch job code changed

(0) ShareShare
ReportReport
Posted on by 134
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,587 Super User 2024 Season 1 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,264 Super User 2024 Season 2 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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,458 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans