Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX forum
Unanswered

My code is not executed on CIL

Posted on by 5,885

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 

  • @rp@n Profile Picture
    @rp@n 5,885 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?

  • Martin Dráb Profile Picture
    Martin Dráb 225,783 Super User 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
    @rp@n 5,885 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
    Martin Dráb 225,783 Super User 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().

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 288,459 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,783 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans