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 :
Finance | Project Operations, Human Resources, ...
Suggested Answer

How to kill running class in ax 2009

(0) ShareShare
ReportReport
Posted on by

Hi All,

We have created class to import csv file, but while clicking on the related menu item getting the below error.

An instance of **** already running.

How can we kill or cancel the class execution.

It is not batch job.

Regards,

Akbar

I have the same question (0)
  • Suggested answer
    ergun sahin Profile Picture
    8,826 Moderator on at

    Is **** a class name or file name? If its csv fileName, You can find file at task manager and close it. If its ax  class you can try Ctrl + Break but sometimes it ll not do. You can close ax.

    Finally, if this is the filename and you get the same error every time, you need to check the code. Either you are calling it more than once or you forget to close it off when the process is over.

  • Akbarpasha Profile Picture
    on at

    Hi Ergun,

    Its a AX Class, even i tried opening the class from AOT, getting the same error like :

    "Another instance of ****(class name) upload job is already running".
    Tried compiling forward,refreshing AOT and Refreshing Data as well.
    Can we try restarting AX services or is there any way to stop or cancel the running class.
    Regards,
    Akbar
  • Suggested answer
    ergun sahin Profile Picture
    8,826 Moderator on at

    I don't think the error you are showing is standard system error (at least I couldn't remember such an error)

    Normally ax does not deal with multiple runs of the same method.

    Offcourse It is possible to check whether the class is working in structures such as batch.

    stackoverflow.com/.../determine-if-a-job-is-running-in-x-code

    Or it is possible to check if a file is open with x ++ codes.

    This type of control may have been added. Is it possible to show the codes where you got the error from debug or info?

    Note:Yo can search the label in the label file, search the result you found(or text) in the relevant classes.

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 544 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 250 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans