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

Announcements
Qlik Connect 2026 Agenda Now Available: Explore Sessions
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Nullpointer exception when using variable in tRestClient

Hello Talend Community

 

I am attempting the following. 

Read from database, create variable, use variable in a REST service parameter for execution. 

Attached is my job details and error.

 

When I change the variable from ((String)globalMap.get("row2.address")) to static "1", everything works fine

 

Job Steps:

tMysqlInput--(Main)->tFlowToIterate--(Iterate)--->tFixedFlowInput--(Main)-->TRESTClient--->tLogRow

 

I have looked at this thread (https://www.talendforge.org/forum/viewtopic.php?pid=140765#p140765) but the steps also leads to the same result0683p000009Luha.png0683p000009Luew.png0683p000009LtjR.pngJob

 

Labels (2)
1 Solution

Accepted Solutions
TRF
Champion II
Champion II

Hi,

With tFlowToIterate, the default name from global variables is based on input flow, not output flow.

So, replace "row2.address" by "row1.address" and try again.

View solution in original post

2 Replies
TRF
Champion II
Champion II

Hi,

With tFlowToIterate, the default name from global variables is based on input flow, not output flow.

So, replace "row2.address" by "row1.address" and try again.

Anonymous
Not applicable
Author

Thanks TRF

 

Worked like a charm!!