Skip to main content

Notifications

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

  • Suggested answer
    ergun sahin Profile Picture
    8,816 Moderator on at
    RE: How to kill running class in ax 2009

    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.

  • Akbarpasha Profile Picture
    on at
    RE: How to kill running class in ax 2009

    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,816 Moderator on at
    RE: How to kill running class in ax 2009

    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.

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,095 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,866 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Product updates

Dynamics 365 release plans