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

Announcements
Note: You may notice some temporary visual or styling issues in the Community. Our vendor is actively investigating.
cancel
Showing results for 
Search instead for 
Did you mean: 
ndy_Benoit
Contributor
Contributor

reusing a tHashOutput after a 'clear cache after reading' checked

Hello,
I'm using tHash components in my job.
here is a part of this program :
 tHashInput1 -> tHashOutput2
parameters of the component tHashInput1 :  linked with component tHashOutput_1 and clear cache after reading is checked
is it possible to initialize later in the program the component tHashOutput_1, in order to reuse it in a loop ?
I have try that : tFixedFlowInput -> tHashOutput1
When I run the program, I have an error on this component tHashOutput1 "Exception in component tHashOutput_xx java.lang.NullPointerException ..."
With the tFixedFlowInput parameter  Number of rows=0 or Number of rows=1,  it doens't work.
Labels (3)
10 Replies
Anonymous
Not applicable

You can send data back to the main job using the tBufferOutput and import data into the child job using context variables or one of the data input components.
You can use Java to make this easier (if you are happy with Java). Store you data in an ArrayList or HashMap using tJavaFlex. I have written a tutorial on something completely unrelated which covers this. It might help.  https://www.rilhia.com/tutorials/load-xml-files-batches-records