+ Start a Discussion

Trigger on ContentDocument



I am trying to update COntentVersion record associted to ContentDocument when a Content Document is Archived. The trigger is throwing error when I update the ContentVersion record in before update of Content Document. There are no other trigger on COntentVersion.


Here is the error:

|FATAL_ERROR|System.DmlException: Update failed. First exception on row 0 with id 068E0000000c7UTIAY; first error: SELF_REFERENCE_FROM_TRIGGER, Object (id = 069E000000046xx) is currently in trigger UpdateStatus, therefore it cannot recursively update itself: []


Can anyone help me with this.