Skip to content

Field is not writeable

Detection

  • RegExp: Error (.*) Field is not writeable: (\S+)

Examples

  • Error InvoiceService Field is not writeable: Invoice__c.Total__c (18:12)

Resolution

{1} assigns {2}, which can not be written: formula, roll-up summary, auto number or system field.
- Remove the assignment of {2}, or write another field
- If {2} became a formula in your sources, deploy the Apex change with it

Comments