+ Start a Discussion
Ron WildRon Wild 

Error uploading unmanaged package

I have an unmanaged package that passes all apex tests in the dev org, but won't upload to the AppExchange.  I get the following error during the upload (as test methods are being run):


System.DmlException: Insert failed. First exception on row 0; first error: UNKNOWN_EXCEPTION, admin operation already in progress: []


The error occurs in a trigger that fires on update of a Batch_Run object, on the line that creates a another  Batch_Run object from inside the trigger.   


This unmanaged package is similar to another package that has uploaded successfully in the past and does the same  trigger action, plus the code runs and passes tests in my dev org ... so I'm at a loss for explaining this one.


Has anyone seen this error before?