tHashInput

Highlighted
Six Stars

tHashInput

Hi all

I have a probme with tHashInput-tHashoutput

I wrote date into a tHashOutput then I want to add row to this tHashoutput. Iused tHashUnput with tMap  and I restore my new generated row to tHashOutput

but it alwayes give me the exception 

Exception in component tHashInput_2
java.lang.NullPointerException
at java.util.concurrent.ConcurrentHashMap.get(Unknown Source)

 

 


Accepted Solutions
Highlighted
Five Stars

Re: tHashInput

Yes, it will work. PFB screenshot for reference.

 

thashinput_subjobok.PNG

View solution in original post


All Replies
Highlighted
Five Stars

Re: tHashInput

Hi MZein,

 

In the image you attached, there is no tHashInput_2 component as you described.

 

If your requirement is to append new data into the existing THashOutput data, PFB image for reference.

 

 

thashinput.PNG

 

 

 

 

 

 

 

 

 

 

 

 

Emp1 subjob will insert a record into thashoutput1.

 

Emp2 subjob will insert a new record into thashoutput2. Since "Link with a tHashOutput " option is enabled and pointed to thashoutput1, whatever data we are inserting into thashoutput2 it will be appended in thashoutput1 as well.

 

thashinput2 config.PNG

 

 

 

 

In the post-job, create a Thashinput and link it with hashoutput1. This will help you to display both the records in the console.

 

Let me know if you need more details.

Tags (2)
Highlighted
Six Stars

Re: tHashInput

Thank you very much for your answer. can I do the same without using PostJob component , by using onsubjobOK for example?

 

Regards

 

Highlighted
Five Stars

Re: tHashInput

Yes, it will work. PFB screenshot for reference.

 

thashinput_subjobok.PNG

View solution in original post

Highlighted
Six Stars

Re: tHashInput

Thank you very much for your solution

Best Regards

2019 GARTNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

Best Practices for Using Context Variables with Talend – Part 2

Part 2 of a series on Context Variables

Blog

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Best Practices for Using Context Variables with Talend – Part 3

Read about some useful Context Variable ideas

Blog