Skip to main content
Announcements
Accelerate Your Success: Fuel your data and AI journey with the right services, delivered by our experts. Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
MZein
Contributor III
Contributor III

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)

 

 

Labels (2)
1 Solution

Accepted Solutions
knknaveen
Contributor II
Contributor II

Yes, it will work. PFB screenshot for reference.

 

0683p000009M8Nt.png

View solution in original post

4 Replies
knknaveen
Contributor II
Contributor II

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.

 

 

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

 

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

MZein
Contributor III
Contributor III
Author

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

 

Regards

 

knknaveen
Contributor II
Contributor II

Yes, it will work. PFB screenshot for reference.

 

0683p000009M8Nt.png

MZein
Contributor III
Contributor III
Author

Thank you very much for your solution

Best Regards