<?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:  LookupRecord Could Not Parse Incoming Data in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/NiFi-LookupRecord-Could-Not-Parse-Incoming-Data/m-p/298307#M219092</link>
    <description>&lt;P&gt;This post does not need any more views, I have solved the problem:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The first line of my data is column headers.&amp;nbsp; In latter case, in&amp;nbsp;CSVReader, when Schema Access Strategy is set to Use 'Schema Name' Property, then Treat First Line as Header needs to be set to True.&amp;nbsp; The property Ignore CSV Header Column Names also needs to be set to True otherwise if there are field name mismatches between the input file and the schema, the input file names will be used instead of the schema.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Alternative: I was able to set Schema Access Strategy to Use String Fields From Header, and that worked, but it ignores your schema, if you have one set up.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;jc&lt;/P&gt;</description>
    <pubDate>Fri, 19 Jun 2020 14:37:26 GMT</pubDate>
    <dc:creator>johndcal</dc:creator>
    <dc:date>2020-06-19T14:37:26Z</dc:date>
    <item>
      <title>NiFi:  LookupRecord Could Not Parse Incoming Data</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NiFi-LookupRecord-Could-Not-Parse-Incoming-Data/m-p/298252#M219060</link>
      <description>&lt;P&gt;Update: template for flow titled CountryCodeLookup.xml is in GitHub:&amp;nbsp;&lt;A href="https://github.com/johndcal/NiFi-Tutorial-5-Files" target="_blank"&gt;https://github.com/johndcal/NiFi-Tutorial-5-Files&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Can anyone help me with this?&amp;nbsp; Below is the data that I am trying to parse and the schema being used to parse it.&amp;nbsp; Should I be looking at something else?&amp;nbsp; Will provide more info if needed.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;jc&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;name,loc_id,launch,norad_number,classification&lt;BR /&gt;NOAA 19,US,2009-02-06,33591,Weather&lt;BR /&gt;GOES 13,US,2006-05-24,29155,TV&lt;BR /&gt;SAUDISAT 1C,SA,2002-12-20,27607,Education&lt;BR /&gt;METEOR M2,RU,2014-07-08,40069,Weather&lt;BR /&gt;MEASAT 3,MY,2006-12-11,29648,TV&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Schema:&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;"type": "record",&lt;BR /&gt;"namespace": "satellites",&lt;BR /&gt;"name": "satdata_in",&lt;BR /&gt;"fields": [&lt;BR /&gt;{ "name": "name", "type": "string" },&lt;BR /&gt;{ "name": "loc_id", "type": "string" },&lt;BR /&gt;{ "name": "launch", "type": "string" },&lt;BR /&gt;{ "name": "norad_number", "type": "int" },&lt;BR /&gt;{ "name": "classification", "type": "string" }&lt;BR /&gt;]&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jun 2020 15:30:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NiFi-LookupRecord-Could-Not-Parse-Incoming-Data/m-p/298252#M219060</guid>
      <dc:creator>johndcal</dc:creator>
      <dc:date>2020-06-18T15:30:45Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi:  LookupRecord Could Not Parse Incoming Data</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NiFi-LookupRecord-Could-Not-Parse-Incoming-Data/m-p/298307#M219092</link>
      <description>&lt;P&gt;This post does not need any more views, I have solved the problem:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The first line of my data is column headers.&amp;nbsp; In latter case, in&amp;nbsp;CSVReader, when Schema Access Strategy is set to Use 'Schema Name' Property, then Treat First Line as Header needs to be set to True.&amp;nbsp; The property Ignore CSV Header Column Names also needs to be set to True otherwise if there are field name mismatches between the input file and the schema, the input file names will be used instead of the schema.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Alternative: I was able to set Schema Access Strategy to Use String Fields From Header, and that worked, but it ignores your schema, if you have one set up.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;jc&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jun 2020 14:37:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NiFi-LookupRecord-Could-Not-Parse-Incoming-Data/m-p/298307#M219092</guid>
      <dc:creator>johndcal</dc:creator>
      <dc:date>2020-06-19T14:37:26Z</dc:date>
    </item>
  </channel>
</rss>

