You need to sign in to do that
Don't have an account?
CRM Jedi
"Field is not Writable" error in Production
We are updating a standard field CreatedDate in one of our testmethod.
This method works fine in our sandboxes, but it gave the "Field is not Writable" error when we tried to deploy it to the Production org.
This was previously deployed to the Production org without problem. But it started giving problem in this release.
Need help to indentify why is this happening.
Thanks.
Typically CreatedBy, CreatedDate, LastModifiedByID, LastModifiedDate, and a number of other fields on most objects are read-only for valid business and data-integrity reasons. I'm not sure why you are able to do this is your sandbox but my guess is you had the create audit fields enabled.
Jeff Douglas
http://blog.jeffdougas.com
Appirio