Notifications
Announcements
No record found.
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
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.
Hi Ergun,
Its a AX Class, even i tried opening the class from AOT, getting the same error like :
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 544 Most Valuable Professional
André Arnaud de Cal... 450 Super User 2025 Season 2
Sohaib Cheema 250 User Group Leader