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
GoForceGoGoForceGo 

SObject Row does not allow errors....

I have a trigger on contact and a trigger on Account. The trigger on Account update the contacts and hence ends up firing the contact trigger.


The contact trigger has addError - I double checked, it is on the record included in the trigger.

 

If I am updating an Account from UI,  and the contact addError fires, I get the "SObject row does not allow errors".


If I am updating a contact, how do I know what fired the contact trigger?

 

 

 

Best Answer chosen by Admin (Salesforce Developers) 
iBr0theriBr0ther

I think the error will be shown on the entry of the transaction. If you are from account, error will be there.

All Answers

GoForceGoGoForceGo

I think I was wrong - the row on which I was adding errors wasn't necessarily part of the trigger.

 

But that still begs the question - if I am updating an account, and the contact trigger fails, will I get an error message on the account page?

 

 

 

 

iBr0theriBr0ther

I think the error will be shown on the entry of the transaction. If you are from account, error will be there.

This was selected as the best answer