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 :
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
    236,289 Most Valuable Professional on at
    RE: Debugging service on VS

    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
    RE: Debugging service on VS

    I need to debug the changed code :)

  • Martin Dráb Profile Picture
    236,289 Most Valuable Professional on at
    RE: Debugging service on VS

    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
    RE: Debugging service on VS

    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
    236,289 Most Valuable Professional on at
    RE: Debugging service on VS

    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
    RE: Debugging service on VS

    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
    236,289 Most Valuable Professional on at
    RE: Debugging service on VS

    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
    236,289 Most Valuable Professional on at
    RE: Can't generate CIL (already in progress)

    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
    RE: Can't generate CIL (already in progress)

    yes it is the error.

  • Community Member Profile Picture
    on at
    RE: Can't generate CIL (already in progress)

    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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Community Member Profile Picture

Community Member 4

#2
Nayyar Siddiqi Profile Picture

Nayyar Siddiqi 2

#2
Guy Terry Profile Picture

Guy Terry 2 Moderator

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans