<?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: alter a table NiFi processor error in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/alter-a-table-NiFi-processor-error/m-p/348094#M235318</link>
    <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have modified Sql statement using&amp;nbsp; replace text processor but still getting below error when I alter a table and add new column.&lt;/P&gt;&lt;P&gt;PutDatabaseRecord processor input json:&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;"type" : "ddl",&lt;BR /&gt;"timestamp" : 1658252209000,&lt;BR /&gt;"binlog_gtidset" : "e75d07af-eb37-11ec-9d1d-a86daa745b08:1-147",&lt;BR /&gt;"database" : "nrpsubscriptiondb2306",&lt;BR /&gt;"table_name" : null,&lt;BR /&gt;"table_id" : null,&lt;BR /&gt;&lt;STRONG&gt;"query" : "ALTER TABLE `nrpreportdb`.`user_org_status` ADD COLUMN `is_test` VARCHAR(255) NULL AFTER `code`"&lt;/STRONG&gt;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Error log:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Record had no (or null) value for Field Containing SQL: query, FlowFile StandardFlowFileRecord[uuid=bc7d51b3-e71f-4eb2-834b-fecbcff572be,claim=StandardContentClaim [resourceClaim=StandardResourceClaim[id=1658226664320-3, container=default, section=3], offset=37727, length=277],offset=0,name=bc7d51b3-e71f-4eb2-834b-fecbcff572be,size=277]&lt;/P&gt;</description>
    <pubDate>Tue, 19 Jul 2022 17:48:40 GMT</pubDate>
    <dc:creator>AbhishekSingh</dc:creator>
    <dc:date>2022-07-19T17:48:40Z</dc:date>
    <item>
      <title>alter a table NiFi processor error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/alter-a-table-NiFi-processor-error/m-p/347913#M235281</link>
      <description>&lt;P&gt;I have configured the NiFi flow file where I am reading mysql binary-log file. for me insert, update and delete flow is working fine but when I alter a table then I am getting error.&lt;/P&gt;&lt;P&gt;sourceDBName:&amp;nbsp;nrpsubscriptiondb2306 and tableName: product_types&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot from 2022-07-17 23-38-17.png" style="width: 999px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/34926i038794277D5F2853/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot from 2022-07-17 23-38-17.png" alt="Screenshot from 2022-07-17 23-38-17.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot from 2022-07-17 23-37-20.png" style="width: 999px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/34924i8ECC3051B16ABFF9/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot from 2022-07-17 23-37-20.png" alt="Screenshot from 2022-07-17 23-37-20.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot from 2022-07-17 23-37-01.png" style="width: 999px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/34925i845CAE4D8DB7530A/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot from 2022-07-17 23-37-01.png" alt="Screenshot from 2022-07-17 23-37-01.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot from 2022-07-17 23-36-31.png" style="width: 999px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/34927iBA1046F1110BE159/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot from 2022-07-17 23-36-31.png" alt="Screenshot from 2022-07-17 23-36-31.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot from 2022-07-17 23-24-00.png" style="width: 999px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/34928iADFAE555482DCC20/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot from 2022-07-17 23-24-00.png" alt="Screenshot from 2022-07-17 23-24-00.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot from 2022-07-17 23-12-46.png" style="width: 999px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/34929i9FC1B1E523E9000D/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot from 2022-07-17 23-12-46.png" alt="Screenshot from 2022-07-17 23-12-46.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;destinationDBName:&amp;nbsp;nrpreportdb and tableName:&amp;nbsp;product_types&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Alter table nifi error:&lt;/P&gt;&lt;P&gt;Record had no (or null) value for Field Containing SQL: query, FlowFile StandardFlowFileRecord[uuid=8ca029c9-70aa-4e53-aec3-d37c15c8cd07,claim=StandardContentClaim [resourceClaim=StandardResourceClaim&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jul 2022 07:52:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/alter-a-table-NiFi-processor-error/m-p/347913#M235281</guid>
      <dc:creator>AbhishekSingh</dc:creator>
      <dc:date>2022-07-18T07:52:56Z</dc:date>
    </item>
    <item>
      <title>Re: alter a table NiFi processor error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/alter-a-table-NiFi-processor-error/m-p/347987#M235289</link>
      <description>&lt;P&gt;Have you checked this link:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cloudera.com/t5/Support-Questions/Adding-columns-to-sql-in-nifi/m-p/224598" target="_self"&gt;https://community.cloudera.com/t5/Support-Questions/Adding-columns-to-sql-in-nifi/m-p/224598&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jul 2022 17:21:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/alter-a-table-NiFi-processor-error/m-p/347987#M235289</guid>
      <dc:creator>rafy</dc:creator>
      <dc:date>2022-07-18T17:21:01Z</dc:date>
    </item>
    <item>
      <title>Re: alter a table NiFi processor error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/alter-a-table-NiFi-processor-error/m-p/348093#M235317</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/95347"&gt;@rafy&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Above link is saying that to use one more processor&lt;SPAN&gt;&amp;nbsp;PutSQL before PutDatabaseRecord to execute a statement&lt;/SPAN&gt;. We already have&amp;nbsp;&lt;SPAN&gt;PutDatabaseRecord processor to execute statement on db then why we should add putSQL processor?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Also other than DDL if any other action(insert, update, delete) will be perform in source db, It will fail because putSql processor will expect sql statement to execute first and based on success next processor will be call. In this case provided link suggestion will not work.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jul 2022 17:33:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/alter-a-table-NiFi-processor-error/m-p/348093#M235317</guid>
      <dc:creator>AbhishekSingh</dc:creator>
      <dc:date>2022-07-19T17:33:01Z</dc:date>
    </item>
    <item>
      <title>Re: alter a table NiFi processor error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/alter-a-table-NiFi-processor-error/m-p/348094#M235318</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have modified Sql statement using&amp;nbsp; replace text processor but still getting below error when I alter a table and add new column.&lt;/P&gt;&lt;P&gt;PutDatabaseRecord processor input json:&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;"type" : "ddl",&lt;BR /&gt;"timestamp" : 1658252209000,&lt;BR /&gt;"binlog_gtidset" : "e75d07af-eb37-11ec-9d1d-a86daa745b08:1-147",&lt;BR /&gt;"database" : "nrpsubscriptiondb2306",&lt;BR /&gt;"table_name" : null,&lt;BR /&gt;"table_id" : null,&lt;BR /&gt;&lt;STRONG&gt;"query" : "ALTER TABLE `nrpreportdb`.`user_org_status` ADD COLUMN `is_test` VARCHAR(255) NULL AFTER `code`"&lt;/STRONG&gt;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Error log:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Record had no (or null) value for Field Containing SQL: query, FlowFile StandardFlowFileRecord[uuid=bc7d51b3-e71f-4eb2-834b-fecbcff572be,claim=StandardContentClaim [resourceClaim=StandardResourceClaim[id=1658226664320-3, container=default, section=3], offset=37727, length=277],offset=0,name=bc7d51b3-e71f-4eb2-834b-fecbcff572be,size=277]&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jul 2022 17:48:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/alter-a-table-NiFi-processor-error/m-p/348094#M235318</guid>
      <dc:creator>AbhishekSingh</dc:creator>
      <dc:date>2022-07-19T17:48:40Z</dc:date>
    </item>
  </channel>
</rss>

