Could not retrieve Org's Metadata

Every time a Git snapshot backup that is scheduled is executed, you might receive an email with the message below:

"A task could not be run on Copado. Please carefully review the below information as an action may be required from your end in order to enable the Copado task to complete successfully.
Details: Unexpected Error while taking a Snapshot. Id: XXXXXXXXXXXXX. Message: Could not retrieve Org's Metadata."

If you access the affected Git snapshot where the backup is being performed and run the backup manually, it will work. However, when the backup runs automatically, the email above is received. If this happens, follow the steps below:

  1. Go to Setup | Scheduled Jobs and check the who the user that submitted the job called Copado is.

  2. Once you have identified the user, check if that user has a Copado Deployer license assigned under Setup | Installed Packages | Copado Deployer.

  3. If the user doesn't have a license, you have two options:

    1. Assign a license to the user.

    2. Change the user that is submitting the Copado job following the steps below:

      1. Remove Copado from the Job Name field in the Scheduled Apex page.

      2. Log in with a user that has a Copado license assigned.

      3. Open an Org Credential record that has Test Frequency set to anything but None.

      4. Click on Edit in the record and save it without changing anything.

      5. Go back to the Scheduled Jobs page.

      6. The Copado job should be there, but this time it will be submitted by the user that has the Copado license assigned.


How did we do?