Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

[resolved] How to access tESBProviderRequest payload in tAsserCatcher?

Hello,
in a service job processes soap request. The processing throws exception. We catch this exception in a tAssertCatcher and send fault using tXMLMap and tESBProviderFault.
How to access the request payload in error handling? I need to copy some metadata from request to the fault.
Thank you, Viktor

Labels (2)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Hi
You can store the payload to a global variable on tJavaRow before processing, and then you are able to get it later on other component, for example:
tESBProviderRequest--main--tJavaRow--main--tXMLMap.....
     
tAsserCatcher----tMap--->
on tJavaRow:
output_row.payload = input_row.payload;
globalMap.put("key",input_row.payload);

on tMap, add the new column with Document type in the output table, and set its expression as:
(routines.system.Document)globalMap.get("key")

Best regards
Shong

View solution in original post

2 Replies
Anonymous
Not applicable
Author

Hi
You can store the payload to a global variable on tJavaRow before processing, and then you are able to get it later on other component, for example:
tESBProviderRequest--main--tJavaRow--main--tXMLMap.....
     
tAsserCatcher----tMap--->
on tJavaRow:
output_row.payload = input_row.payload;
globalMap.put("key",input_row.payload);

on tMap, add the new column with Document type in the output table, and set its expression as:
(routines.system.Document)globalMap.get("key")

Best regards
Shong
Anonymous
Not applicable
Author

Thank you Shong 0683p000009MACn.png