Quantcast
Channel: Redirected - Dynamics Ax: Learn in doing - Ajit kumar's
Viewing all articles
Browse latest Browse all 75

Full CIL Generation from X++

$
0
0
This post describes one of the many strange errors which might occur if the CIL Generation was not done properly.  If you want to know more about CIL generation . Go here: X++ compiled to .Net CIL[Ax2012]

In Microsoft Dynamics AX, scheduled batch jobs written in X++ must first be compiled into the common intermediate language (CIL) of the .NET Framework.

I faced this one issue when I was trying to do a Full CIL Generation after fixing an Over-layering issue (which occurred due to some project related update installation).
Error message was “Type name does not exist.
The VendRequestAuditContract.getAttribute() reflection API could not create and return the AifCollectionTypeAttribute object. Please check the parameters.”

Before looking into more details, I followed the below best practises suggested when working with CIL generation.
1.      Stop AOS.
2.     Delete all files from path C:\Program Files\Microsoft Dynamics AX\60\Server\<<Instance name>>\bin\XppIL.
3.     Start AOS.
4.     AOT > Add-ins > Incremental CIL generation from X++ 

And that solves the problem. Takes some time in CIL generation but is always effective.

Viewing all articles
Browse latest Browse all 75

Trending Articles