<?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: Make a copy of columns and reanme it in NiFi processor in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Make-a-copy-of-columns-and-reanme-it-in-NiFi-processor/m-p/384460#M245377</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/104295"&gt;@saquibsk&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;The UpdateRecord processor uses the Nifi Record Path syntax to traverse record structure :&lt;/P&gt;&lt;P&gt;&lt;A href="https://nifi.apache.org/docs/nifi-docs/html/record-path-guide.html" target="_blank"&gt;https://nifi.apache.org/docs/nifi-docs/html/record-path-guide.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;When your Replacement Value Strategy is set to Record Path Value then the path has to adhere to the record path syntax as explained in the link.&amp;nbsp; The record path allows you to update structured data even if you have more than one record in an array of records. Please see the documentation here as well for more help:&lt;/P&gt;&lt;P&gt;&lt;A href="https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-standard-nar/1.7.1/org.apache.nifi.processors.standard.UpdateRecord/additionalDetails.html" target="_blank"&gt;https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-standard-nar/1.7.1/org.apache.nifi.processors.standard.UpdateRecord/additionalDetails.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;If you are having more issues it would help to provide sample input and the expected output result alongside the relevant processors configuration screenshot. This will enable the community to help you better and resolve your issue faster.&lt;/P&gt;&lt;P&gt;If you find this is helpful please accept&amp;nbsp; solution.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Sat, 02 Mar 2024 15:55:44 GMT</pubDate>
    <dc:creator>SAMSAL</dc:creator>
    <dc:date>2024-03-02T15:55:44Z</dc:date>
    <item>
      <title>Make a copy of columns and reanme it in NiFi processor</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Make-a-copy-of-columns-and-reanme-it-in-NiFi-processor/m-p/384455#M245374</link>
      <description>&lt;P&gt;Hello Team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="relative flex w-full flex-col"&gt;&lt;DIV class="flex-col gap-1 md:gap-3"&gt;&lt;DIV class="flex flex-grow flex-col max-w-full"&gt;&lt;DIV class="min-h-[20px] text-message flex flex-col items-start gap-3 whitespace-pre-wrap break-words [.text-message+&amp;amp;]:mt-5 overflow-x-auto"&gt;&lt;DIV class=""&gt;I have one column and did some calculation on it and wanted to make another copy of same column to create flag to check whether records are empty or not and retain the same column also.I tired to using pulling another processor and&amp;nbsp; wrote calculation New_field , Old_column which did not work.&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;SPAN&gt;However, this approach did not yield the desired outcome.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="saquibsk_0-1709381366837.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/39938i697927C2144DBC17/image-size/medium?v=v2&amp;amp;px=400" role="button" title="saquibsk_0-1709381366837.png" alt="saquibsk_0-1709381366837.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="saquibsk_2-1709381609308.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/39940iEE20E879CB3CDB9D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="saquibsk_2-1709381609308.png" alt="saquibsk_2-1709381609308.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="saquibsk_1-1709381579480.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/39939iAE802CAE10168CCF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="saquibsk_1-1709381579480.png" alt="saquibsk_1-1709381579480.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 02 Mar 2024 12:16:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Make-a-copy-of-columns-and-reanme-it-in-NiFi-processor/m-p/384455#M245374</guid>
      <dc:creator>saquibsk</dc:creator>
      <dc:date>2024-03-02T12:16:53Z</dc:date>
    </item>
    <item>
      <title>Re: Make a copy of columns and reanme it in NiFi processor</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Make-a-copy-of-columns-and-reanme-it-in-NiFi-processor/m-p/384456#M245375</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/104295"&gt;@saquibsk&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;It seems you are using &lt;STRONG&gt;Literal Value&amp;nbsp; &lt;/STRONG&gt;in the &lt;STRONG&gt;Replacement Value Strategy&lt;/STRONG&gt; of the second UpdateRecord. I think it needs to be "&lt;STRONG&gt;Record Path Value&lt;/STRONG&gt;" since you are referencing another field from the content data itself.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If that helps please &lt;STRONG&gt;accept&lt;/STRONG&gt; solution.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sat, 02 Mar 2024 14:18:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Make-a-copy-of-columns-and-reanme-it-in-NiFi-processor/m-p/384456#M245375</guid>
      <dc:creator>SAMSAL</dc:creator>
      <dc:date>2024-03-02T14:18:14Z</dc:date>
    </item>
    <item>
      <title>Re: Make a copy of columns and reanme it in NiFi processor</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Make-a-copy-of-columns-and-reanme-it-in-NiFi-processor/m-p/384459#M245376</link>
      <description>&lt;P&gt;Thank you very much&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/80381"&gt;@SAMSAL&lt;/a&gt;&amp;nbsp;. Do we need to provide the&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;JsonPath expressions&lt;/SPAN&gt; ? I had simplifed data using JOLT Spec so I am getting flat JSON so below has worked.&amp;nbsp; What about if we have structured data ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Another Question: what if I wanted to write the calculation on column rather than filed.value ? something like below ?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="saquibsk_1-1709390545624.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/39944i6665B05954E92877/image-size/medium?v=v2&amp;amp;px=400" role="button" title="saquibsk_1-1709390545624.png" alt="saquibsk_1-1709390545624.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 02 Mar 2024 14:56:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Make-a-copy-of-columns-and-reanme-it-in-NiFi-processor/m-p/384459#M245376</guid>
      <dc:creator>saquibsk</dc:creator>
      <dc:date>2024-03-02T14:56:56Z</dc:date>
    </item>
    <item>
      <title>Re: Make a copy of columns and reanme it in NiFi processor</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Make-a-copy-of-columns-and-reanme-it-in-NiFi-processor/m-p/384460#M245377</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/104295"&gt;@saquibsk&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;The UpdateRecord processor uses the Nifi Record Path syntax to traverse record structure :&lt;/P&gt;&lt;P&gt;&lt;A href="https://nifi.apache.org/docs/nifi-docs/html/record-path-guide.html" target="_blank"&gt;https://nifi.apache.org/docs/nifi-docs/html/record-path-guide.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;When your Replacement Value Strategy is set to Record Path Value then the path has to adhere to the record path syntax as explained in the link.&amp;nbsp; The record path allows you to update structured data even if you have more than one record in an array of records. Please see the documentation here as well for more help:&lt;/P&gt;&lt;P&gt;&lt;A href="https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-standard-nar/1.7.1/org.apache.nifi.processors.standard.UpdateRecord/additionalDetails.html" target="_blank"&gt;https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-standard-nar/1.7.1/org.apache.nifi.processors.standard.UpdateRecord/additionalDetails.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;If you are having more issues it would help to provide sample input and the expected output result alongside the relevant processors configuration screenshot. This will enable the community to help you better and resolve your issue faster.&lt;/P&gt;&lt;P&gt;If you find this is helpful please accept&amp;nbsp; solution.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sat, 02 Mar 2024 15:55:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Make-a-copy-of-columns-and-reanme-it-in-NiFi-processor/m-p/384460#M245377</guid>
      <dc:creator>SAMSAL</dc:creator>
      <dc:date>2024-03-02T15:55:44Z</dc:date>
    </item>
  </channel>
</rss>

