I have created a trigger for a custom object for the event "After Insert" only. When running the test for this trigger the test fails with the following error:
System.DmlException: Insert failed. First exception on row 0; first error: CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY, Assign_Serial_To_Software: execution of AfterInsert
Now, inside the trigger there is an update statement (the entire reason for the trigger in the first place).
- Is the error caused by the update statement? (It looks like it is)
- If so is there anyway to make the object update itself after insert?