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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

tMongoDBInput parent node path

Hi I am new to Talend .. I have created a mongodbconnection and using tMongoDBInput, I am able to fetch data and able to print. But for  one item it has array of list. I am not able to traverse array object. I am not able to understand what value I should give in parent node path. 

Please find attached screenshot for mongodb document 

 

I want to fetch title and all other fields  from relatedItems and it is an array of object which has multiple values. 

What will be parent node path for "title"

 

{
"relatedItems": [{
"title": "",
"type": "",
"products": [{
"productSequence": "1"
},
{
"productSequence": "2"

},
{
"productSequence": "3"

},
{
"productSequence": "4"

}
]
},
{
"title": "aaaa",
"type": "aaaa",
"description": "abcd",
"notiMsg": "RedBox Products"

}
]
}

 

 

 

 

Labels (2)
4 Replies
vapukov
Master II
Master II

Hi,

 

 

0683p000009M35D.png

Anonymous
Not applicable
Author

Thanks for Reply but how should i send data from tmongodbinput to textractjsonfield. It is asking for mapping in tmongodbinput component. 

please find attached screenshot. 

 

 


tmongodbinput.jpg
Anonymous
Not applicable
Author

getting error 

 

Expected to find an object with property ['relatedItems'] in path $ but found 'net.minidev.json.JSONArray'. This is not a json object according to the JsonProvider: 'com.jayway.jsonpath.spi.json.JsonSmartJsonProvider'.


 

 


 

vapukov
Master II
Master II

not sure - what is it

but you need first debug - what you receive from tMongoDBOutput - just connect it direct to tLogRow