Support Questions

Find answers, ask questions, and share your expertise

Nifi - how do I configure the PutMongo processor to perform an update on a mongodb collection?

avatar

Hello, how do I configure the PutMongo processor to perform an update on a mongodb collection? The following error occurs. NiFi version I use: NiFi 1.7.1

85531-error.png

4 REPLIES 4

avatar
Master Guru
@Julio Gazeta

As you are having Mode property value as Update and also

Change the Upsert property value to

true //When true, inserts a document if no document matches the update query criteria; this property is valid only when using update mode, otherwise it is ignored

85532-upsert.png

For more details regards to updating the docs refer to this and this links.

avatar

Shu, the error below occurs after the change to True.

85533-erro1.png

avatar

Shu, the error below occurs after the change to True.

83556-erro1.png

avatar
Explorer

I am also facing the same issue of not able to update mongo records using exiting _id . I just need to update 2-3 fields in existing mongo document