+ 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