<?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 Facing ERROR: invalid input syntx for integer:&amp;amp;quot;&amp;amp;quot;  while processing NiFI flow file in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Facing-ERROR-invalid-input-syntx-for-integer-amp-quot-amp/m-p/291918#M215774</link>
    <description>&lt;P&gt;Hello guys,&lt;BR /&gt;I am extracting attributes from the flow file and putting it to the PostgreSQL.&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif" size="1 2 3 4 5 6 7" color="#0000FF"&gt;2017-04-27 09:15:04.794761 10.69.1.138 -&amp;gt; 10.69.1.100 &amp;lt;4&amp;gt;Apr 27 03:44:58 kernel: [ 542.579606] TS|242268|00:14:5a:03:29:72|RSSI_BCN|56&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="1 2 3 4 5 6 7" color="#0000FF"&gt;2017-04-27 09:47:59.351047 10.69.1.138 -&amp;gt; 10.69.1.100 &amp;lt;4&amp;gt;Apr 27 04:17:43 kernel: [ 2517.159922] TS|2216852|00:14:5a:03:23:01|RSSI_BCN|53&lt;/FONT&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;I am trying to extract integer value 56,53... end of the line and put it to the column&amp;lt;col&amp;gt; of PostgreSQL table&amp;lt;tab&amp;gt; where the &amp;lt;col&amp;gt;datatype is integer.&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;I used GetFile-&amp;gt;SplitText-&amp;gt;ExtractText -&amp;gt;putSQL in my process flow.&lt;/LI&gt;
&lt;LI&gt;I used (\d*)\z regular expression in ExtractText processor and its seems working well for extracting the value 56.&amp;nbsp; But after a certain time the putSQL processor shows error &lt;FONT color="#FF0000"&gt;ERROR: invalid input syntx for integer:"". &lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT color="#FF0000"&gt;&lt;FONT color="#000000"&gt;If I change the datatype from integer -&amp;gt; text in the &amp;lt;col&amp;gt; of my PostgreSQL table then I don't face this problem but I need to store the data in integer.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT color="#FF0000"&gt;&lt;FONT color="#000000"&gt;So can anyone please help me on finding the root cause of it, or what can I do to resolve it?&lt;/FONT&gt;&lt;/FONT&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;FONT color="#000000"&gt;&amp;nbsp;&lt;/FONT&gt; &lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 17 Mar 2020 04:54:26 GMT</pubDate>
    <dc:creator>DarkStar</dc:creator>
    <dc:date>2020-03-17T04:54:26Z</dc:date>
    <item>
      <title>Facing ERROR: invalid input syntx for integer:&amp;quot;&amp;quot;  while processing NiFI flow file</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Facing-ERROR-invalid-input-syntx-for-integer-amp-quot-amp/m-p/291918#M215774</link>
      <description>&lt;P&gt;Hello guys,&lt;BR /&gt;I am extracting attributes from the flow file and putting it to the PostgreSQL.&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif" size="1 2 3 4 5 6 7" color="#0000FF"&gt;2017-04-27 09:15:04.794761 10.69.1.138 -&amp;gt; 10.69.1.100 &amp;lt;4&amp;gt;Apr 27 03:44:58 kernel: [ 542.579606] TS|242268|00:14:5a:03:29:72|RSSI_BCN|56&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="1 2 3 4 5 6 7" color="#0000FF"&gt;2017-04-27 09:47:59.351047 10.69.1.138 -&amp;gt; 10.69.1.100 &amp;lt;4&amp;gt;Apr 27 04:17:43 kernel: [ 2517.159922] TS|2216852|00:14:5a:03:23:01|RSSI_BCN|53&lt;/FONT&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;I am trying to extract integer value 56,53... end of the line and put it to the column&amp;lt;col&amp;gt; of PostgreSQL table&amp;lt;tab&amp;gt; where the &amp;lt;col&amp;gt;datatype is integer.&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;I used GetFile-&amp;gt;SplitText-&amp;gt;ExtractText -&amp;gt;putSQL in my process flow.&lt;/LI&gt;
&lt;LI&gt;I used (\d*)\z regular expression in ExtractText processor and its seems working well for extracting the value 56.&amp;nbsp; But after a certain time the putSQL processor shows error &lt;FONT color="#FF0000"&gt;ERROR: invalid input syntx for integer:"". &lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT color="#FF0000"&gt;&lt;FONT color="#000000"&gt;If I change the datatype from integer -&amp;gt; text in the &amp;lt;col&amp;gt; of my PostgreSQL table then I don't face this problem but I need to store the data in integer.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT color="#FF0000"&gt;&lt;FONT color="#000000"&gt;So can anyone please help me on finding the root cause of it, or what can I do to resolve it?&lt;/FONT&gt;&lt;/FONT&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;FONT color="#000000"&gt;&amp;nbsp;&lt;/FONT&gt; &lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Mar 2020 04:54:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Facing-ERROR-invalid-input-syntx-for-integer-amp-quot-amp/m-p/291918#M215774</guid>
      <dc:creator>DarkStar</dc:creator>
      <dc:date>2020-03-17T04:54:26Z</dc:date>
    </item>
    <item>
      <title>Re: Facing ERROR: invalid input syntx for integer:&amp;quot;&amp;quot;  while processing NiFI flow file</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Facing-ERROR-invalid-input-syntx-for-integer-amp-quot-amp/m-p/291976#M215814</link>
      <description>&lt;P&gt;&lt;FONT size="2" color="#000000"&gt;Hello all, &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" color="#000000"&gt;The problem has been resolved. &lt;/FONT&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;FONT size="2" color="#000000"&gt;First, I ingested the all the attributes as a text in the PostgreSQL table. &lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT size="2" color="#000000"&gt;Then converted the text data to integer type with flowing command.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&lt;FONT color="#0000FF"&gt;ALTER TABLE public."tab"&lt;BR /&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&lt;FONT color="#0000FF"&gt;ALTER COLUMN col type int using nullif(col,'')::int&lt;BR /&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" color="#000000"&gt;Hope this will be helpful for others.&lt;/FONT&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Tue, 17 Mar 2020 17:40:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Facing-ERROR-invalid-input-syntx-for-integer-amp-quot-amp/m-p/291976#M215814</guid>
      <dc:creator>DarkStar</dc:creator>
      <dc:date>2020-03-17T17:40:54Z</dc:date>
    </item>
  </channel>
</rss>

