cli icon indicating copy to clipboard operation
cli copied to clipboard

MDAPI Deploy ignorewarning and validateddeploymentrequestid error

Open KevinLSum opened this issue 3 years ago • 4 comments

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:

  1. Authenticate with a sandbox. (sfdx auth:jwt:grant -u [email protected])
  2. Run Validation (sfdx force:mdapi:deploy -w 30 -g -c)
  3. Run deployment with provided id from validation (sfdx force:mdapi:deploy -w 30 -g -q <deploymentID>)
  4. 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.

KevinLSum avatar May 17 '22 20:05 KevinLSum

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.

github-actions[bot] avatar May 17 '22 20:05 github-actions[bot]

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.

iowillhoit avatar May 17 '22 21:05 iowillhoit

This issue has been linked to a new work item: W-11158847

uip-robot-zz avatar May 17 '22 21:05 uip-robot-zz

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.

KevinLSum avatar May 17 '22 22:05 KevinLSum

Fixed in the linked PR above.

cristiand391 avatar Jan 03 '23 20:01 cristiand391