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

Announcements
Independent validation for trusted, AI-ready data integration. See why IDC named Qlik a Leader: Read the Excerpt!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

empty/null table show up in ExtractJSON Fields

Hello,

 In fact, I just started working with talend open studio for data integration; I want to export a array long json ;I have a file containing; This showed me that the debianbug field does not always appear0683p000009M4LC.png

How I would like the output to look like:

CVE Scope debainbug description status fixed_version urgency
             

They all appear to be individual CVE sections (and some are), but if you look deeper you will see that some are grouped together.

my job :

0683p000009M4H0.png

tExtractjson1: 

0683p000009M4Bl.png

0683p000009M4Mx.png

textarctjson2:

0683p000009M47t.png

excute:the field is empty/null !!!

0683p000009M48h.png

Does anyone have any advice or ideas on how I can achieve this?

 

I use "Talend open studio for data integration version 7.1.1.2018102681147

 

Thank you very much for your time and help

Best regard

Mitra

Labels (3)
16 Replies
Anonymous
Not applicable
Author

thank you for your time and help; can you attach the tExtarctjson photo or the project because I understand what you have changed please
can you extract all 2748 Cves?
thank you

Anonymous
Not applicable
Author

Actually, I did the same thing. limited no of characters of description column to show you the output instead of full value but It doesn't work and it still displays null 

je vous remercie si vous m'envoye le zip projet que vous avez fait

thanks

regards


null.PNG
Anonymous
Not applicable
Author

Hi @mitra1367 ,

 

Here is the job and i just imported an additional jar and you can find it here http://www.java2s.com/Code/Jar/j/Downloadjsonsimple111jar.htm.

 

0683p000009M4Qk.png0683p000009M4Ou.png0683p000009M4Qu.png0683p000009M4M6.png0683p000009M4R9.png0683p000009M4RE.png0683p000009M4QH.png0683p000009M4RJ.png

 

---

Please give Kudos and mark topics as solved where appropriate.

Anonymous
Not applicable
Author

Thank you very much for your answer I did exactly the same thing and I wrote the code you sent but despite that there is the following error

regrads

0683p000009M49l.png0683p000009M4RY.png0683p000009M4Rd.png

Anonymous
Not applicable
Author

Please go to the code tab, so you can able to see what the real error. But from the attached error screenshot i am unable to read so could you please add your error in English.

 

The Screenshot clearly saying that jsonvalue cannot be resolved or is not a field. Please make sure the schema should be in same case throughout the job.

Anonymous
Not applicable
Author

The problem here looks like you do not have a "jsonvalue" column leaving your tJavaRow component. Check the schema and see that it exists, then try again.

Anonymous
Not applicable
Author

Please, if you are going to attach code to help people out or as part of your problem, do not provide it as a screen shot. Actually provide the code. Copying and pasting code is far more likely to get you help because it reduces the effort that people have to put in to solving the issue.