Announcements
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 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.
Hi Ergun,
Its a AX Class, even i tried opening the class from AOT, getting the same error like :
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.
André Arnaud de Cal...
294,095
Super User 2025 Season 1
Martin Dráb
232,866
Most Valuable Professional
nmaenpaa
101,158
Moderator