web
You’re offline. This is a read only version of the page.
close
Skip to main content
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
    237,662 Most Valuable Professional on at
    RE: My code is not executed on CIL

    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
    RE: My code is not executed on CIL

    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
    237,662 Most Valuable Professional on at
    RE: My code is not executed on CIL

    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
    RE: My code is not executed on CIL

    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

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 724 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 619 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 400 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans