From dev-return-16665-apmail-nifi-dev-archive=nifi.apache.org@nifi.apache.org Fri Mar 16 11:37:03 2018 Return-Path: X-Original-To: apmail-nifi-dev-archive@minotaur.apache.org Delivered-To: apmail-nifi-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A850A18162 for ; Fri, 16 Mar 2018 11:37:03 +0000 (UTC) Received: (qmail 65200 invoked by uid 500); 16 Mar 2018 11:37:03 -0000 Delivered-To: apmail-nifi-dev-archive@nifi.apache.org Received: (qmail 65150 invoked by uid 500); 16 Mar 2018 11:37:03 -0000 Mailing-List: contact dev-help@nifi.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@nifi.apache.org Delivered-To: mailing list dev@nifi.apache.org Received: (qmail 64593 invoked by uid 99); 16 Mar 2018 11:37:02 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Mar 2018 11:37:02 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 2BCE01A0361 for ; Fri, 16 Mar 2018 11:37:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.879 X-Spam-Level: * X-Spam-Status: No, score=1.879 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id Omi7d2XQNl5I for ; Fri, 16 Mar 2018 11:37:00 +0000 (UTC) Received: from mail-oi0-f68.google.com (mail-oi0-f68.google.com [209.85.218.68]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id AEABA5F184 for ; Fri, 16 Mar 2018 11:36:59 +0000 (UTC) Received: by mail-oi0-f68.google.com with SMTP id c12so8330908oic.7 for ; Fri, 16 Mar 2018 04:36:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=o4u5fAQvBumkzgdqcRrWH4R2AsB74xy4dkRlMMiMeF0=; b=uCTaPL+u2hbocwnmbLigZnMvc+2cfL57VqN/enZJLnl/elc1ynbrJHk9XobZBXZzJy h6sGaw2daurAWQ3r5sT7a+c28jUYbLuSOtudj8NPWJN069X9tb14mrz30v+yKFF/oLTA 8+7bTt3OZKeyynnPHFPDedISHKjU8enGlDDc0SIFN/sW5R9A64fdkDY0ruI03y608G12 DhfFTpnSN/HggrxaKbdzqHGD8MhEh4CEpT9BWfArw/F/yZUrDP+mt8a+HWhXp+e6NeC+ 28e3toGls7IlM/+oK52UUg5OdXEgJRE9odY+XfhRqscbYehEOoQjLWiWXppAnTMYAJBa 1hDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=o4u5fAQvBumkzgdqcRrWH4R2AsB74xy4dkRlMMiMeF0=; b=HdpitM40LjTco34q/7OnY8rOigj+CRxuWWIw17ZXxaxWl5PKAuVe6l2eRGYeEiD8gC bCQ613hmmwBBtUNnqR2Jr0VuV/Ge4F58W/MXeiIqF07h8vQbtDTaVmnEUspHkJsRN3IG /Bn+y8L5m8OE6QbJwiIuBMmSqkkYFt8cEbJrcqUx7SHSP4e79NR4HF68G0V0opW03Eui 3vl/Ac1lKbGufcnbxGTtqm5wGuQ6hmen3OwWDx12zX2ofWYEyVcGWXSQjev/msPta0Qf P5zedwibpX7nkneQKDTAX6skNTus826C+INLrBLV9ElWEm+S8nTsFM1JEWDrVV4FtK7r +n9w== X-Gm-Message-State: AElRT7GriCqJq2d0BeI27C9uRHiaY56bBI6OrzaMskh+rKThOUGIkeOj RD3LPLi7ipTCd8Q87tbguWF8X9sRKT6j/aYDidE= X-Google-Smtp-Source: AG47ELtg0XoC0YUTjddK2ycFx3AC8r+sUKAtqZkqAje012XtniVhAB9iV9y7FIgqXMWxeAxKsiiTfqG44fN0V8IGAWs= X-Received: by 10.202.171.140 with SMTP id u134mr869758oie.98.1521200217994; Fri, 16 Mar 2018 04:36:57 -0700 (PDT) MIME-Version: 1.0 Received: by 10.74.128.140 with HTTP; Fri, 16 Mar 2018 04:36:57 -0700 (PDT) In-Reply-To: <1515582317820-0.post@n7.nabble.com> References: <1515510009788-0.post@n7.nabble.com> <1515515063538-0.post@n7.nabble.com> <1515582317820-0.post@n7.nabble.com> From: Mike Thomsen Date: Fri, 16 Mar 2018 07:36:57 -0400 Message-ID: Subject: Re: PutMongo 1.3.0 - Upsert issue To: dev@nifi.apache.org Content-Type: multipart/alternative; boundary="001a113c48aca03f8205678606fc" --001a113c48aca03f8205678606fc Content-Type: text/plain; charset="UTF-8" I noticed that your update document didn't have an update key in it. The default lookup key is _id so you'd need something like this: { "_id": "ID_HERE", "$set": { "new_field": 1 } } On Wed, Jan 10, 2018 at 6:05 AM, fabe_bdx wrote: > Dear Pierre, > > First all many thnaks for your help, we were able to use the copy you > provided us and restart Nifi with 1.5.0 module. > > But it's appear that don't realy work like expected. > > If we try to update some attributes with the $set commant it don't work. > > *Original MongoDb record :* > > { > "_id" : ObjectId("5a535bcea33116f026ef65f0"), > "type" : "Cc", > "nmess" : 3172, > "idgtr" : "C-00000-0000-00061-0000-00000-CMF-RMF", > "zone" : 1.0, > "idzone" : "NULL", > "cmf" : 24, > "rmf" : 24, > "carrefour" : 61, > "idcarrefour" : 2, > "last_update" : "2018-01-09T13:49:58", > "libelle" : " Henrique#Cebolas ", > "geojson" : > "{\"features\":[{\"geometry\":{\"coordinates\":[\"-9. > 132289080874671\",\"38.70801111111111\"],\"type\":\" > Point\"},\"type\":\"Feature\"}],\"type\":\"FeatureCollection\"}", > "positionOk" : true, > "orientation" : 0 > } > > *Update request throw putmongo processor :* > > { > "$set": { > "type":"Cc", > "nmess":14488, > "idgtr":"C-00000-0000-00088-0000-00000-CMF-RMF", > "last_update":"2018-01-10T09:32:35", > "libelle":"Bonifacio_Estefan. " > } > } > > > > > -- > Sent from: http://apache-nifi-developer-list.39713.n7.nabble.com/ > --001a113c48aca03f8205678606fc--