You need to sign in to do that
Don't have an account?
Ian Kang 1
How to get error messages in Visual Studio Code? It used to tell why a deploy failed but not anymore
Hi team,
When I code something and deploy to a sandbox, something it fails if I made a mistake or something doesn't work with the configuration of the sandbox. When it fails, it used to give a details reason such as:
row 3 col 5 illegal assignment of String in Number field
However, for some reason it stopped giving reasons but just the outcome
Now it just says DeployFailed: Deploy Failed
I am not sure if something change in CLI or I made a wrong setting.
Can anyone please help?
Thanks!!
When I code something and deploy to a sandbox, something it fails if I made a mistake or something doesn't work with the configuration of the sandbox. When it fails, it used to give a details reason such as:
row 3 col 5 illegal assignment of String in Number field
However, for some reason it stopped giving reasons but just the outcome
Now it just says DeployFailed: Deploy Failed
I am not sure if something change in CLI or I made a wrong setting.
Can anyone please help?
Thanks!!
Do as Khan indicated and make sure you update all your extensions and Visual Studio Code in case Summer 19 broke something with older version of their Extensions.
All Answers
Greetings to you!
You can install extensions from the marketplace that will help you to find out the error and bugs.
https://marketplace.visualstudio.com/items?itemName=MohithShrivastava.dx-code-companion
https://marketplace.visualstudio.com/items?itemName=salesforce.salesforcedx-vscode-apex-debugger
https://marketplace.visualstudio.com/items?itemName=salesforce.salesforcedx-vscode-apex
Try deploying via the CLI rather than VS Code to get better error messaging. Change directory to your project directory and run the following command:
Also, try to update Salesforce CLI using below command:
sfdx update
I hope it helps you.
Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.
Thanks and Regards,
Khan Anas
Do as Khan indicated and make sure you update all your extensions and Visual Studio Code in case Summer 19 broke something with older version of their Extensions.
There was a bug with CLI and it is fixed in the new version 7.12.3
https://github.com/forcedotcom/salesforcedx-vscode/issues/1411
http://jakarta.primegatecity.com/community/education/guaranteed-success-in-6210-exam.html
https://lovelifesolution.com/get-your-ex-love-back (https://lovelifesolution.com/get-your-ex-love-back/)
https://lovelifesolution.com/
I'm still getting no error details when I deploy. Yes, I can go into the terminal window and run a command but that's much slower and more tedious.
This is what I get ---