<?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: Nifi CSV rows processing  to sql server - Check primary key in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Nifi-CSV-rows-processing-to-sql-server-Check-primary-key/m-p/309353#M223817</link>
    <description>&lt;P&gt;&lt;A href="https://www.datainmotion.dev/2020/12/simple-change-data-capture-cdc-with-sql.html" target="_blank"&gt;https://www.datainmotion.dev/2020/12/simple-change-data-capture-cdc-with-sql.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.datainmotion.dev/2020/07/ingesting-all-weather-data-with-apache.html" target="_blank"&gt;https://www.datainmotion.dev/2020/07/ingesting-all-weather-data-with-apache.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.datainmotion.dev/2019/10/migrating-apache-flume-flows-to-apache_15.html" target="_blank"&gt;https://www.datainmotion.dev/2019/10/migrating-apache-flume-flows-to-apache_15.html&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 11 Jan 2021 15:11:15 GMT</pubDate>
    <dc:creator>TimothySpann</dc:creator>
    <dc:date>2021-01-11T15:11:15Z</dc:date>
    <item>
      <title>Nifi CSV rows processing  to sql server - Check primary key</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-CSV-rows-processing-to-sql-server-Check-primary-key/m-p/307929#M223411</link>
      <description>&lt;P&gt;Hello Community!&lt;/P&gt;&lt;P&gt;Hope you're all doing fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm beggining my Nifi studying and i'de like to replicate a process that i have running in other plataforms.&lt;/P&gt;&lt;P&gt;My goal is to read a CSV and process it row by row to insert into a sql server table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So far so good, i was able to do this with the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;GetFile -&amp;gt; SplitRecord -&amp;gt; ConvertRecord (to json) -&amp;gt; ConvertJSONtoSQL -&amp;gt; UpdateAttribute (date conversion) -&amp;gt; PutSQL.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But i need to validade if the record already exists in the destiny table. Can anyone help me with that? Already looked for but i wasn't able to find somethig like it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you guys have a solution that is better and completely different, no problem, i'm open to any change.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Thu, 17 Dec 2020 19:31:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-CSV-rows-processing-to-sql-server-Check-primary-key/m-p/307929#M223411</guid>
      <dc:creator>joaoluistr</dc:creator>
      <dc:date>2020-12-17T19:31:13Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi CSV rows processing  to sql server - Check primary key</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-CSV-rows-processing-to-sql-server-Check-primary-key/m-p/308523#M223592</link>
      <description>&lt;P&gt;Hello everyone!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm here to post the solution i was able to develop to solve my problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I managed to do the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;GetFile -&amp;gt; SplitRecord (converting to JSON) -&amp;gt; EvaluateJsonPath (to get key columns) -&amp;gt; ExecuteSQL (select with keys to check if exists) -&amp;gt; RouteOnAttribute (to execute update or insert depending on select result) -&amp;gt; ExecuteSQL (It can be update or insert).&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-left" image-alt="Capturar.PNG" style="width: 999px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/29969i927648FC8A63833A/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capturar.PNG" alt="Capturar.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Dec 2020 15:53:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-CSV-rows-processing-to-sql-server-Check-primary-key/m-p/308523#M223592</guid>
      <dc:creator>joaoluistr</dc:creator>
      <dc:date>2020-12-29T15:53:38Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi CSV rows processing  to sql server - Check primary key</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-CSV-rows-processing-to-sql-server-Check-primary-key/m-p/308820#M223701</link>
      <description>&lt;P&gt;executesqlrecord or putdatabaserecord may be easier.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jan 2021 21:28:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-CSV-rows-processing-to-sql-server-Check-primary-key/m-p/308820#M223701</guid>
      <dc:creator>TimothySpann</dc:creator>
      <dc:date>2021-01-05T21:28:13Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi CSV rows processing  to sql server - Check primary key</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-CSV-rows-processing-to-sql-server-Check-primary-key/m-p/309351#M223815</link>
      <description>&lt;P&gt;Hello Timothy!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you elaborate, please?&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jan 2021 14:06:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-CSV-rows-processing-to-sql-server-Check-primary-key/m-p/309351#M223815</guid>
      <dc:creator>joaoluistr</dc:creator>
      <dc:date>2021-01-11T14:06:52Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi CSV rows processing  to sql server - Check primary key</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-CSV-rows-processing-to-sql-server-Check-primary-key/m-p/309353#M223817</link>
      <description>&lt;P&gt;&lt;A href="https://www.datainmotion.dev/2020/12/simple-change-data-capture-cdc-with-sql.html" target="_blank"&gt;https://www.datainmotion.dev/2020/12/simple-change-data-capture-cdc-with-sql.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.datainmotion.dev/2020/07/ingesting-all-weather-data-with-apache.html" target="_blank"&gt;https://www.datainmotion.dev/2020/07/ingesting-all-weather-data-with-apache.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.datainmotion.dev/2019/10/migrating-apache-flume-flows-to-apache_15.html" target="_blank"&gt;https://www.datainmotion.dev/2019/10/migrating-apache-flume-flows-to-apache_15.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jan 2021 15:11:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-CSV-rows-processing-to-sql-server-Check-primary-key/m-p/309353#M223817</guid>
      <dc:creator>TimothySpann</dc:creator>
      <dc:date>2021-01-11T15:11:15Z</dc:date>
    </item>
  </channel>
</rss>

