<?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: jsontosql Error :None of the fields in the JSON map to the columns defined by the table_name table in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/jsontosql-Error-None-of-the-fields-in-the-JSON-map-to-the/m-p/175558#M61248</link>
    <description>&lt;P&gt;After ConvertJSONToSQL you should not have JSON in the flowfile content, rather it should be a SQL statement. From the screenshot, you are sending all relationships to PutSQL, when you should only send the "sql" relationship. The "original" and "failure" relationships contain the input JSON, the "sql" relationship contains the corresponding SQL statement(s).&lt;/P&gt;</description>
    <pubDate>Wed, 17 May 2017 04:17:10 GMT</pubDate>
    <dc:creator>mburgess</dc:creator>
    <dc:date>2017-05-17T04:17:10Z</dc:date>
    <item>
      <title>jsontosql Error :None of the fields in the JSON map to the columns defined by the table_name table</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/jsontosql-Error-None-of-the-fields-in-the-JSON-map-to-the/m-p/175557#M61247</link>
      <description>&lt;P&gt;LOG File Error:&lt;/P&gt;&lt;P&gt;16 23:15:16,178 ERROR [Timer-Driven Process Thread-9] o.apache.nifi.processors.standard.PutSQL PutSQL[id=0d5dd381-015c-1000-b798-206309b21f43] Failed to update database for [StandardFlowFileRecord[uuid=0f3aef07-2ea4-46aa-8752-b6d440decfc7,claim=StandardContentClaim [resourceClaim=StandardResourceClaim[id=1494956697846-199, container=default, section=199], offset=327246, length=256],offset=0,name=47886655293009.json,size=256]] due to com.sap.db.jdbc.exceptions.JDBCDriverException: SAP DBTech JDBC: [257]: sql syntax error: incorrect syntax near """: line 1 col 2 (at pos 2); it is possible that retrying the operation will succeed, so routing to retry: com.sap.db.jdbc.exceptions.JDBCDriverException: SAP DBTech JDBC: [257]: sql syntax error: incorrect syntax near """: line 1 col 2 (at pos 2)
2017-05-16 23:15:16,178 ERROR [Timer-Driven Process Thread-9] o.apache.nifi.processors.standard.PutSQL 
com.sap.db.jdbc.exceptions.JDBCDriverException: SAP DBTech JDBC: [257]: sql syntax error: incorrect syntax near """: line 1 col 2 (at pos 2)
at com.sap.db.jdbc.exceptions.SQLExceptionSapDB.createException(SQLExceptionSapDB.java:334) ~[na:na]
at com.sap.db.jdbc.exceptions.SQLExceptionSapDB.generateDatabaseException(SQLExceptionSapDB.java:174) ~[na:na]
at com.sap.db.jdbc.packet.ReplyPacket.buildExceptionChain(ReplyPacket.java:104) ~[na:na]
at com.sap.db.jdbc.ConnectionSapDB.execute(ConnectionSapDB.java:1142) ~[na:na]
at com.sap.db.jdbc.CallableStatementSapDB.sendCommand(CallableStatementSapDB.java:1961) ~[na:na]
at com.sap.db.jdbc.StatementSapDB.sendSQL(StatementSapDB.java:981) ~[na:na]
at com.sap.db.jdbc.CallableStatementSapDB.doParse(CallableStatementSapDB.java:253) ~[na:na]
at com.sap.db.jdbc.CallableStatementSapDB.constructor(CallableStatementSapDB.java:212) ~[na:na]
at com.sap.db.jdbc.CallableStatementSapDB.&amp;lt;init&amp;gt;(CallableStatementSapDB.java:123) ~[na:na]
at com.sap.db.jdbc.CallableStatementSapDBFinalize.&amp;lt;init&amp;gt;(CallableStatementSapDBFinalize.java:31) ~[na:na]
at com.sap.db.jdbc.ConnectionSapDB.prepareStatement(ConnectionSapDB.java:1365) ~[na:na]
at com.sap.db.jdbc.trace.Connection.prepareStatement(Connection.java:413) ~[na:na]
at org.apache.commons.dbcp.DelegatingConnection.prepareStatement(DelegatingConnection.java:281) ~[na:na]
at org.apache.commons.dbcp.PoolingDataSource$PoolGuardConnectionWrapper.prepareStatement(PoolingDataSource.java:313) ~[na:na]
at org.apache.nifi.processors.standard.PutSQL.getEnclosure(PutSQL.java:569) ~[nifi-standard-processors-1.1.2.jar:1.1.2]
at org.apache.nifi.processors.standard.PutSQL.onTrigger(PutSQL.java:230) ~[nifi-standard-processors-1.1.2.jar:1.1.2]
at org.apache.nifi.processor.AbstractProcessor.onTrigger(AbstractProcessor.java:27) [nifi-api-1.1.2.jar:1.1.2]
at org.apache.nifi.controller.StandardProcessorNode.onTrigger(StandardProcessorNode.java:1099) [nifi-framework-core-1.1.2.jar:1.1.2]
at org.apache.nifi.controller.tasks.ContinuallyRunProcessorTask.call(ContinuallyRunProcessorTask.java:136) [nifi-framework-core-1.1.2.jar:1.1.2]
at org.apache.nifi.controller.tasks.ContinuallyRunProcessorTask.call(ContinuallyRunProcessorTask.java:47) [nifi-framework-core-1.1.2.jar:1.1.2]
at org.apache.nifi.controller.scheduling.TimerDrivenSchedulingAgent$1.run(TimerDrivenSchedulingAgent.java:132) [nifi-framework-core-1.1.2.jar:1.1.2]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_102]
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) [na:1.8.0_102]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180) [na:1.8.0_102]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294) [na:1.8.0_102]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_102]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_102]
at java.lang.Thread.run(Thread.java:745) [na:1.8.0_102]
2017-05-16 23:15:16,544 INFO [NiFi Web Server-876] o.a.n.controller.StandardProcessorNode Stopping processor: class org.apache.nifi.processors.standard.PutSQL
2017-05-16 23:15:16,544 INFO [StandardProcessScheduler Thread-2] o.a.n.c.s.TimerDrivenSchedulingAgent Stopped scheduling PutSQL[id=0d5dd381-015c-1000-b798-206309b21f43] to run
2017-05-16 23:15:17,126 ERROR [Timer-Driven Process Thread-1] o.apache.nifi.processors.standard.PutSQL PutSQL[id=0d5dd381-015c-1000-b798-206309b21f43] Failed to update database for [StandardFlowFileRecord[uuid=55524bac-37b1-4d82-80d3-8a52964a86fe,claim=StandardContentClaim [resourceClaim=StandardResourceClaim[id=1494956697846-199, container=default, section=199], offset=327502, length=346],offset=0,name=47886670846428.json,size=346]] due to com.sap.db.jdbc.exceptions.JDBCDriverException: SAP DBTech JDBC: [257]: sql syntax error: incorrect syntax near """: line 1 col 2 (at pos 2); it is possible that retrying the operation will succeed, so routing to retry: com.sap.db.jdbc.exceptions.JDBCDriverException: SAP DBTech JDBC: [257]: sql syntax error: incorrect syntax near """: line 1 col 2 (at pos 2)
2017-05-16 23:15:17,126 ERROR [Timer-Driven Process Thread-1] o.apache.nifi.processors.standard.PutSQL 
com.sap.db.jdbc.exceptions.JDBCDriverException: SAP DBTech JDBC: [257]: sql syntax error: incorrect syntax near """: line 1 col 2 (at pos 2)
at com.sap.db.jdbc.exceptions.SQLExceptionSapDB.createException(SQLExceptionSapDB.java:334) ~[na:na]
at com.sap.db.jdbc.exceptions.SQLExceptionSapDB.generateDatabaseException(SQLExceptionSapDB.java:174) ~[na:na]
at com.sap.db.jdbc.packet.ReplyPacket.buildExceptionChain(ReplyPacket.java:104) ~[na:na]
at com.sap.db.jdbc.ConnectionSapDB.execute(ConnectionSapDB.java:1142) ~[na:na]
at com.sap.db.jdbc.CallableStatementSapDB.sendCommand(CallableStatementSapDB.java:1961) ~[na:na]
at com.sap.db.jdbc.StatementSapDB.sendSQL(StatementSapDB.java:981) ~[na:na]
at com.sap.db.jdbc.CallableStatementSapDB.doParse(CallableStatementSapDB.java:253) ~[na:na]
at com.sap.db.jdbc.CallableStatementSapDB.constructor(CallableStatementSapDB.java:212) ~[na:na]
at com.sap.db.jdbc.CallableStatementSapDB.&amp;lt;init&amp;gt;(CallableStatementSapDB.java:123) ~[na:na]
at com.sap.db.jdbc.CallableStatementSapDBFinalize.&amp;lt;init&amp;gt;(CallableStatementSapDBFinalize.java:31) ~[na:na]
at com.sap.db.jdbc.ConnectionSapDB.prepareStatement(ConnectionSapDB.java:1365) ~[na:na]
at com.sap.db.jdbc.trace.Connection.prepareStatement(Connection.java:413) ~[na:na]
at org.apache.commons.dbcp.DelegatingConnection.prepareStatement(DelegatingConnection.java:281) ~[na:na]
at org.apache.commons.dbcp.PoolingDataSource$PoolGuardConnectionWrapper.prepareStatement(PoolingDataSource.java:313) ~[na:na]
at org.apache.nifi.processors.standard.PutSQL.getEnclosure(PutSQL.java:569) ~[nifi-standard-processors-1.1.2.jar:1.1.2]
at org.apache.nifi.processors.standard.PutSQL.onTrigger(PutSQL.java:230) ~[nifi-standard-processors-1.1.2.jar:1.1.2]
at org.apache.nifi.processor.AbstractProcessor.onTrigger(AbstractProcessor.java:27) [nifi-api-1.1.2.jar:1.1.2]
at org.apache.nifi.controller.StandardProcessorNode.onTrigger(StandardProcessorNode.java:1099) [nifi-framework-core-1.1.2.jar:1.1.2]
at org.apache.nifi.controller.tasks.ContinuallyRunProcessorTask.call(ContinuallyRunProcessorTask.java:136) [nifi-framework-core-1.1.2.jar:1.1.2]
at org.apache.nifi.controller.tasks.ContinuallyRunProcessorTask.call(ContinuallyRunProcessorTask.java:47) [nifi-framework-core-1.1.2.jar:1.1.2]
at org.apache.nifi.controller.scheduling.TimerDrivenSchedulingAgent$1.run(TimerDrivenSchedulingAgent.java:132) [nifi-framework-core-1.1.2.jar:1.1.2]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_102]
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) [na:1.8.0_102]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180) [na:1.8.0_102]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294) [na:1.8.0_102]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_102]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_102]
at java.lang.Thread.run(Thread.java:745) [na:1.8.0_102]
2017-05-16 23:15:17,141 INFO [Flow Service Tasks Thread-2] o.a.nifi.controller.StandardFlowService Saved flow controller org.apache.nifi.controller.FlowController@6ba604a4 // Another save pending = false
2017-05-16 23:15:18,371 INFO [NiFi Web Server-943] o.a.n.controller.StandardProcessorNode Stopping processor: class org.apache.nifi.processors.standard.ConvertJSONToSQL
2017-05-16 23:15:18,386 INFO [StandardProcessScheduler Thread-5] o.a.n.c.s.TimerDrivenSchedulingAgent Stopped scheduling ConvertJSONToSQL[id=102c1958-015c-1000-cbaf-142d83a47629] to run
2017-05-16 23:15:18,815 INFO [Flow Service Tasks Thread-2] o.a.nifi.controller.StandardFlowService Saved flow controller org.apache.nifi.controller.FlowController@6ba604a4 // Another save pending = false
2017-05-16 23:15:28,409 INFO [Provenance Maintenance Thread-3] o.a.n.p.PersistentProvenanceRepository Created new Provenance Event Writers for events starting with ID 293831
2017-05-16 23:15:28,519 INFO [Provenance Repository Rollover Thread-2] o.a.n.p.PersistentProvenanceRepository Successfully merged 16 journal files (1567 records) into single Provenance Log File .\provenance_repository\292264.prov in 126 milliseconds
2017-05-16 23:15:28,519 INFO [Provenance Repository Rollover Thread-2] o.a.n.p.PersistentProvenanceRepository Successfully Rolled over Provenance Event file containing 1624 records. In the past 5 minutes, 1716 events have been written to the Provenance Repository, totaling 844.84 KB
2017-05-16 23:15:31,295 INFO [pool-8-thread-1] o.a.n.c.r.WriteAheadFlowFileRepository Initiating checkpoint of FlowFile Repository
2017-05-16 23:15:32,517 INFO [pool-8-thread-1] org.wali.MinimalLockingWriteAheadLog org.wali.MinimalLockingWriteAheadLog@6915351c checkpointed with 1100 Records and 0 Swap Files in 1224 milliseconds (Stop-the-world time = 485 milliseconds, Clear Edit Logs time = 490 millis), max Transaction ID 174586
2017-05-16 23:15:32,517 INFO [pool-8-thread-1] o.a.n.c.r.WriteAheadFlowFileRepository Successfully checkpointed FlowFile Repository with 1100 records in 1224 milliseconds
2017-05-16 23:15:33,032 INFO [FileSystemRepository Workers Thread-2] o.a.n.c.repository.FileSystemRepository Successfully archived 1 Resource Claims for Container default in 2 millis
&lt;/P&gt;&lt;P&gt;Flow is &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="15429-1.png" style="width: 660px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/19785i5FE5416E03CC53F0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="15429-1.png" alt="15429-1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;JoltTransformJSON configuration:&lt;/P&gt;&lt;P&gt;and jolt specification is below:&lt;/P&gt;&lt;P&gt;[{"operation" : "shift",
 "spec":{
   "created_at":"created_date",
   "id":"tweet_id",
   "text":"tweet",
   "user":{
     "id":"user_id"
   }
 }
 }]&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="15430-2.png" style="width: 743px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/19786i34021B804098034E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="15430-2.png" alt="15430-2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;convert JSONtoSQL Configuration: i am getting error in this processor&lt;/P&gt;&lt;P&gt;its getting json from joltTransformationJSON is&lt;/P&gt;&lt;P&gt;{"created_date":"Tue May 16 08:47:58 +0000 2017","tweet_id":864402031007715329,"tweet":"The Amazing Spider-Man (2012) Kostenlos Online Anschauen \nLink: &lt;A href="https://t.co/L4QGSD0RBQ" target="_blank" rel="nofollow noopener noreferrer"&gt;https://t.co/L4QGSD0RBQ&lt;/A&gt; \n#TheAmazingSpiderMan","user_id":4913539714}&lt;/P&gt;&lt;P&gt;My table structure in HANA &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="15463-6.png" style="width: 696px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/19787i58B32A6ECBE67621/image-size/medium?v=v2&amp;amp;px=400" role="button" title="15463-6.png" alt="15463-6.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="15461-3.png" style="width: 750px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/19788i14238DFFCFCDCEB2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="15461-3.png" alt="15461-3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;After JSONtoSQL processor i am getting below JSON&lt;/P&gt;&lt;P&gt;{"created_date":"Tue May 16 08:47:58 +0000 2017","tweet_id":864402031007715329,"tweet":"The Amazing Spider-Man (2012) Kostenlos Online Anschauen \nLink: &lt;A href="https://t.co/L4QGSD0RBQ" target="_blank" rel="nofollow noopener noreferrer"&gt;https://t.co/L4QGSD0RBQ&lt;/A&gt; \n#TheAmazingSpiderMan","user_id":4913539714}&lt;/P&gt;&lt;P&gt;connection with hana database is fine i have tested with querydatabasetable processor that is working fine.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="15462-5.png" style="width: 724px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/19789i8C07426CCF0AC8C4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="15462-5.png" alt="15462-5.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;help is appreciated.&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 10:08:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/jsontosql-Error-None-of-the-fields-in-the-JSON-map-to-the/m-p/175557#M61247</guid>
      <dc:creator>santosh_hencha</dc:creator>
      <dc:date>2019-08-18T10:08:32Z</dc:date>
    </item>
    <item>
      <title>Re: jsontosql Error :None of the fields in the JSON map to the columns defined by the table_name table</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/jsontosql-Error-None-of-the-fields-in-the-JSON-map-to-the/m-p/175558#M61248</link>
      <description>&lt;P&gt;After ConvertJSONToSQL you should not have JSON in the flowfile content, rather it should be a SQL statement. From the screenshot, you are sending all relationships to PutSQL, when you should only send the "sql" relationship. The "original" and "failure" relationships contain the input JSON, the "sql" relationship contains the corresponding SQL statement(s).&lt;/P&gt;</description>
      <pubDate>Wed, 17 May 2017 04:17:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/jsontosql-Error-None-of-the-fields-in-the-JSON-map-to-the/m-p/175558#M61248</guid>
      <dc:creator>mburgess</dc:creator>
      <dc:date>2017-05-17T04:17:10Z</dc:date>
    </item>
    <item>
      <title>Re: jsontosql Error :None of the fields in the JSON map to the columns defined by the table_name table</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/jsontosql-Error-None-of-the-fields-in-the-JSON-map-to-the/m-p/175559#M61249</link>
      <description>&lt;P&gt;Hi Matt,&lt;/P&gt;&lt;P&gt;Thanks for reply. Now Recored are inserting into HANA table.&lt;/P&gt;</description>
      <pubDate>Wed, 17 May 2017 14:13:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/jsontosql-Error-None-of-the-fields-in-the-JSON-map-to-the/m-p/175559#M61249</guid>
      <dc:creator>santosh_hencha</dc:creator>
      <dc:date>2017-05-17T14:13:38Z</dc:date>
    </item>
  </channel>
</rss>

