function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
MarinaMartinMarinaMartin 

Repeating error: ENTITY_FAILED_IFLASTMODIFIED_ON_UPDATE

Hi all,

 

I'm receiving the below error on the same Account, constantly, using a "fake" roll-up summary trigger I have running on many clients' instances with no trouble. I understand this error means that something else may be attempting to edit this record with a future modified date -- could the Outlook connector be doing this? Any thoughts on why it would affect ONE account and only one, when all other accounts are also updated throughout the day?

 

Any light someone could shed would be much appreciated.

 

Thanks!
Marina 

 

Developer script exception from [redacted name of account] : CountContact : CountContact:
execution of AfterUpdate caused by: System.DmlException: Update failed.
First exception on row 0 with id 001XXXXXXXXXXX; first error:
ENTITY_FAILED_IFLASTMODIFIED_ON_UPDATE, entity fa

Apex script unhandled trigger exception by user/organization:
005XXXXXXXXXXXXXXXXXXXXXX

CountContact: execution of AfterUpdate

caused by: System.DmlException: Update failed. First exception on row 0 with
id 001XXXXXXXXXXXXX; first error: ENTITY_FAILED_IFLASTMODIFIED_ON_UPDATE,
entity failed ifModifiedBefore test on update: []

Trigger.CountContact: line 39, column 1