Skip to main content
Announcements
A fresh, new look for the Data Integration & Quality forums and navigation! Read more about what's changed.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

tMongoDBOutput Upsert option

Hi,

I am trying extract xml data from xml file to mongodb. The flow like below.

1.step Extract data from xml

2.step Call xmltoJson function and convert the data from xml to json(tjava)

3.step mapping(tmap) 

4.step load data into table via tMongoDBOutput component. 

I can manage to insert the data to the table at "insert" mode(pic-4). But when I only change the mode to "Upsert", it doesn't Update the same data and it creates a new row with "_id" column is NULL(pic-5).

I can set a value to "_id" column while inserting but when I try to upsert I can not manage it. It sets NULL value to "_id" column.

Another question is Talend Studio doesn't let me to change "Json Configuration Tree". It is disabled. I am using free version. Do you know why?

 

pic-1

0683p000009Lv9L.png

pic-2

0683p000009LvOF.png

 

pic-3

0683p000009Lv4D.png

 

pic-4

0683p000009LuQz.png

 

pic-5

0683p000009Luem.png

 

Thanks for help from now.

Kind Regards.

Labels (7)
3 Replies
Anonymous
Not applicable
Author

Hello,

The JSON tree map will be configurable in " built-in" mode not "Repository" mode

Best regards

Sabrina

Anonymous
Not applicable
Author

do you have a solution to this yet? Can you please share it here!?

Anonymous
Not applicable
Author

Hello @msrk

As I mentioned before, the JSON tree map will be configurable in " built-in" mode not "Repository" mode. What's the problem are you facing?

Best regards

Sabrina