Six Stars

Insert ObjectID from Mongodb Collection A to Collection B in Mongodb

I am new to using Talend. I am not able to carry over the ObjectID from Mongodb collection A to Mongodb collection B. I am using a 

How to carry over a objectID from Mongodb's collection A to a new mongodb collection B. I am using the following logic to execute. TMongoDBInput-->tmap-->tMongoDBOutput. I have mapped the link target in tMongoDBOutput to have the _id field's static value mapped as object where the _id field attribute is defined as class.  I am still seeing ObjectID as string in collection B. What am i missing here ? Appreciate the help. Thanks 

1 ACCEPTED SOLUTION

Accepted Solutions
Six Stars

Re: Insert ObjectID from Mongodb Collection A to Collection B in Mongodb

This problem was solved by making the attribute type of _id as @type and setting the Static Value to object in the Link target. 

1 REPLY
Six Stars

Re: Insert ObjectID from Mongodb Collection A to Collection B in Mongodb

This problem was solved by making the attribute type of _id as @type and setting the Static Value to object in the Link target.