<?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: none of the fields in the records map to the columns CSV to putDatabaseRecord in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/none-of-the-fields-in-the-records-map-to-the-columns-CSV-to/m-p/284831#M211455</link>
    <description>&lt;P&gt;AvroReader is required in&amp;nbsp;&lt;SPAN&gt;PutDatabaseRecord, I have the same issue, how you solve it?&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 04 Dec 2019 22:43:47 GMT</pubDate>
    <dc:creator>Souleater</dc:creator>
    <dc:date>2019-12-04T22:43:47Z</dc:date>
    <item>
      <title>none of the fields in the records map to the columns CSV to putDatabaseRecord</title>
      <link>https://community.cloudera.com/t5/Support-Questions/none-of-the-fields-in-the-records-map-to-the-columns-CSV-to/m-p/280308#M208788</link>
      <description>&lt;P&gt;I am trying to read a csv file and put those records into a postgres table. To do it, I have used some tips given &lt;A href="https://community.cloudera.com/t5/Support-Questions/Loading-a-simple-CSV-file-using-nifi-PutDatabaseRecord-and/td-p/222678" target="_self"&gt;Loading a simple CSV file using nifi&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My template is :&lt;/P&gt;
&lt;P&gt;GetFile -&amp;gt; UpdateAttribute -&amp;gt; PutDatabaseRecord&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In UpdateAttribute I have used `schema.name` -&amp;gt; `postgres database`&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In PutDatabaseRecord -&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;CSVReader&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="csvreader.png" style="width: 810px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/24940i21DA040AAC4A0714/image-size/large?v=v2&amp;amp;px=999" role="button" title="csvreader.png" alt="csvreader.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;AvroSchemaRegistry&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="avroregistry.png" style="width: 800px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/24941i4DAB64461691EEFE/image-size/large?v=v2&amp;amp;px=999" role="button" title="avroregistry.png" alt="avroregistry.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;DBCPConnectionPool&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dbcb.png" style="width: 800px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/24942iFCECB675E76FCA7A/image-size/large?v=v2&amp;amp;px=999" role="button" title="dbcb.png" alt="dbcb.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="putdatabase.png" style="width: 800px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/24943i357439F4BAAF8B69/image-size/large?v=v2&amp;amp;px=999" role="button" title="putdatabase.png" alt="putdatabase.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My CSV file&lt;/P&gt;
&lt;P&gt;```&lt;/P&gt;
&lt;P&gt;userid,username&lt;/P&gt;
&lt;P&gt;1,'sachith'&lt;/P&gt;
&lt;P&gt;```&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I put this to my source folder, it goes to PutDatabaseRecord and gives following error&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;gt; None of the fields in the record map to columns defined by the nifi.nifiTest table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;First I used MySQL just with GetFile -&amp;gt; PutDatabaseRecord, it was working properly without error.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What am I missing here? I am pretty new for Nifi.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Oct 2019 13:03:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/none-of-the-fields-in-the-records-map-to-the-columns-CSV-to/m-p/280308#M208788</guid>
      <dc:creator>sachith</dc:creator>
      <dc:date>2019-10-16T13:03:03Z</dc:date>
    </item>
    <item>
      <title>Re: none of the fields in the records map to the columns CSV to putDatabaseRecord</title>
      <link>https://community.cloudera.com/t5/Support-Questions/none-of-the-fields-in-the-records-map-to-the-columns-CSV-to/m-p/280886#M209031</link>
      <description>&lt;P&gt;I have fixed this issue with the help of my supervisor. I have used only two processors.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;GetFile and PutDatabaseRecord.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Two changes made for `PutDatabaseRecord` Processor&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) Schema name : public&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2) Translate field names : false&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also didnt use AVRO reader.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this would help someone.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2019 12:17:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/none-of-the-fields-in-the-records-map-to-the-columns-CSV-to/m-p/280886#M209031</guid>
      <dc:creator>sachith</dc:creator>
      <dc:date>2019-10-21T12:17:35Z</dc:date>
    </item>
    <item>
      <title>Re: none of the fields in the records map to the columns CSV to putDatabaseRecord</title>
      <link>https://community.cloudera.com/t5/Support-Questions/none-of-the-fields-in-the-records-map-to-the-columns-CSV-to/m-p/284831#M211455</link>
      <description>&lt;P&gt;AvroReader is required in&amp;nbsp;&lt;SPAN&gt;PutDatabaseRecord, I have the same issue, how you solve it?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2019 22:43:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/none-of-the-fields-in-the-records-map-to-the-columns-CSV-to/m-p/284831#M211455</guid>
      <dc:creator>Souleater</dc:creator>
      <dc:date>2019-12-04T22:43:47Z</dc:date>
    </item>
    <item>
      <title>Re: none of the fields in the records map to the columns CSV to putDatabaseRecord</title>
      <link>https://community.cloudera.com/t5/Support-Questions/none-of-the-fields-in-the-records-map-to-the-columns-CSV-to/m-p/284837#M211461</link>
      <description>&lt;P&gt;Sorry, I havent use AVRO, as my scenario entirely based on csv data. I think posting a new question may give attention from community.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Dec 2019 03:30:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/none-of-the-fields-in-the-records-map-to-the-columns-CSV-to/m-p/284837#M211461</guid>
      <dc:creator>sachith</dc:creator>
      <dc:date>2019-12-05T03:30:34Z</dc:date>
    </item>
  </channel>
</rss>

