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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

My code is not executed on CIL

(0) ShareShare
ReportReport
Posted on by 30

Hi All,

I have added some code in class LedgerSubJournalTransferCommand for free Text Invoice IN DEV server

My customization is not executed in CIL. I mean when I ticked " Tool - option - Execute in CIL,  then my code is NOT EXECUTED. 

If I Unticked, then only my code is executed.

Kindly let me know what need to done ? So, that my code will run on CIL.

Because in PROD, Tool - option - Execute in CIL is always ticked.

Please give me more shed on this 

I have the same question (0)
  • Martin Dráb Profile Picture
    238,769 Most Valuable Professional on at

    First of all, didn't you forget to compile X++ code and generate CIL?

    Also, is the class actually called from something running in CIL? Not all code is executed in CIL - it's the case (for example) of web services, RunBase/SysOperation framework (that's the thing that can be influenced by the aforementioned checkbox) and code executed through runClassMethodIL().

  • @rp@n Profile Picture
    30 on at

    Thanks Martin,

    Actually, the class LedgerSubJournalTransferCommand, when i did Compile forward + Incremental CIL then only my custom code get executed.

    Is this a right approach to go forward ? I mean in PROD also needs to do the same ?

    Please give me more shed on this.

    Thanks!

  • Martin Dráb Profile Picture
    238,769 Most Valuable Professional on at

    No, you shouldn't do any development in production. You should ship already compiled application (after testing it in a test environment). Consult Deploying Customizations Across Microsoft Dynamics AX 2012 Environments to get more details about deployment.

  • @rp@n Profile Picture
    30 on at

    No no, i am doing development on DEV server only. You mean to ship already compile application to Production after testing ot in test environment. So, that we not get any issue on this.

    right?

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 509 Super User 2026 Season 1

#2
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 375

#3
Adis Profile Picture

Adis 268 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans