You need to sign in to do that
Don't have an account?
GoForceGo
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?
I think the error will be shown on the entry of the transaction. If you are from account, error will be there.
All Answers
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?
I think the error will be shown on the entry of the transaction. If you are from account, error will be there.