From dev-return-19344-archive-asf-public=cust-asf.ponee.io@nifi.apache.org Mon Jun 24 12:44:04 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id DD302180671 for ; Mon, 24 Jun 2019 14:44:03 +0200 (CEST) Received: (qmail 70319 invoked by uid 500); 24 Jun 2019 12:44:02 -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 70308 invoked by uid 99); 24 Jun 2019 12:44:02 -0000 Received: from Unknown (HELO mailrelay1-lw-us.apache.org) (10.10.3.159) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Jun 2019 12:44:02 +0000 Received: from mail-vs1-f46.google.com (mail-vs1-f46.google.com [209.85.217.46]) by mailrelay1-lw-us.apache.org (ASF Mail Server at mailrelay1-lw-us.apache.org) with ESMTPSA id 0D65C1CB5 for ; Mon, 24 Jun 2019 12:44:02 +0000 (UTC) Received: by mail-vs1-f46.google.com with SMTP id 190so8421501vsf.9 for ; Mon, 24 Jun 2019 05:44:02 -0700 (PDT) X-Gm-Message-State: APjAAAXMw4I9atKxjumsLWUr4spACHrIOp8h98YNuqDxacgxsKlGP2wW iXmYGUNINCRrFn+bwlCcSk7xcXMTqtOTAI9oxvsW0g== X-Google-Smtp-Source: APXvYqy/yfwZvcNaPV4m5V3MJLXdrLYyX8T12b0BiamW64F9Yll5D7ndIq9ElOSAkQm2EwcFkpUSXt4cOqCkreU5A3c= X-Received: by 2002:a67:efcd:: with SMTP id s13mr24739903vsp.102.1561380241628; Mon, 24 Jun 2019 05:44:01 -0700 (PDT) MIME-Version: 1.0 References: <1561356397765-0.post@n7.nabble.com> In-Reply-To: <1561356397765-0.post@n7.nabble.com> From: Denes Arvay Date: Mon, 24 Jun 2019 14:43:34 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Evaluate json path with destination as flowfile-attribute returns null for a specified attribute To: dev@nifi.apache.org Content-Type: multipart/alternative; boundary="000000000000a985ed058c112abf" --000000000000a985ed058c112abf Content-Type: text/plain; charset="UTF-8" Hi Puspak, As far as I know, you shouldn't use the quotes (") in the JSON path expression. Plus, in your example JSON the AWB-INFO.AWB field is not present. Best, Denes On Mon, Jun 24, 2019 at 1:47 PM Puspak wrote: > hi > The content of the flow file is as below . > > { > "REQUEST":{ > "SERVICENAME":"WTX_SERV_ECSESC", > "WSTOKEN":"ZEegEneBot59", > "ECSESC-INP":{ > "SVCHEADER":{ > "STATION":"OGG", > "OFFICE":"001", > "AGENT":"255" > }, > "SVCACTION":"RETRIEVE", > "PPP-INFO":{ > "PPP":"68700200220", > "KEYINFO":{ > "DBKEY":"113313412401", > "REVISION":"17" > }, > "CRA-RATING":"Y" > } > } > } > } > > and i have set the value for pppNumber as > $."REQUEST"."ECSESC-INP"."AWB-INFO"."AWB" in the evaluate json path and set > the destination as flow-file-attribute , but i am getting the value for > pppNumber as null > > > > -- > Sent from: http://apache-nifi-developer-list.39713.n7.nabble.com/ > --000000000000a985ed058c112abf--