-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sf project deploy validate is not explaining why validation failed #2757
Comments
Thank you for filing this issue. We appreciate your feedback and will review the issue as soon as possible. Remember, however, that GitHub isn't a mechanism for receiving support under any agreement or SLA. If you require immediate assistance, contact Salesforce Customer Support. |
I forgot to mention that the issue happens in a Production org. |
This issue has been linked to a new work item: W-15207335 |
Looks like you can get the detailed failure messages if you don't use the |
@shetzel you were right |
This issue is fixed in Salesforce CLI release 2.33.3. |
Summary
When running a "sf project deploy validate" command, the validation fails, but the only message received is:
FailedValidationError: Failed to validate the deployment (XXXXXXXXXXXXX). Due To:\n1 component error(s)
Steps To Reproduce
The following command was executed:
project deploy validate --manifest \"${PACKAGE_XML_PATH}\" --test-level RunLocalTests --wait 120 --verbose --target-org Prod --json > output.txt
The package.xml contains:
Expected result
The deployment should be validated or, if canceled, an explanation of the cancelation reason should be received.
Actual result
The validation is canceled after a couple of minutes with the following message:
FailedValidationError: Failed to validate the deployment (XXXXXXXXXXXXX). Due To:\n1 component error(s)
System Information
The command is executed through a Jenkins job, that can deploy without issues. Now, we are including the validation option.
The sf CLI was updated today with the latest version available
The text was updated successfully, but these errors were encountered: