<?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 Re: DELTA_CREATE_TABLE_WITH_NON_EMPTY_LOCATION Error with Databricks Target in Qlik Replicate</title>
    <link>https://community.qlik.com/t5/Qlik-Replicate/DELTA-CREATE-TABLE-WITH-NON-EMPTY-LOCATION-Error-with-Databricks/m-p/2521700#M14557</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am not sure what is your exact setting. However, as indicated in the Replicate users guide under the following section :&lt;BR /&gt;"&lt;A href="https://help.qlik.com/en-US/replicate/May2025/Content/Replicate/Main/DatabricksCloudStorage/databricks-cloud-storage-limitations-target.htm&amp;quot;" target="_blank"&gt;https://help.qlik.com/en-US/replicate/May2025/Content/Replicate/Main/DatabricksCloudStorage/databricks-cloud-storage-limitations-target.htm"&lt;/A&gt;&lt;BR /&gt;'&lt;SPAN class="mc-variable Replicate.Replication_cap variable"&gt;Replication&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;to Delta tables is not supported'&lt;BR /&gt;If this is not the scenario in your case, please open a salesforce case and attach to it the task log and the task diagnostic package for further investigation.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Orit&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 19 Jun 2025 08:02:37 GMT</pubDate>
    <dc:creator>OritA</dc:creator>
    <dc:date>2025-06-19T08:02:37Z</dc:date>
    <item>
      <title>DELTA_CREATE_TABLE_WITH_NON_EMPTY_LOCATION Error with Databricks Target</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/DELTA-CREATE-TABLE-WITH-NON-EMPTY-LOCATION-Error-with-Databricks/m-p/2521458#M14541</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;
&lt;P&gt;I’m running a Qlik Replicate task with Databricks as the target endpoint, and I’m periodically encountering the following error:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;DELTA_CREATE_TABLE_WITH_NON_EMPTY_LOCATION [...]: Cannot create table [...]. The associated location [...] is not empty and also not a Delta table.&lt;/LI-CODE&gt;
&lt;P&gt;This issue is causing significant latency increases and is becoming disruptive to our workflows.&lt;/P&gt;
&lt;P&gt;Is there a reliable way to prevent this error from occurring?&lt;/P&gt;
&lt;P&gt;Thank you in advance for any guidance!&lt;/P&gt;
&lt;P class="lia-align-center"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jun 2025 12:27:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/DELTA-CREATE-TABLE-WITH-NON-EMPTY-LOCATION-Error-with-Databricks/m-p/2521458#M14541</guid>
      <dc:creator>_riccardo</dc:creator>
      <dc:date>2025-06-17T12:27:44Z</dc:date>
    </item>
    <item>
      <title>Re: DELTA_CREATE_TABLE_WITH_NON_EMPTY_LOCATION Error with Databricks Target</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/DELTA-CREATE-TABLE-WITH-NON-EMPTY-LOCATION-Error-with-Databricks/m-p/2521700#M14557</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am not sure what is your exact setting. However, as indicated in the Replicate users guide under the following section :&lt;BR /&gt;"&lt;A href="https://help.qlik.com/en-US/replicate/May2025/Content/Replicate/Main/DatabricksCloudStorage/databricks-cloud-storage-limitations-target.htm&amp;quot;" target="_blank"&gt;https://help.qlik.com/en-US/replicate/May2025/Content/Replicate/Main/DatabricksCloudStorage/databricks-cloud-storage-limitations-target.htm"&lt;/A&gt;&lt;BR /&gt;'&lt;SPAN class="mc-variable Replicate.Replication_cap variable"&gt;Replication&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;to Delta tables is not supported'&lt;BR /&gt;If this is not the scenario in your case, please open a salesforce case and attach to it the task log and the task diagnostic package for further investigation.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Orit&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jun 2025 08:02:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/DELTA-CREATE-TABLE-WITH-NON-EMPTY-LOCATION-Error-with-Databricks/m-p/2521700#M14557</guid>
      <dc:creator>OritA</dc:creator>
      <dc:date>2025-06-19T08:02:37Z</dc:date>
    </item>
    <item>
      <title>Re: DELTA_CREATE_TABLE_WITH_NON_EMPTY_LOCATION Error with Databricks Target</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/DELTA-CREATE-TABLE-WITH-NON-EMPTY-LOCATION-Error-with-Databricks/m-p/2521738#M14569</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/334807"&gt;@_riccardo&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;In addition to&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/140377"&gt;@OritA&lt;/a&gt;&amp;nbsp;'s comment, one possible cause of the issue is the use of &lt;STRONG data-start="141" data-end="157"&gt;"DROP TABLE"&lt;/STRONG&gt; followed by &lt;STRONG data-start="170" data-end="188"&gt;"CREATE TABLE"&lt;/STRONG&gt; commands. This pattern can lead to problems, especially with Delta tables.&amp;nbsp;Databricks recommends using &lt;STRONG data-start="294" data-end="317"&gt;"CREATE OR REPLACE"&lt;/STRONG&gt; to overwrite a Delta table, instead of dropping and recreating it.&lt;/P&gt;
&lt;P data-start="386" data-end="434"&gt;As a workaround, please try the following steps:&lt;/P&gt;
&lt;OL data-start="436" data-end="635"&gt;
&lt;LI data-start="436" data-end="495"&gt;
&lt;P data-start="439" data-end="495"&gt;&lt;STRONG data-start="439" data-end="476"&gt;Manually remove the target folder&lt;/STRONG&gt; (if applicable).&lt;/P&gt;
&lt;/LI&gt;
&lt;LI data-start="496" data-end="635"&gt;
&lt;P data-start="499" data-end="635"&gt;&lt;STRONG data-start="499" data-end="529"&gt;Add the internal parameter in target Endpoint&lt;/STRONG&gt;:&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;$info.query_syntax.create_table&lt;/STRONG&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;CREATE or REPLACE ${TABLE_TYPE} TABLE ${QO}${TABLE_OWNER}${QC}.${QO}${TABLE_NAME}${QC} ( ${COLUMN_LIST} ) USING DELTA TBLPROPERTIES (delta.autoOptimize.optimizeWrite = true)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Hope it helps.&lt;/P&gt;
&lt;P&gt;John.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jun 2025 13:26:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/DELTA-CREATE-TABLE-WITH-NON-EMPTY-LOCATION-Error-with-Databricks/m-p/2521738#M14569</guid>
      <dc:creator>john_wang</dc:creator>
      <dc:date>2025-06-19T13:26:07Z</dc:date>
    </item>
  </channel>
</rss>

