web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Dynamics 365 Community / Blogs / Dynamics AX Tech Center / “Unable to construct an obj...

“Unable to construct an object from the class in the batch framework”

syed baber Profile Picture syed baber 11,633

Hi All,

Today, I was getting below error while running the batch class as a batch job in AX 2012:

Unable to construct an object from the class “MyClassName” 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

All the solutions I found was suggesting to perform either incremental or full CIL, but it didn’t resolve the issue in my case. Then I restarted all the AOSes for my environment and voila, the error was gone.

So, if you get this error and incremental or full CIL doesn’t resolve the issue for you, then try restarting all the AOSes.

Thanks,

Baber.



This was originally posted here.

Comments

*This post is locked for comments