tMongoDBOutput Upsert option

Highlighted
Four Stars

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

pic1.png

pic-2

pic2.png

 

pic-3

pic3.png

 

pic-4

pic4.png

 

pic-5

pic5.png

 

Thanks for help from now.

Kind Regards.

Moderator

Re: tMongoDBOutput Upsert option

Hello,

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

Best regards

Sabrina

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
Four Stars

Re: tMongoDBOutput Upsert option

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

Moderator

Re: tMongoDBOutput Upsert option

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

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog

Put Massive Amounts of Data to Work

Learn how to make your data more available, reduce costs and cut your build time

Watch Now

How OTTO Utilizes Big Data to Deliver Personalized Experiences

Read about OTTO's experiences with Big Data and Personalized Experiences

Blog