Error Code "sf:INVALID_OPERATION"
During deployment, you may run into a Salesforce error message:
This is seen when deploying to the Production org under the following conditions:
Testing is done with "Do not run any tests" options.
When deploying on the Production org, you must use the following run tests option - use the option "Run local tests" or "Run all tests". The above error won't be seen with this test deployment option.
To skip running test classes in Production, please deploy with the option "Run Selected Test" and leave the test classes box empty. No tests will be run.
See also: sf:INVALID_OPERATION