Skip to main content
Supply Chain Management forum
Answered

Batch Job OptimizeDateEffectiveEntities fails every time and it runs every 5 mins

editSubscribe (1) ShareShare
ReportReport
Posted on by 3,163
Hello Community
We have a batch job with description /OptimizeDateEffectiveEntities/ and it runs every 5 mins and it marked as critical job.
I am positive that is a standard batch job that is automatically scheduled.
In batch Tasks -> Class name is empty
And so every time it runs, an error is thrown
 
Batch task failed: Unable to construct an object from the class '' (Class Number '98807' Job Id '5638112076' ) 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.
 
Any insights would be helpful.
Can i safely turn it OFF ?
 
  • Rafael Araujo Profile Picture
    Rafael Araujo 170 on at
    Batch Job OptimizeDateEffectiveEntities fails every time and it runs every 5 mins
  • Verified answer
    GuyUK Profile Picture
    GuyUK 28,100 on at
    Batch Job OptimizeDateEffectiveEntities fails every time and it runs every 5 mins
    If you have updated to 10.0.38, you can set this batch job to Withhold, or delete it. There's an 913481 on LCS Issue Search describes that this Batch job is no longer needed with 10.0.38.
  • San Artham Profile Picture
    San Artham 3,163 on at
    Batch Job OptimizeDateEffectiveEntities fails every time and it runs every 5 mins
    Hi Hana
     
    But this issue is in D365 F&O Prod env and regularly the env gets a new build package (which is precompiled).
    Based on the Job history, i see it has been failing a for long time.
     
    Thanks
    San
  • Suggested answer
    Hana Xue Profile Picture
    Hana Xue on at
    Batch Job OptimizeDateEffectiveEntities fails every time and it runs every 5 mins
    Hi,
    Are you running multiple batch servers? There are old threads with similar problems to yours, you can refer to the suggestions in the old threads, try to restart AOS, etc.  Hope these will give you some hints.
    Solved: RunBaseBatch job giving error (dynamics.com)
    Could anyone help ! I'm getting the following error when i add a batch on my class. (dynamics.com)
    Ax2012 Compile RunBaseBatch Class to CIL Error (dynamics.com)

Helpful resources

Quick Links

What Motivates a Super User?

We know many of you visit the Dynamics 365 Community and Power Platform…

Demystifying Copilot with Georg Glantschnig…

Industry experts answer burning questions directly from our amazing Community…

Setting Up Knowledge Sources for Copilot…

Look at how configuring a comprehensive knowledge base is crucial…

Leaderboard

#1
Andre Arnaud de Calavon Profile Picture

Andre Arnaud de Cal... 283,045 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 222,570 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,138

Product updates

Dynamics 365 release plans