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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Can't generate CIL (already in progress)

(0) ShareShare
ReportReport
Posted on by

Hi guys,

I have a simple question. I am debugging a service class using VS. How should I update it on VS when I edit that service class on AX2012. I tried compiling, refreshing, restoring, etc.?

*This post is locked for comments

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

    Are you talking about updating CIL (that's what actually executes) or about X++ (shown in Visual Studio so you can see what's going on, but it's not really executed)?

    Definitely stop debugging and start it again.

  • Community Member Profile Picture
    on at

    I need to debug the changed code :)

  • Martin Dráb Profile Picture
    237,801 Most Valuable Professional on at

    Yes, of course! But what's problem?

    I thought my question would help you to describe the problem, if you didn't do it by yourself... I also try to explain that there are two separate components to take into account, because there is a change that you weren't aware of it.

  • Community Member Profile Picture
    on at

    The previous time I ran Incremental CIL, so in VS the dialog appear if I want to update the class. But later AX crashed and now I cannot run the CIL. I tried deleting record where USERID = '-AutoSem' in syslastvalue table, but the query took like 10 minutes and didnt even finished, despite  the fact that there are only 7k records in it. So now I cant run Incr CIL and can debug only the unchanged version of class.

  • Martin Dráb Profile Picture
    237,801 Most Valuable Professional on at

    Oh, being unable to generate CIL is a very different topic than updating something in Visual Studio.

    Why exactly can't you generate CIL? If you get an error, sharing it with us will give us at a chance to help you.

  • Community Member Profile Picture
    on at

    AX crashed last time while generating CIL, so error says CIL is still running, but i can't delete that record in SysLastValue, so cant run incr CIL

  • Martin Dráb Profile Picture
    237,801 Most Valuable Professional on at

    I assume you mean the following error (but forgot to state it): "Another instance of CIL generation is already in progress. Please wait for the operation to complete before retrying".

    Let me update the title of this thread to correspond to your question. "Debugging service on VS" doesn't look appropriate.

  • Martin Dráb Profile Picture
    237,801 Most Valuable Professional on at

    When trying to delete the record from SysLastValue, first make sure you're the only user in the system. Then add a condition for ElementName = 'CIL Generation'. If the query still can't finish, look into database to see what's wrong. It suggests that there may be a lock.

  • Community Member Profile Picture
    on at

    yes it is the error.

  • Community Member Profile Picture
    on at

    I am not the only one, there is one more person.

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 > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans