Skip to main content

I am reading from oracle spatial table and writing to Mongodb. once I written to mongo with some sample data, and i want to re run my fme script again for whole, by drop and create method(mongo db collection). I set the writer option to "drop and create", but its giving error. error msg saying that

MONGODB writer: Layer layerDataPolygon already exists, CreateLayer failed. Use the layer creation option OVERWRITE=YES to replace it.(red color)

where to set OVERWRITE=YES(layer creation option) ? as per fme's error msg

Can anyone pls help?

 

 

please refer image


As far as I know, is the LAYER mentioned an spatial collection. The 'Layer' then is an OGR term for the MONGODB 'Collection'

 

So when you have to overwrite the Layer, it's meant to overwrite the 'Collection'.

As far as I know, is the LAYER mentioned an spatial collection. The 'Layer' then is an OGR term for the MONGODB 'Collection'

 

So when you have to overwrite the Layer, it's meant to overwrite the 'Collection'.

@fkemminje , you can also have a look here: https://knowledge.safe.com/questions/39933/use-mongodb-writer-to-update-existing-documents.html

 


@fkemminje : did you made any progress so far?


Reply