Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

2. Deploy ID is generated and to fetched from the logs:

...

Troubleshooting failed Quick Deployments

Q. Quick Deploy Task fails with below message

ERROR running force:source:deploy: INVALID_ID_FIELD: There have been deploys in the org since the source validate happened

A. This suggests that the provided Validation deployment Job ID is no more applicable for Quick Deploy because of following reasons :

  1. A recent regular deployment / quick deployment execution has happened post the Validation.

  2. The provided deployment job ID was created as part of validation that happened 10 days prior.

Q. Quick Deploy Task fails with below message

ERROR running force:source:deploy: INVALID_ID_FIELD: Source validate did not run tests in the org

A. This suggests that the provided Validation deployment Job ID didn’t include any Unit test level or was having NoTestRun selected as part of the execution and therefore not eligible for Quick Deployment.

Q. Quick Deploy Task fails with below message

ERROR running force:source:deploy: INVALID_ID_FIELD: Source is not a check-only deploy

A. This suggests that the provided Validation deployment Job ID is not a Validation deployment job ID but a Deployment Job ID and therefore is not applicable for Quick Deployment.

Q. Quick Deploy Task fails with below message

ERROR running force:source:deploy: UNKNOWN_EXCEPTION: invalid parameter value

A. This suggests that the provided Validation deployment Job ID is not a valid Salesforce deployment ID and therefore not applicable for Quick Deployment.

Q. Quick Deploy Task fails with below message

ERROR running force:source:deploy: UNKNOWN_EXCEPTION: unexpected metadata

A. This suggests that the provided Validation deployment Job ID is not a valid Salesforce deployment ID and therefore not eligible for Quick Deployment. This can also occur if the Job ID created as part of Unit Testing step.