+ Start a Discussion
Gabriel Corrêa de OliveiraGabriel Corrêa de Oliveira 

Stuck saving APEX code

I have the following problem that happens from time to time:

When I am doing development in a Sandbox and try to save a change to an APEX class, the developer console never finishes saving. I can wait forever, and the title on the editor tab continues to say 'Saving...'.

If I close the editor, it shows me a popup window with the title FIELD_INTEGRITY_EXCEPTION and a message in Portuguese saying:
 
Failed to create deployment: Este contêiner está sendo salvo com deploymentId=1drZ0000001AMEs. Você não pode colocar uma solicitação na fila até que isso seja concluído.: ID do contêiner de metadados

My Salesforce is configured for Portuguese, and I don't have multilanguage licenses. Therefore, I'm stuck with poorly translated messages even in the developer tools. This makes it hard for me to search the web for possible solutions.

In English, the text of the message would mean something like this:
 
Failed to create deployment: This container is being saved with a deploymentId=1drZ0000001AMEs. You can't add a request to the queue until this is finished.: Metadata container ID

After the problem happens for the first time, I can never recover from it with the same user. Other users seem to continue being able to save code to the same sandbox.

In addition, after the first time, the problem persists even if I try to save code through an external tool like Mavensmate.

In my opinion, this is clearly a bug, but Salesforce's standard support plan doesn't even allow us to report bugs with developer tools.

For the meantime, I couldn't find any other solution but to delete the sandbox, create it again, and re-save all the code that I changed, class by class. Obviously this makes me waste a lot of time.
Dan ErvinDan Ervin
Gabriel,

Take a look at this page as it seems to be a successful solutions for others.

http://salesforce.stackexchange.com/questions/20775/failed-to-create-deployment-this-container-has-a-save-in-progress-with-deployme (http://salesforce.stackexchange.com/questions/20775/failed-to-create-deployment-this-container-has-a-save-in-progress-with-deployme" target="_blank)

Good luck!
Gabriel Corrêa de OliveiraGabriel Corrêa de Oliveira
Dear Dan,

Alas, tt doesn't work.

I tried both: "Cancel All Deployments" on the developer console and deleting https://<INS>.salesforce.com/<DEPLOYMENT-ID>

The problem happens again and again with a new ID.