You need to sign in to do that
Don't have an account?

Trigger.new[0].addError giving Insufficient Privileges error
Hi All,
I am getting Insufficient Privileges error while adding error messgae using addError. I have tried with System Admin profile but still the same issue.
The code works fine when I comment out the addError lines.
Does anyone know why this issue is happening?
I am getting Insufficient Privileges error while adding error messgae using addError. I have tried with System Admin profile but still the same issue.
The code works fine when I comment out the addError lines.
Does anyone know why this issue is happening?
Eg : Trigger.new[0].myField__C.addError('bad');
Review the belwo code for more information on add error method and usage
http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_methods_system_sobject.htm
Please mark this as the best answer if it resolved your query so that It would help others looking for similar solutions .
All Answers
Eg : Trigger.new[0].myField__C.addError('bad');
Review the belwo code for more information on add error method and usage
http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_methods_system_sobject.htm
Please mark this as the best answer if it resolved your query so that It would help others looking for similar solutions .