Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Impossible to deploy to production #305

Closed
Bartheleway opened this issue Feb 17, 2020 · 12 comments
Closed

Impossible to deploy to production #305

Bartheleway opened this issue Feb 17, 2020 · 12 comments

Comments

@Bartheleway
Copy link

Summary

After updating to 7.46.1-3d2451fad8, I can't deploy to production anymore. It's asking for a rollbackOnError which is not documented.

Steps To Reproduce:

  1. Try to use force:mdapi:deploy or force:source:deploy

Expected result

Being able to deploy.

Actual result

Stuck because of error : INVALID_OPERATION: rollbackOnError option must be true on a production org

Additional information

sfdx-cli/7.46.1-3d2451fad8 win32-x64 node-v10.15.3

@PJakober
Copy link

I'm facing the same issue.
sfdx version outputs the same as for @Bartheleway:
sfdx-cli/7.46.1-3d2451fad8 win32-x64 node-v10.15.3

@Bartheleway
Copy link
Author

Bartheleway commented Feb 17, 2020

For now I deploy with Workbench after using force:source:convert.

It looks like the issue has already been solved twice #251 and #61 in the past. Don't you think it's time to write a test to avoid releasing the cli with this error again ?

@maaaaarco
Copy link

same here...

@alanjaouen
Copy link

alanjaouen commented Feb 17, 2020

Impacted by this issue here too
sfdx-cli/7.46.1-3d2451fad8 linux-x64 node-v10.15.3

@ghost
Copy link

ghost commented Feb 17, 2020

Running in CI Job:

17-Feb-2020 12:08:59 sfdx-cli: Updating CLI...
17-Feb-2020 12:09:12 sfdx-cli: Updating CLI from 7.33.2-045d48473e to 7.46.1-3d2451fad8... done
17-Feb-2020 12:09:13 sfdx-cli: Updating CLI... done
17-Feb-2020 12:09:15 Successfully authorized [email protected] with org ID 00Dd0000000fSbwEAE
17-Feb-2020 12:09:20 ERROR running force:source:deploy:  INVALID_OPERATION: rollbackOnError option must be true on a production org

When I remove the sfdx update line it works against production.

@amphro
Copy link
Contributor

amphro commented Feb 17, 2020

I opened an investigation but it probably won't get looked at for a few hours. I'll post here when I have an update.

@manwe651
Copy link

This is affecting us.

@amphro
Copy link
Contributor

amphro commented Feb 17, 2020

This was due to an attempt to remove deprecated code. Obviously not all of the code removed was deprecated. We did have tests for this, but those were removed too. Sorry for the inconvenience. We are working on pushing out a fix shortly.

@amphro
Copy link
Contributor

amphro commented Feb 18, 2020

We released CLI 7.46.2. Please let me know if it resolves the issue.

@PJakober
Copy link

@amphro Thanks for looking into this. It's working again for me :)

@Bartheleway
Copy link
Author

Thanks I confirm this solve the issue on my side as well.

@SalesforceBobLightning
Copy link

I am using @salesforce/cli/2.20.6 win32-x64 node-v20.10.0 and I am getting the same error

Error (1): INVALID_OPERATION: rollbackOnError option must be true on a production org

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants