Why, when trying to modify a Visualforce Page in Dev Console on a Production org, do I get the following error:
Can't alter metadata in an active org
But, when I modify the page in the Web IDE, it allows it just fine?
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It only takes a minute to sign up.Sign up to join this community
While I don't have any documentation reference, I suspect that the web interface does not use the more recent tooling api yet, while the developer console does.
I suspect the create/update call in the tooling api is limited to developer orgs and sandboxes:
Use create() to compile Apex classes or triggers in Developer Edition or sandbox organizations.
Know that it's strongly discouraged to do any direct code changes on production orgs. Besides introducing bugs this may also bring down your code coverage, making it very hard to do further changes or deploy to your org. This is what sandboxes are for.