I have a Visual Studio Code project which has beed authorised against a production environment.
I am using the Salesforce DX CLI pre-release:
sfdx plugins:install salesforcedx@pre-release
When I right-click on an Apex class in Visual Studio Code and select:
SFDX: Deploy Source to Org
I get this error message:
ERROR: INVALID_OPERATION: rollbackOnError option must be true on a production org
How do I set rollbackOnError
to true
in the sfdx-config.json
or sfdx-project.json
?
Such that it's set correctly when I use the SFDX: Deploy Source to Org
command.
force:source:deploy
. I'm asking Wade for his input on the matter. The alternative workaround isforce:source:convert
followed byforce:mdapi:deploy
in order to set the necessary flag. I think it might literally be easier to write your own script for now. – sfdcfox Sep 8 '18 at 23:10