- This topic has 6 replies, 2 voices, and was last updated 10 years, 3 months ago by .
-
Topic
-
I am writing a protocol UPOC that uploads transactions via HTTPS. The context of such a UPOC is ‘pdupoc_write’. Everything works great when the upload succeeds and I return a disposition of ‘CONTINUE’. However in the event of a failure I am updating the ‘USERDATA’ metadata field in the message and then I am returning a disposition of ‘ERROR’ using the following two lines of code. Code:msgmetaset $messageHandle USERDATA “Error message goes here”
return “{ERROR $messageHandle}
The issue I am having is that in the Send Fail TPS, the error message that I previously set in the USERDATA metadata is gone. Furthermore when I view the message in the error database my metadata is also not present.
What is the proper way to error out a message in the pdupoc_write context such that USERDATA is preserved?
- The forum ‘Cloverleaf’ is closed to new topics and replies.