function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Ramesh VaratharajRamesh Varatharaj 

SFDC: Deploy to source org error

I am trying deployment from VS Code project using Deploy to source org and it fails with below error. 
I tried reinstalling CLI, creating new project and also with new dev org - nothing seems to help. Could you please suggest how i can overcome this error. 

MissingMessageError: Missing message mdapi_deploy:mdDeployCommandCliCheckOnly for locale en_US.
    at Messages.getMessageWithMap (C:/Program Files/Salesforce CLI/client/node_modules/@salesforce/core/lib/messages.js:277:19)
    at Messages.getMessage (C:/Program Files/Salesforce CLI/client/node_modules/@salesforce/core/lib/messages.js:261:21)
    at Object.<anonymous> (C:/Program Files/Salesforce CLI/client/node_modules/salesforce-alm/dist/commands/force/source/deploy.js:38:36)
    at Module._compile (C:/Program Files/Salesforce CLI/client/node_modules/v8-compile-cache/v8-compile-cache.js:192:30)
    at LazyLoader.loadModule (C:/Program Files/Salesforce CLI/client/node_modules/@salesforce/lazy-require/lib/LazyLoader.js:139:21)
    at Function._load (C:/Program Files/Salesforce CLI/client/node_modules/@salesforce/lazy-require/lib/LazyLoader.js:115:29)
    at require (C:/Program Files/Salesforce CLI/client/node_modules/v8-compile-cache/v8-compile-cache.js:161:20)
    at fetch (C:/Program Files/Salesforce CLI/client/node_modules/@oclif/config/lib/plugin.js:111:21)
    at Plugin.findCommand (C:/Program Files/Salesforce CLI/client/node_modules/@oclif/config/lib/plugin.js:125:21)
    at Object.load (C:/Program Files/Salesforce CLI/client/node_modules/@oclif/config/lib/plugin.js:58:72)

 
Debaranjan GhoshDebaranjan Ghosh
Not sure but this link might help you
https://trailhead.salesforce.com/en/content/learn/projects/quickstart-vscode-salesforce/use-vscode-for-salesforce
Subhasini Bhosal 10Subhasini Bhosal 10
Hi ,

I also faced this issue. The troubleshooting steps that I followed are:
  • verify if Salesforce CLI is working fine by checking SFDX: Retrieve from Source org. If this works fine then it implies your CLI has problem only with deploy
  • Reinstall Salesforce CLI macOS: Follow the below as per your system
macOS : https://sfdc.co/sfdx_cli_osx
Windows 32-bit: https://sfdc.co/sfdx_cli_win
Windows 64-bit : https://sfdc.co/sfdx_cli_win64
  • try to deploy again.
All The Best !
Please mark this as best answer if it helps.

Regards,
Subhasini