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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

CIL ERRORS AND Warning

(0) ShareShare
ReportReport
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

I have the same question (0)
  • Suggested answer
    nmaenpaa Profile Picture
    101,166 Moderator on at

    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

Responsible AI policies

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

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Volodya Profile Picture

Volodya 2

#2
tgudwanski Profile Picture

tgudwanski 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans