Skip to main content
Announcements
Introducing a new Enhanced File Management feature in Qlik Cloud! GET THE DETAILS!
cancel
Showing results for 
Search instead for 
Did you mean: 
sudarshank
Contributor III
Contributor III

How to Read Array Data from Mongo Collection?

How to extract data from array to table format by using tmongoinput.

I have created a job without array is converted in table format but array fields are getting error.

Fields are needed in table format from mycollection - _id,projectid, questionId,questionName,isActive,response, surveyId,surveyName

The collection data in attached file.

Thank you!​

Labels (3)
4 Replies
Anonymous
Not applicable

Hello,

In the schema settings of tMongoDbInput, you can setup type to "List" for the array field , then use tExtractJSONFields component to extract the child elements of the array field.

e.g.

0695b00000YzRONAA3.png

Roberto72543
Contributor
Contributor

Thanks so much, your suggestion worked for me..

 

Thanks,

MyHerbalife Products

sudarshank
Contributor III
Contributor III
Author

Hi, Is any setting missing in tmongoDBinput and textractjsonfield. tLogRow returns null value.

 

0695b00000YzRtkAAF.png0695b00000YzRuxAAF.png 

0695b00000YzRv2AAF.png

sudarshank
Contributor III
Contributor III
Author

Hi MWoods,

can you share the screen shot of tExtractJSONFieldscomponent. setting?