Hi,
I have got this unexpcted error in the job queue "The metadata object CodeUnit 50139 was not found.". I created a job queue which runs the code unit to import products using external api call. I uploaded .app extension file and installed it on the sandbox environment and configure job queue which successfully started at the specific time.
The job queue runs almost 42000 iteration and imported around 9000 products. The job time out was 18 hours but it ran almost 9 hours which i checked last time the job queue was in InProcess state it was not stopped.
When i checked in the morning the job queue was stopped due to this error. The metadata object CodeUnit 50139 was not found.
I got this error 2 times yesterday, The first time the same error occurred when i ran job queue By clicking the Run Once Fore Ground Option and as i closed the tab i got this error.
The 2nd time i got this error when i run the project in the debugging mode and set job queue to run on the specific time and when i stopped debugging i got this error again for that job.
To avoid this i created .app file and uploaded and set it's time to start it automatically on a specific time but after almost 9 hours i got this error again in the sandbox environment in this time i didn't do anything.
What could be the possible reason of this and how I can solve this issue i am struggling to know the actual reason of this?
Is there any way from where i can see actual cause of error and system generated exceptions?