Skip to main content

Notifications

Microsoft Dynamics AX (Archived)

CIL ERRORS AND Warning

Posted on by 80

hi all,

i runned CIL but i took 1 error and 66 warnings

error question;

i am compiling class which is error to CIL but i dont take any error when compile concerning class, first question is this. 

warning question;

Warnings are from product model, you know these are class to AOT. I m compiling class which is warning to CIL, i take several errors about not declarated variable.

these are not in product builder (PBATableVariable) but these are in pbareturn method which in concerning product builder class and not declarated to "classdeclaration" because not in "PBATableVariable" .

Second question, Are these CIL warnings stopped to successfull assembly?

Warning Example;

Classes
PBAex_401BRZ021HRKK_150010b72
Code67
Warning: CIL could not be generated for X++ method PBAex_401BRZ021HRKK_150010b72.Code67 due to X++ compile errors. This method throws an exception if run as CIL.

 

when i compile same class, i take below errors

Variable Malzeme_Kolt_Secimi has not been declared.

Variable Kum2_Renk has not been declared.

note: error and warnings classes not same, these ara different cases

*This post is locked for comments

  • Suggested answer
    nmaenpaa Profile Picture
    nmaenpaa 101,156 on at
    RE: CIL ERRORS AND Warning

    You should fix all x++ compile errors first before attempting to generate CIL. Don't waste time on the CIL errors or warnings before you have fixed your code and compiled it succesfully.

    As long as CIL generation is unsuccesful, you won't get a new assembly and your server side code is using an old dll instead.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

New! Quick response templatesâš¡

Save time with the new custom templates!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,228 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,056 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans