One Star

Pre initialize a tHash

I have two subjobs in my first sub job i have thashoutput and in my second job I have a thashInput.
The logic is such that I do not always reach the thashoutput.
In these cases I get the following error in the thashInput?
Exception in component tHashInput_2
java.lang.RuntimeException: Hash is not initialized : Hash must exist before your read from it
How can I pre initialize the tHash to avoid this?
Seven Stars

Re: Pre initialize a tHash

Have a pre-job with just tFixedFlowInput (0 rows) --> tHashOutput to initialise the hash. Make sure your real tHashOutput and your tHashInput are linked to that initial tHashOutput.