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
PamSalesforcePamSalesforce 

Trigger on ContentDocument

Hi,

 

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.

 

Thanks,