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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

AX 2012 CIL Error when loading the field

(2) ShareShare
ReportReport
Posted on by 3,262
Hi Strange error after incremental CIL: Error when loading the field. Type:XY_FormTreeDatasource, Field: imageList System.ArgumentNullException: Value cannot be null. Parameter name: type at System.Reflection.Emit.FieldBuilder..ctor(TypeBuilder typeBuilder, String fieldName, Type type, Type[] requiredCustomModifiers, Type[] optionalCustomModifiers, FieldAttributes attributes) at System.Reflection.Emit.TypeBuilder.DefineFieldNoLock(String fieldName, Type type, Type[] requiredCustomModifiers, Type[] optionalCustomModifiers, FieldAttributes attributes) at System.Reflection.Emit.TypeBuilder.DefineField(String fieldName, Type type, Type[] requiredCustomModifiers, Type[] optionalCustomModifiers, FieldAttributes attributes) at System.Reflection.Emit.TypeBuilder.DefineField(String fieldName, Type type, FieldAttributes attributes) at Microsoft.Dynamics.Ax.Xpp.ILGenerator.loadFieldsIL(TypeBuilder typeBuilder) at Microsoft.Dynamics.Ax.Xpp.ILGenerator.declareFields() at Microsoft.Dynamics.Ax.Xpp.ILGenerator.GenerateXppModule() The CIL generator found errors and could not save the new assembly. Any idea? Thanks for help Jan

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Community Member Profile Picture
    on at

    Go to the form for which you are doing incremental CIL compilation..

    first compile it and check it for any error..

    if there is no error may be consider full compilation and full CIL compilation of the system

    Please verify and update with your findings.  

  • Verified answer
    rudra Profile Picture
    6,534 on at

    Please do Ful CIL first then you will popup with exact forms, classes and tables where the error originates.

    After solving the issues please do Ful CIL again and Increment CIL.

    Still if you are popup with any generic assembly errors please do the following:

    1. Stop the AOS.

    2. Delete all of the source in the C:\Program Files\Microsoft Dynamics AX\60\Server\MicrosoftDynamicsAX\bin\XppIL directory.

    3. Start the AOS.

    4. Perform a full CIL generation.

    If nothing above solve your issue then atlast you can go with the Ful Application compilation, because this will take a long time.

  • Jan M. Profile Picture
    3,262 on at

    Hi Rudra

    Yes, did steps 1-3, than full compile, full CIL, synchronize db and all errors where gone.

    Thanks

  • Community Member Profile Picture
    on at

    Hi Rudra.

    I did all your said steps , but in my case problem is , I am unable to do incremental CIL . If i do incremental CIL , AX gets hangs for more that 3 hours..

    please help me with any other action to be taken 

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans