<?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 DLT execution issue in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/databricks-dlt-execution-issue/m-p/120432#M46167</link>
    <description>&lt;P&gt;&lt;SPAN&gt;I am having an issue when trying to do a full refresh of a DLT pipeline.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CJOkpala_0-1748441402775.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/17184i39744854CC5DA76F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CJOkpala_0-1748441402775.png" alt="CJOkpala_0-1748441402775.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I am getting the following error below:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;com.databricks.sql.managedcatalog.UnityCatalogServiceException: [RequestId=97d4fe52-b185-4757-b0b1-113cb96ae0bb ErrorClass=TABLE_ALREADY_EXISTS.RESOURCE_ALREADY_EXISTS] Table 'animal_settings_hie_dim' already exists&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;When I try to read from the table&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;select&lt;/SPAN&gt; &lt;SPAN&gt;*&lt;/SPAN&gt; &lt;SPAN&gt;from&lt;/SPAN&gt; &lt;SPAN&gt;aadp_dev&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;edwa_stream&lt;/SPAN&gt;&lt;SPAN&gt;.animal_settings_hie_dim&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CJOkpala_0-1748426421678.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/17183i0F4C6262EF71460B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CJOkpala_0-1748426421678.png" alt="CJOkpala_0-1748426421678.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I receive the following error below:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;SPAN&gt;&lt;A title="Original URL: https://docs.microsoft.com/azure/databricks/error-messages/error-classes#streaming_table_operation_internal_error. Click or tap if you trust this link." href="https://eur04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdocs.microsoft.com%2Fazure%2Fdatabricks%2Ferror-messages%2Ferror-classes%23streaming_table_operation_internal_error&amp;amp;data=05%7C02%7Cdatabricks%40lely.com%7C6695d214beed4378c42b08dd9c4e437b%7Cad1af34e72ec461781232280b7b426b6%7C0%7C0%7C638838584163380092%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C60000%7C%7C%7C&amp;amp;sdata=v1uYbN3wNChzbSSTiN61Xu%2BcxBRCO1WZD9TjuF7ji%2BQ%3D&amp;amp;reserved=0" target="_blank" rel="noopener"&gt;STREAMING_TABLE_OPERATION_INTERNAL_ERROR&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN&gt;]&amp;nbsp;Internal error during operation SELECT on Streaming Table: Please file a bug report. SQLSTATE: XX000&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Could you advise me what to do about it?&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Wed, 28 May 2025 14:13:13 GMT</pubDate>
    <dc:creator>CJOkpala</dc:creator>
    <dc:date>2025-05-28T14:13:13Z</dc:date>
    <item>
      <title>Databricks DLT execution issue</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-dlt-execution-issue/m-p/120432#M46167</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I am having an issue when trying to do a full refresh of a DLT pipeline.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CJOkpala_0-1748441402775.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/17184i39744854CC5DA76F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CJOkpala_0-1748441402775.png" alt="CJOkpala_0-1748441402775.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I am getting the following error below:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;com.databricks.sql.managedcatalog.UnityCatalogServiceException: [RequestId=97d4fe52-b185-4757-b0b1-113cb96ae0bb ErrorClass=TABLE_ALREADY_EXISTS.RESOURCE_ALREADY_EXISTS] Table 'animal_settings_hie_dim' already exists&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;When I try to read from the table&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;select&lt;/SPAN&gt; &lt;SPAN&gt;*&lt;/SPAN&gt; &lt;SPAN&gt;from&lt;/SPAN&gt; &lt;SPAN&gt;aadp_dev&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;edwa_stream&lt;/SPAN&gt;&lt;SPAN&gt;.animal_settings_hie_dim&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CJOkpala_0-1748426421678.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/17183i0F4C6262EF71460B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CJOkpala_0-1748426421678.png" alt="CJOkpala_0-1748426421678.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I receive the following error below:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;SPAN&gt;&lt;A title="Original URL: https://docs.microsoft.com/azure/databricks/error-messages/error-classes#streaming_table_operation_internal_error. Click or tap if you trust this link." href="https://eur04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdocs.microsoft.com%2Fazure%2Fdatabricks%2Ferror-messages%2Ferror-classes%23streaming_table_operation_internal_error&amp;amp;data=05%7C02%7Cdatabricks%40lely.com%7C6695d214beed4378c42b08dd9c4e437b%7Cad1af34e72ec461781232280b7b426b6%7C0%7C0%7C638838584163380092%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C60000%7C%7C%7C&amp;amp;sdata=v1uYbN3wNChzbSSTiN61Xu%2BcxBRCO1WZD9TjuF7ji%2BQ%3D&amp;amp;reserved=0" target="_blank" rel="noopener"&gt;STREAMING_TABLE_OPERATION_INTERNAL_ERROR&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN&gt;]&amp;nbsp;Internal error during operation SELECT on Streaming Table: Please file a bug report. SQLSTATE: XX000&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Could you advise me what to do about it?&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 28 May 2025 14:13:13 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-dlt-execution-issue/m-p/120432#M46167</guid>
      <dc:creator>CJOkpala</dc:creator>
      <dc:date>2025-05-28T14:13:13Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks DLT execution issue</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-dlt-execution-issue/m-p/120535#M46188</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/164550"&gt;@CJOkpala&lt;/a&gt;, it looks like the error is happening because the table animal_settings_hie_dim already exists. To fix this, start by dropping the existing table:&lt;/P&gt;&lt;P&gt;DROP TABLE IF EXISTS aadp_dev.edwa_stream.animal_settings_hie_dim;&lt;/P&gt;&lt;P&gt;Next, update your DLT pipeline to use the @dlt.create_or_refresh_streaming_table decorator. This allows the pipeline to handle table recreation properly during full refreshes.&lt;/P&gt;&lt;P&gt;@dlt.create_or_refresh_streaming_table(name="animal_settings_hie_dim") def create_table(): return dlt.read_stream("source")&lt;/P&gt;&lt;P&gt;Once you've dropped the table and updated the pipeline, run a full refresh. This should recreate the table cleanly and resolve the issue.&lt;/P&gt;</description>
      <pubDate>Thu, 29 May 2025 12:59:43 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-dlt-execution-issue/m-p/120535#M46188</guid>
      <dc:creator>Renu_</dc:creator>
      <dc:date>2025-05-29T12:59:43Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks DLT execution issue</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-dlt-execution-issue/m-p/120697#M46226</link>
      <description>&lt;DIV&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/151751"&gt;@Renu_&lt;/a&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks for your response. But we did not find any documentation for&amp;nbsp;@dlt.create_or_refresh_streaming_table decorator.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;However we create many tables dynamically using&amp;nbsp;dlt.create_streaming_table(name=table_name) which I doubt would be supported by the decorator.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Surely we tried dropping the tables first. But if we drop the table and run the pipeline again, we receive another error:&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;java.lang.IllegalStateException: Soft-deleted MV/STs that require changes cannot be undropped directly. If you need to update the target schema of the pipeline or modify the visibility of an MV/ST while also undropping it, please invoke the undrop operation with the original schema and visibility in an update first, before applying the changes in a subsequent update.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Hope you can help us further.&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 02 Jun 2025 09:11:57 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-dlt-execution-issue/m-p/120697#M46226</guid>
      <dc:creator>CJOkpala</dc:creator>
      <dc:date>2025-06-02T09:11:57Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks DLT execution issue</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-dlt-execution-issue/m-p/121016#M46305</link>
      <description>&lt;P&gt;Can someone help me with this further? I am still having the error.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jun 2025 08:48:51 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-dlt-execution-issue/m-p/121016#M46305</guid>
      <dc:creator>CJOkpala</dc:creator>
      <dc:date>2025-06-05T08:48:51Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks DLT execution issue</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-dlt-execution-issue/m-p/121155#M46359</link>
      <description>&lt;P&gt;Are you facing the same issue, If you give a different name in the dlt decorator for the table?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jun 2025 18:14:30 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-dlt-execution-issue/m-p/121155#M46359</guid>
      <dc:creator>nikhilj0421</dc:creator>
      <dc:date>2025-06-06T18:14:30Z</dc:date>
    </item>
  </channel>
</rss>

