<?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>topic Databricks JDBC write to table with PK column, error, key not found. in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/databricks-jdbc-write-to-table-with-pk-column-error-key-not/m-p/75718#M35037</link>
    <description>&lt;P&gt;Hello, I am trying to write data to table, it works find before, but after I recreated the table with one column as PK, there is an error.&lt;/P&gt;&lt;PRE&gt;Unable to write into the A_Table table....key not found: id&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;What is the correct way of doing this?&lt;BR /&gt;PK column:&amp;nbsp;  [ID] [bigint] IDENTITY(1,1) PRIMARY KEY NOT NULL&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 25 Jun 2024 14:52:18 GMT</pubDate>
    <dc:creator>JamesY</dc:creator>
    <dc:date>2024-06-25T14:52:18Z</dc:date>
    <item>
      <title>Databricks JDBC write to table with PK column, error, key not found.</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-jdbc-write-to-table-with-pk-column-error-key-not/m-p/75718#M35037</link>
      <description>&lt;P&gt;Hello, I am trying to write data to table, it works find before, but after I recreated the table with one column as PK, there is an error.&lt;/P&gt;&lt;PRE&gt;Unable to write into the A_Table table....key not found: id&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;What is the correct way of doing this?&lt;BR /&gt;PK column:&amp;nbsp;  [ID] [bigint] IDENTITY(1,1) PRIMARY KEY NOT NULL&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jun 2024 14:52:18 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-jdbc-write-to-table-with-pk-column-error-key-not/m-p/75718#M35037</guid>
      <dc:creator>JamesY</dc:creator>
      <dc:date>2024-06-25T14:52:18Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks JDBC write to table with PK column, error, key not found.</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-jdbc-write-to-table-with-pk-column-error-key-not/m-p/103821#M41566</link>
      <description>&lt;P&gt;Looks like the primary key column &lt;CODE&gt;ID&lt;/CODE&gt; is not being found during the write operation.&lt;/P&gt;
&lt;P&gt;Kindly verify the schema.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Use a command like below to create the table with id as the primary key.&lt;/P&gt;
&lt;P&gt;CREATE TABLE A_Table ( ID BIGINT IDENTITY(1,1) PRIMARY KEY NOT NULL, -- other columns );&lt;/P&gt;
&lt;P&gt;Documentations:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.databricks.com/ja/sql/language-manual/sql-ref-syntax-ddl-create-table-using.html" target="_blank"&gt;https://docs.databricks.com/ja/sql/language-manual/sql-ref-syntax-ddl-create-table-using.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.databricks.com/ja/sql/language-manual/sql-ref-syntax-ddl-create-table-constraint.html" target="_blank"&gt;https://docs.databricks.com/ja/sql/language-manual/sql-ref-syntax-ddl-create-table-constraint.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jan 2025 11:31:27 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-jdbc-write-to-table-with-pk-column-error-key-not/m-p/103821#M41566</guid>
      <dc:creator>NandiniN</dc:creator>
      <dc:date>2025-01-01T11:31:27Z</dc:date>
    </item>
  </channel>
</rss>

