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.
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