cli icon indicating copy to clipboard operation
cli copied to clipboard

force:mdapi:deploy:cancel throws MdapiCancelCommandImpl is not a constructor

Open rondinardo opened this issue 3 years ago • 2 comments

Summary

When I execute force:mdapi:deploy:cancel it throws "MdapiCancelCommandImpl is not a constructor" even though this bug was fixed many releases ago

Steps To Reproduce:

  1. Do a deployment using: sfdx force:mdapi:deploy --deploydir deploy_meta --wait -1 --checkonly
  2. Get the deployment id then do: force:mdapi:deploy:cancel -i <your deployment id>

Expected result

Deployment should cancel and error shouldn't be thrown

Actual result

SFDX throws an error "MdapiCancelCommandImpl is not a constructor"

System Information

  • zsh

{ "cliVersion": "sfdx-cli/7.162.0", "architecture": "darwin-x64", "nodeVersion": "node-v16.16.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)", "alias 2.1.0 (core)", "auth 2.2.3 (core)", "community 2.0.0 (core)", "config 1.4.14 (core)", "generator 2.0.2 (core)", "info 2.0.1 (core)", "salesforcedx 52.0.0", "├─ salesforce-alm 52.0.0", "├─ data 0.4.11", "├─ apex 0.2.2", "├─ schema 1.0.7", "├─ limits 1.2.1", "├─ custom-metadata 1.0.12", "├─ user 1.3.0", "├─ templates 51.5.0", "├─ org 1.6.6", "└─ @salesforce/sfdx-plugin-lwc-test 0.1.7", "sfdmu 4.15.1", "sfdx-cli 7.162.0 (core)", "sfdx-git-delta 5.3.1", "signups 1.2.0 (core)", "source 2.0.11 (core)", "telemetry 2.0.0 (core)", "trust 2.0.1 (core)" ], "osVersion": "Darwin 21.6.0" }

rondinardo avatar Aug 05 '22 13:08 rondinardo

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 Aug 05 '22 13:08 github-actions[bot]

@rondinardo would you share the results of sfdx version --verbose and sfdx plugins.

peternhale avatar Aug 08 '22 12:08 peternhale

Hey 👋🏼 , sorry for the late reply. You had the salesforcedx 52.0.0 plugin installed which was taking precedence over plugin-source (where mdapi:deploy:cancel lives). Uninstalling it should fix the issue.

cristiand391 avatar Sep 21 '22 17:09 cristiand391