[SalesForce] Organization Administration Locked…

After having my Developer Console not be able to save a class that I edited, I faced this error message when trying to edit/save the class directly in the browser:

Organization Administration Locked

"The changes you requested require salesforce.com to temporarily lock your organization's administration setup. However, the administration setup has already been locked by another change. Please wait for the previous action to finish, then try again later."

Any idea what is causing this and/or what I can do to fix it?

Thanks!

Best Answer

This usually means:

  1. Something is being deployed via API (check Setup -> Monitor Deployments)
  2. Something is being deployed via changesets (Setup -> Deploy -> Inbound change sets)
  3. You're running some unit tests.

Your request (from developer console, Eclipse or whatever) might have been canceled / timed out but the deployment still runs. One of these means should give you a hint what's going on.... You might also check setup aoudit trail if the condition persists.

If your class failed to save but it seems to be still checking - maybe you've modified something "big". Will many visualforce pages / apex clases that rely on this class suddenly become invalid because you deleted a lot? In that case it might be worth a while to help SF dependency checker by commenting out majority of these VF classes before saving your main change...