<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: LookupRecord Processor always routes to unmatched even if matched in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/LookupRecord-Processor-always-routes-to-unmatched-even-if/m-p/338859#M232941</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/95851"&gt;@Olivia_4692&lt;/a&gt;&amp;nbsp;&amp;nbsp;I'm happy to see you resolved your issue. Please mark the appropriate reply as the solution, as it will make it easier for others to find the answer in the future.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mark as solution button" style="width: 331px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/5960i4EC112CCAAC11427/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2019-08-06 at 1.54.47 PM.png" alt="Screen Shot 2019-08-06 at 1.54.47 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 17 Mar 2022 12:44:24 GMT</pubDate>
    <dc:creator>cjervis</dc:creator>
    <dc:date>2022-03-17T12:44:24Z</dc:date>
    <item>
      <title>LookupRecord Processor always routes to unmatched even if matched</title>
      <link>https://community.cloudera.com/t5/Support-Questions/LookupRecord-Processor-always-routes-to-unmatched-even-if/m-p/338536#M232838</link>
      <description>&lt;P&gt;I have the following json file :&lt;/P&gt;&lt;P&gt;“a”:{&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;“after”:{&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; “a123”:{&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;“ip”:”1.0.0.0”,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;“p_id”:”4500”&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;},&lt;/P&gt;&lt;P&gt;“before”:{&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; “a123”:{&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; “ip”:”1.0.0.0”,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; “p_id”:”4500&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to create a lookuprecord Processor in NiFi to match with the p_id. If matched then route to something and if unmatched then route to something else. The lookuprecord processor I have is a MongoDBLookUpService.&lt;/P&gt;&lt;P&gt;The user expression I've written for the lookuprecord processor is :&lt;/P&gt;&lt;P&gt;key : /a/after/*['p_id']&lt;/P&gt;&lt;P&gt;Note: [*] because that bit in json keeps changing with every json file.&lt;/P&gt;&lt;P&gt;I've even tried /a/after/*/p_id and nothing seems to work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;They all seem to route to unmatched. Please help me figure out if I'm doing something wrong in the expression.&lt;/P&gt;</description>
      <pubDate>Sun, 13 Mar 2022 07:23:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/LookupRecord-Processor-always-routes-to-unmatched-even-if/m-p/338536#M232838</guid>
      <dc:creator>Olivia_4692</dc:creator>
      <dc:date>2022-03-13T07:23:34Z</dc:date>
    </item>
    <item>
      <title>Re: LookupRecord Processor always routes to unmatched even if matched</title>
      <link>https://community.cloudera.com/t5/Support-Questions/LookupRecord-Processor-always-routes-to-unmatched-even-if/m-p/338834#M232938</link>
      <description>&lt;P&gt;Update : I solved this. I had to use a splitjson before the lookup record processor, then it worked all fine.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Mar 2022 05:17:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/LookupRecord-Processor-always-routes-to-unmatched-even-if/m-p/338834#M232938</guid>
      <dc:creator>Olivia_4692</dc:creator>
      <dc:date>2022-03-17T05:17:25Z</dc:date>
    </item>
    <item>
      <title>Re: LookupRecord Processor always routes to unmatched even if matched</title>
      <link>https://community.cloudera.com/t5/Support-Questions/LookupRecord-Processor-always-routes-to-unmatched-even-if/m-p/338859#M232941</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/95851"&gt;@Olivia_4692&lt;/a&gt;&amp;nbsp;&amp;nbsp;I'm happy to see you resolved your issue. Please mark the appropriate reply as the solution, as it will make it easier for others to find the answer in the future.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mark as solution button" style="width: 331px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/5960i4EC112CCAAC11427/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2019-08-06 at 1.54.47 PM.png" alt="Screen Shot 2019-08-06 at 1.54.47 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Mar 2022 12:44:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/LookupRecord-Processor-always-routes-to-unmatched-even-if/m-p/338859#M232941</guid>
      <dc:creator>cjervis</dc:creator>
      <dc:date>2022-03-17T12:44:24Z</dc:date>
    </item>
  </channel>
</rss>

