MDAPI Deploy ignorewarning and validateddeploymentrequestid error
Summary
When we do a check only MDAPI Deploy after a validation, we get the following error (on version 7.150.0): "ERROR running force:mdapi:deploy: --ignorewarnings= cannot also be provided when using --validateddeployrequestid=".
Steps To Reproduce:
- Authenticate with a sandbox. (sfdx auth:jwt:grant -u [email protected])
- Run Validation (sfdx force:mdapi:deploy -w 30 -g -c)
- Run deployment with provided id from validation (sfdx force:mdapi:deploy -w 30 -g -q <deploymentID>)
- Returns error "ERROR running force:mdapi:deploy: --ignorewarnings= cannot also be provided when using --validateddeployrequestid="
Expected result
Quick deployment should execute at this point.
Actual result
Quick deployment is not even attempted on the salesforce end.
System Information
{ "cliVersion": "sfdx-cli/7.150.0", "architecture": "win32-x64", "nodeVersion": "node-v16.15.0", "pluginVersions": [ "@oclif/plugin-autocomplete 0.3.0 (core)", "@oclif/plugin-commands 1.3.0 (core)", "@oclif/plugin-help 3.3.1 (core)", "@oclif/plugin-not-found 1.2.6 (core)", "@oclif/plugin-plugins 1.10.11 (core)", "@oclif/plugin-update 1.5.0 (core)", "@oclif/plugin-warn-if-update-available 1.7.3 (core)", "@oclif/plugin-which 1.0.4 (core)", "@salesforce/sfdx-plugin-lwc-test 0.1.7 (core)", "alias 2.0.0 (core)", "apex 0.11.0 (core)", "auth 2.0.2 (core)", "community 1.1.4 (core)", "config 1.4.6 (core)", "custom-metadata 1.1.0 (core)", "data 0.6.15 (core)", "generator 2.0.0 (core)", "info 2.0.0 (core)", "limits 2.0.0 (core)", "org 1.12.1 (core)", "salesforce-alm 54.3.0 (core)", "schema 2.1.0 (core)", "sfdx-cli 7.150.0 (core)", "signups 1.0.0 (core)", "source 1.9.7 (core)", "telemetry 1.4.0 (core)", "templates 54.6.0 (core)", "trust 1.1.0 (core)", "user 1.7.1 (core)" ], "osVersion": "Windows_NT 10.0.19044" }
Additional information
Feel free to attach a screenshot.
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.
Thanks for the detailed issue @KevinLSum, I was able to replicate this. This is throwing an error because of this exclusive flag check. You should be able to run the legacy command in the meantime: sfdx force:mdapi:legacy:deploy -w 30 -g -q YOUR_ID. I'll get a ticket created to get this sorted out.
This issue has been linked to a new work item: W-11158847
Awesome! Thanks! I did identify the legacy run option and we are doing that for now. We would just like to use the up-to-date deploy function once it's possible. I appreciate the quick response.
Fixed in the linked PR above.