<?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 Fetch a value from diffrent field in NIFI in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Fetch-a-value-from-diffrent-field-in-NIFI/m-p/393878#M248611</link>
    <description>&lt;P&gt;"result" : "SUCCESS",&lt;BR /&gt;"correlationID" : "X8058296",&lt;BR /&gt;"generationTimestamp" : "1354",&lt;BR /&gt;"meHostName" : "rc01;rik2jc",&lt;BR /&gt;"nccVersion" : "SPS__R1",&lt;/P&gt;&lt;DIV class="adn ads"&gt;&lt;DIV class="gs"&gt;&lt;DIV class=""&gt;&lt;DIV class="ii gt"&gt;&lt;DIV class="a3s aiL "&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;This is my input in my nifi and i want to do changes in meHostName means i want mehostName to have 1st value like in this case rc01 and after that creating 1 more field with name devicename having second value means rik2jc&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I acheived the 1st part means i configured in UpdateRecord processor&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ashi_0-1727175059348.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/41850iB45DCFD8576DBC2B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ashi_0-1727175059348.png" alt="Ashi_0-1727175059348.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for meHostName and it is printing 1st value means it is running fine ,now please help me in acheiving devicename to have 2nd value of&amp;nbsp;meHostName which is&amp;nbsp;rik2jc . i have tried&amp;nbsp;split(/meHostName, ';')[1] but its not working&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 24 Sep 2024 10:51:10 GMT</pubDate>
    <dc:creator>Ashi</dc:creator>
    <dc:date>2024-09-24T10:51:10Z</dc:date>
    <item>
      <title>Fetch a value from diffrent field in NIFI</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Fetch-a-value-from-diffrent-field-in-NIFI/m-p/393878#M248611</link>
      <description>&lt;P&gt;"result" : "SUCCESS",&lt;BR /&gt;"correlationID" : "X8058296",&lt;BR /&gt;"generationTimestamp" : "1354",&lt;BR /&gt;"meHostName" : "rc01;rik2jc",&lt;BR /&gt;"nccVersion" : "SPS__R1",&lt;/P&gt;&lt;DIV class="adn ads"&gt;&lt;DIV class="gs"&gt;&lt;DIV class=""&gt;&lt;DIV class="ii gt"&gt;&lt;DIV class="a3s aiL "&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;This is my input in my nifi and i want to do changes in meHostName means i want mehostName to have 1st value like in this case rc01 and after that creating 1 more field with name devicename having second value means rik2jc&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I acheived the 1st part means i configured in UpdateRecord processor&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ashi_0-1727175059348.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/41850iB45DCFD8576DBC2B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ashi_0-1727175059348.png" alt="Ashi_0-1727175059348.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for meHostName and it is printing 1st value means it is running fine ,now please help me in acheiving devicename to have 2nd value of&amp;nbsp;meHostName which is&amp;nbsp;rik2jc . i have tried&amp;nbsp;split(/meHostName, ';')[1] but its not working&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 24 Sep 2024 10:51:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Fetch-a-value-from-diffrent-field-in-NIFI/m-p/393878#M248611</guid>
      <dc:creator>Ashi</dc:creator>
      <dc:date>2024-09-24T10:51:10Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch a value from diffrent field in NIFI</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Fetch-a-value-from-diffrent-field-in-NIFI/m-p/393905#M248618</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/115016"&gt;@Ashi&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Potential option:&lt;BR /&gt;&lt;BR /&gt;What record Reader and record writers are you using in your UpdateRecord processor?&lt;BR /&gt;What schema are you using for your records?&lt;BR /&gt;&lt;BR /&gt;In order to add a new field, that new field needs to be defined in the records schema.&amp;nbsp;&lt;BR /&gt;In your case the schema must contain the field "&lt;SPAN&gt;devicename".&lt;BR /&gt;Prior to UpdateRecord, you could use perhaps an ExtractText processor to extract the "rc01;rik2jc" value from the&amp;nbsp;meHostName field to a flowfile.attribute.&lt;BR /&gt;&lt;BR /&gt;Then will you be able to use UdpateRecord to apply a value to that new record field in the record writer.&lt;BR /&gt;&lt;BR /&gt;Property: /devicename&lt;BR /&gt;value: ${flowfile.attribute:substringAfter(';')}&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Please help our community thrive. If you found&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;any&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;of the suggestions/solutions provided helped you with solving your issue or answering your question, please take a moment to login and click "&lt;SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;Accept as Solution&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt;" on&amp;nbsp;&lt;STRONG&gt;one or more&lt;/STRONG&gt;&amp;nbsp;of them that helped.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you,&lt;BR /&gt;Matt&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2024 20:54:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Fetch-a-value-from-diffrent-field-in-NIFI/m-p/393905#M248618</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2024-09-24T20:54:23Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch a value from diffrent field in NIFI</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Fetch-a-value-from-diffrent-field-in-NIFI/m-p/393914#M248622</link>
      <description>&lt;P&gt;Record reader -&lt;SPAN&gt;JsonTreeReader&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;record writer -&amp;nbsp;&lt;SPAN&gt;JsonRecordSetWriter this i am using in my update record and for reference this is my flow looks like&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ashi_0-1727241964250.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/41858iC32C411EAD2C7982/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ashi_0-1727241964250.png" alt="Ashi_0-1727241964250.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2024 05:26:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Fetch-a-value-from-diffrent-field-in-NIFI/m-p/393914#M248622</guid>
      <dc:creator>Ashi</dc:creator>
      <dc:date>2024-09-25T05:26:37Z</dc:date>
    </item>
  </channel>
</rss>

