StrataFrame Forum

Not displaying original error message if error in trigger

http://forum.strataframe.net/Topic12719.aspx

By Chan - 11/15/2007

Hi,

I faced situation that, if my trigger hit any error, SF doesn't report the error message occurred in trigger when save. Instead, it will somehow show "Object reference is not set". I guess it is caused by SF will continue the rest of code even save is failed.



Any way to prevent it?



Thank you
By StrataFrame Team - 11/19/2007

Was it an INSERT, UPDATE, or DELETE trigger?  I'll try to reproduce it on this end...

It is strange, though, that the exception would not be caught.  Though likely, the return value during an ExecuteDataReader operation could be null if the trigger throws an error, so that may be causing it.

By Chan - 11/19/2007

Hi,

I can't remember whether if only happen to ParentBO's trigger while to I call childBO.save.