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

Passing input values through to tESBConsumer output fault flow for logging

I am currently using Talend Open Studio 6.4.1.

 

I want to capture the 2-3 key fields from an input message to a tESBConsumer component and pass them through in the event the web service returns a fault.   I will then log the key fields along with the faultCode and faultString.  How do I pass from the input side of a tESBConsumer to the fault flow in the event of an error.

 

Key Fields are in XML payload in Map Assets component.  need to pass these to row5 (fault).

0683p000009LsCM.pngPassing logging values (from input payload) thru tESBConsumer to fault flow

Example field needing to be passed through from tMap "payload" output

0683p000009Ls1C.png

I am not sure what technique is best for doing this.

Labels (1)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Hi 

If the value comes from database, you can iterate the input data so that you can access the data on other components later. eg:

tOracleInput--main(row1)--tFlowtoIterate--iterate--tfixedFlowInput--main--tXMLMAP--tESBConsumer--response-->

                                                                                                                                                     --fault--tMap-->

on tMap: add external fields, you can get the value with the expression like:

(String)globalMap.get("row1.columnName")  

// for string type

 

Regards

Shong

                                                                                                     

View solution in original post

1 Reply
Anonymous
Not applicable
Author

Hi 

If the value comes from database, you can iterate the input data so that you can access the data on other components later. eg:

tOracleInput--main(row1)--tFlowtoIterate--iterate--tfixedFlowInput--main--tXMLMAP--tESBConsumer--response-->

                                                                                                                                                     --fault--tMap-->

on tMap: add external fields, you can get the value with the expression like:

(String)globalMap.get("row1.columnName")  

// for string type

 

Regards

Shong