onUpdate trigger

Hi All,

I have this problem:
I created SXS to manage onUpdate event. But the parameter defined as:

Name="XMLObjectNew TSDType="ino:XML-OBJ"

is always empty and ino:SXS-Trace give me this message error:

ExceptionCode=“7114”
ExceptionText="INOSXE7114: Java error: Errtext: ‘java.lang.NullPointerException’"

Does anyone help me, please?
Thanks in advance

Raffaele

Hi Raffaele,

If you update via insert with ino:id, the update trigger will be called twice: first with XMLObjectOld set to the old document and XMLObjectNew unset, the second time with XMLObjectOld unset and XMLObjectNew with the new document. This is because insert with ino:id indeed deletes the old document and processes the new document afterwards.
If you need both values, you should save the old document from the first call and use it in the second call.

Hope that helps,

Julius Geppert
Software AG

Hi Julius,
thank you very much for your help!

Raffaele