<?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: Trouble with JsontoSQL processor in Nifi in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Trouble-with-JsontoSQL-processor-in-Nifi/m-p/106886#M25615</link>
    <description>&lt;P&gt;So the execute SQL processor successfully connects with the same settings.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="3535-executesql.png" style="width: 794px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/23491iAD92F8B712E2884C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="3535-executesql.png" alt="3535-executesql.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;returns&lt;/P&gt;&lt;P&gt;Obj&amp;#1;&amp;#2;&amp;#22;avro.schemaú&amp;#4;{"type":"record","name":"Home_Events","namespace":"any.data","fields":[{"name":"hub_insteon_id","type":["null","string"]},{"name":"device_insteon_id","type":["null","string"]},{"name":"device_group","type":["null","string"]},{"name":"status","type":["null","string"]},{"name":"recieved_at","type":["null","string"]}]}&lt;/P&gt;&lt;P&gt;and the JsonToSQL processor is configured as&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="3536-processor-config.png" style="width: 808px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/23492i318AA049373AA72C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="3536-processor-config.png" alt="3536-processor-config.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 19 Aug 2019 11:49:02 GMT</pubDate>
    <dc:creator>cgambino</dc:creator>
    <dc:date>2019-08-19T11:49:02Z</dc:date>
    <item>
      <title>Trouble with JsontoSQL processor in Nifi</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Trouble-with-JsontoSQL-processor-in-Nifi/m-p/106883#M25612</link>
      <description>&lt;P&gt;I am having trouble with my JsonToSQL processor in nifi.  I am trying to post to &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;This table&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;'Home_Events', 'CREATE TABLE `Home_Events` (\n `hub_insteon_id` varchar(255) DEFAULT NULL,\n `device_insteon_id` varchar(45) DEFAULT NULL,\n `device_group` varchar(45) DEFAULT NULL,\n `status` varchar(45) DEFAULT NULL,\n `recieved_at` varchar(45) DEFAULT NULL\n) ENGINE=InnoDB DEFAULT CHARSET=latin1'&lt;/P&gt;&lt;P&gt;&lt;B&gt;&lt;U&gt;With this JSON  &lt;/U&gt;&lt;/B&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;{"hub_insteon_id":"","device_group":"1","device_insteon_id":"3F68A2","recieved_at":"","status":"on"}&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Getting This Error&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;ConvertJSONToSQL[id=d0dd4cc5-f2ab-43ab-8921-b2aafea03cb5] Failed to convert StandardFlowFileRecord[uuid=611848ee-f0e8-40a7-8119-0539d4b531dd,claim=StandardContentClaim [resourceClaim=StandardResourceClaim[id=1461081489294-74, container=default, section=74], offset=8383, length=127],offset=0,name=180088917788802,size=127] to a SQL INSERT statement due to org.apache.nifi.processor.exception.ProcessException: None of the fields in the JSON map to the columns defined by the Home_Automation.Home_Events table; routing to failure: org.apache.nifi.processor.exception.ProcessException: None of the fields in the JSON map to the columns defined by the Home_Automation.Home_Events table&lt;/P&gt;&lt;P&gt;Any ideas how to resolve this?&lt;/P&gt;</description>
      <pubDate>Wed, 20 Apr 2016 02:05:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Trouble-with-JsontoSQL-processor-in-Nifi/m-p/106883#M25612</guid>
      <dc:creator>cgambino</dc:creator>
      <dc:date>2016-04-20T02:05:36Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with JsontoSQL processor in Nifi</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Trouble-with-JsontoSQL-processor-in-Nifi/m-p/106884#M25613</link>
      <description>&lt;P&gt;Chris can you validate that your DBCPConnectionPool controller is pointing the the appropriate database instance? The JSONToSQL processor will attempt a "describe" using the Connection Service and often this error is the result of that Connection Service not being pointed to the desired database. OR if you using using a Phoenix table be careful as the Phoenix JDBC driver is case sensitive and can make things a little more tricky.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Apr 2016 02:11:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Trouble-with-JsontoSQL-processor-in-Nifi/m-p/106884#M25613</guid>
      <dc:creator>jdyer</dc:creator>
      <dc:date>2016-04-20T02:11:41Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with JsontoSQL processor in Nifi</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Trouble-with-JsontoSQL-processor-in-Nifi/m-p/106885#M25614</link>
      <description>&lt;P&gt;ignore the comment about Phoenix. I see you are using MySQL by the "ENGINE=InnoDB" now.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Apr 2016 02:13:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Trouble-with-JsontoSQL-processor-in-Nifi/m-p/106885#M25614</guid>
      <dc:creator>jdyer</dc:creator>
      <dc:date>2016-04-20T02:13:13Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with JsontoSQL processor in Nifi</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Trouble-with-JsontoSQL-processor-in-Nifi/m-p/106886#M25615</link>
      <description>&lt;P&gt;So the execute SQL processor successfully connects with the same settings.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="3535-executesql.png" style="width: 794px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/23491iAD92F8B712E2884C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="3535-executesql.png" alt="3535-executesql.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;returns&lt;/P&gt;&lt;P&gt;Obj&amp;#1;&amp;#2;&amp;#22;avro.schemaú&amp;#4;{"type":"record","name":"Home_Events","namespace":"any.data","fields":[{"name":"hub_insteon_id","type":["null","string"]},{"name":"device_insteon_id","type":["null","string"]},{"name":"device_group","type":["null","string"]},{"name":"status","type":["null","string"]},{"name":"recieved_at","type":["null","string"]}]}&lt;/P&gt;&lt;P&gt;and the JsonToSQL processor is configured as&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="3536-processor-config.png" style="width: 808px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/23492i318AA049373AA72C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="3536-processor-config.png" alt="3536-processor-config.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2019 11:49:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Trouble-with-JsontoSQL-processor-in-Nifi/m-p/106886#M25615</guid>
      <dc:creator>cgambino</dc:creator>
      <dc:date>2019-08-19T11:49:02Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with JsontoSQL processor in Nifi</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Trouble-with-JsontoSQL-processor-in-Nifi/m-p/106887#M25616</link>
      <description>&lt;P&gt;Your configuration looks valid to me. Can you post a screenshot showing your configuration for what is being written to the FlowFile contents and feed to the ConvertJSONToSQL processor? It also might help to validate that the JSON payload you expect is actually in the FlowFile's content by using a LogAttribute processor and setting the "Log Payload" Property to true right before going to the ConvertJSONToSQL processor.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Apr 2016 02:46:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Trouble-with-JsontoSQL-processor-in-Nifi/m-p/106887#M25616</guid>
      <dc:creator>jdyer</dc:creator>
      <dc:date>2016-04-20T02:46:35Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with JsontoSQL processor in Nifi</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Trouble-with-JsontoSQL-processor-in-Nifi/m-p/106888#M25617</link>
      <description>&lt;P&gt;The flow leading into that&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="3537-config.png" style="width: 1508px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/23489i6BAF560540D82A9C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="3537-config.png" alt="3537-config.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;and the AttributesToJson Configuration&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="3538-attr-to-json.png" style="width: 807px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/23490i0553DF56BAAB19ED/image-size/medium?v=v2&amp;amp;px=400" role="button" title="3538-attr-to-json.png" alt="3538-attr-to-json.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2019 11:48:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Trouble-with-JsontoSQL-processor-in-Nifi/m-p/106888#M25617</guid>
      <dc:creator>cgambino</dc:creator>
      <dc:date>2019-08-19T11:48:48Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with JsontoSQL processor in Nifi</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Trouble-with-JsontoSQL-processor-in-Nifi/m-p/106889#M25618</link>
      <description>&lt;P&gt;
	Ok so the only way you should be seeing this is if JSON isn't in the format the ConvertJSONToSQL is expecting. The processor does a final Iterator&amp;lt;String&amp;gt; fieldNames = rootNode.getFieldNames(); and then performs a while loop on that Iterator incrementing a "fieldCount" variable each time. The only way you could see this is if the JSON isn't really what you think it is. I see the connection between "AttributesToJSON" and "ConvertJSONToSQL" has some FlowFiles in there. Can you right click that connection and list the contents and paste the exact contents of one of them here? Wondering if "AttributesToJSON" is doing something squirrely. I wrote it so its certainly possible ...&lt;/P&gt;</description>
      <pubDate>Wed, 20 Apr 2016 02:59:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Trouble-with-JsontoSQL-processor-in-Nifi/m-p/106889#M25618</guid>
      <dc:creator>jdyer</dc:creator>
      <dc:date>2016-04-20T02:59:39Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with JsontoSQL processor in Nifi</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Trouble-with-JsontoSQL-processor-in-Nifi/m-p/106890#M25619</link>
      <description>&lt;P&gt;Ahh I think I see what the problem is I think it is because you have "Include Core Attributes" set to true in AttributesToJSON and some extra fields are getting introduced into the JSON not present in the database table. Please paste that content I mentioned earlier however so I can validate.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Apr 2016 03:02:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Trouble-with-JsontoSQL-processor-in-Nifi/m-p/106890#M25619</guid>
      <dc:creator>jdyer</dc:creator>
      <dc:date>2016-04-20T03:02:10Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with JsontoSQL processor in Nifi</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Trouble-with-JsontoSQL-processor-in-Nifi/m-p/106891#M25620</link>
      <description>&lt;P&gt;Didn't fix it&lt;/P&gt;</description>
      <pubDate>Wed, 20 Apr 2016 03:58:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Trouble-with-JsontoSQL-processor-in-Nifi/m-p/106891#M25620</guid>
      <dc:creator>cgambino</dc:creator>
      <dc:date>2016-04-20T03:58:15Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with JsontoSQL processor in Nifi</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Trouble-with-JsontoSQL-processor-in-Nifi/m-p/106892#M25621</link>
      <description>&lt;P&gt;{"hub_insteon_id":"","device_group":"1","device_insteon_id":"368D4E","recieved_at":"2016-04-11T23:36:36.332240Z","status":"on"}&lt;/P&gt;</description>
      <pubDate>Wed, 20 Apr 2016 03:59:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Trouble-with-JsontoSQL-processor-in-Nifi/m-p/106892#M25621</guid>
      <dc:creator>cgambino</dc:creator>
      <dc:date>2016-04-20T03:59:04Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with JsontoSQL processor in Nifi</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Trouble-with-JsontoSQL-processor-in-Nifi/m-p/106893#M25622</link>
      <description>&lt;P&gt;Can you please post the JSON coming off of AttributesToJSON? Changing "Include Core Attributes" alone will not solve your problem.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Apr 2016 04:01:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Trouble-with-JsontoSQL-processor-in-Nifi/m-p/106893#M25622</guid>
      <dc:creator>jdyer</dc:creator>
      <dc:date>2016-04-20T04:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with JsontoSQL processor in Nifi</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Trouble-with-JsontoSQL-processor-in-Nifi/m-p/106894#M25623</link>
      <description>&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;P&gt;{"hub_insteon_id":"","device_group":"1","device_insteon_id":"368D4E","recieved_at":"2016-04-11T23:36:36.332240Z","status":"on"}&lt;/P&gt;&lt;P&gt;was taken after i changed it&lt;/P&gt;&lt;/DIV&gt;
&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 20 Apr 2016 04:11:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Trouble-with-JsontoSQL-processor-in-Nifi/m-p/106894#M25623</guid>
      <dc:creator>cgambino</dc:creator>
      <dc:date>2016-04-20T04:11:35Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with JsontoSQL processor in Nifi</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Trouble-with-JsontoSQL-processor-in-Nifi/m-p/106895#M25624</link>
      <description>&lt;P&gt;Make the following changes:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Change your connection string to include the database. For example: jdbc:mysql://localhost:3309/[databasename]&lt;/LI&gt;&lt;LI&gt;Take out the schema and the catalog name from the jsontosql processor configuration and just leave the table name. Your schema will come from the connection string&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;And you should be good to go.&lt;/P&gt;</description>
      <pubDate>Sat, 23 Apr 2016 04:30:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Trouble-with-JsontoSQL-processor-in-Nifi/m-p/106895#M25624</guid>
      <dc:creator>ed_gleeck</dc:creator>
      <dc:date>2016-04-23T04:30:19Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with JsontoSQL processor in Nifi</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Trouble-with-JsontoSQL-processor-in-Nifi/m-p/106896#M25625</link>
      <description>&lt;P&gt;Oh and don't forget to put a PutSQL processor to actually execute the sql command that ConvertJSONToSQL processor does for you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 23 Apr 2016 04:31:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Trouble-with-JsontoSQL-processor-in-Nifi/m-p/106896#M25625</guid>
      <dc:creator>ed_gleeck</dc:creator>
      <dc:date>2016-04-23T04:31:33Z</dc:date>
    </item>
  </channel>
</rss>

