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.

Advertisements