<?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 Deleted schema leads to DLT pipeline problems in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/deleted-schema-leads-to-dlt-pipeline-problems/m-p/120296#M46126</link>
    <description>&lt;P&gt;Hello.&amp;nbsp;&lt;/P&gt;&lt;P&gt;When testing a dlt table pipeline i accidentally mispelt the target schema. The pipeline worked and created the tables. After realising my mistake, i deleted the tables and the schema - thinking nothing of it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;However when I run the pipeline with the corrected schema, I get the following error :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"""&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;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;/P&gt;&lt;P&gt;&lt;SPAN&gt;The following soft-deleted MV/STs required changes: table1, table2 etc etc&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"""&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I cant get back the tables to drop them properly. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;What do i do ? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 27 May 2025 10:43:05 GMT</pubDate>
    <dc:creator>jorhona</dc:creator>
    <dc:date>2025-05-27T10:43:05Z</dc:date>
    <item>
      <title>Deleted schema leads to DLT pipeline problems</title>
      <link>https://community.databricks.com/t5/data-engineering/deleted-schema-leads-to-dlt-pipeline-problems/m-p/120296#M46126</link>
      <description>&lt;P&gt;Hello.&amp;nbsp;&lt;/P&gt;&lt;P&gt;When testing a dlt table pipeline i accidentally mispelt the target schema. The pipeline worked and created the tables. After realising my mistake, i deleted the tables and the schema - thinking nothing of it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;However when I run the pipeline with the corrected schema, I get the following error :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"""&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;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;/P&gt;&lt;P&gt;&lt;SPAN&gt;The following soft-deleted MV/STs required changes: table1, table2 etc etc&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"""&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I cant get back the tables to drop them properly. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;What do i do ? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 May 2025 10:43:05 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/deleted-schema-leads-to-dlt-pipeline-problems/m-p/120296#M46126</guid>
      <dc:creator>jorhona</dc:creator>
      <dc:date>2025-05-27T10:43:05Z</dc:date>
    </item>
    <item>
      <title>Re: Deleted schema leads to DLT pipeline problems</title>
      <link>https://community.databricks.com/t5/data-engineering/deleted-schema-leads-to-dlt-pipeline-problems/m-p/120329#M46140</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/166054"&gt;@jorhona&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;This error happens because DLT marks deleted tables as "soft-deleted" in Unity Catalog, and they need to be restored to their original state before you can make changes.&lt;BR /&gt;To resolve this:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Recover the misspelled schema and tables:&lt;BR /&gt;UNDROP SCHEMA catalog_name.&amp;lt;typo_schema&amp;gt;;&lt;BR /&gt;UNDROP TABLE catalog_name.&amp;lt;typo_schema&amp;gt;.table1;&lt;/LI&gt;&lt;LI&gt;Then drop them properly:&lt;BR /&gt;DROP TABLE catalog_name.&amp;lt;typo_schema&amp;gt;.table1;&lt;BR /&gt;DROP SCHEMA catalog_name.&amp;lt;typo_schema&amp;gt;;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Once that's done, you can rerun your pipeline using the corrected schema without hitting the soft-deletion issue.&lt;/P&gt;</description>
      <pubDate>Tue, 27 May 2025 14:08:34 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/deleted-schema-leads-to-dlt-pipeline-problems/m-p/120329#M46140</guid>
      <dc:creator>SP_6721</dc:creator>
      <dc:date>2025-05-27T14:08:34Z</dc:date>
    </item>
    <item>
      <title>Re: Deleted schema leads to DLT pipeline problems</title>
      <link>https://community.databricks.com/t5/data-engineering/deleted-schema-leads-to-dlt-pipeline-problems/m-p/120411#M46157</link>
      <description>&lt;P&gt;In the end i deleted and recreated the pipeline which fixed the problem.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Luckily it was only in dev so didnt lose any history of pipeline success etc in prod.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Still, is a bit of a pain for dlt, along with the problem of multiple developers not being able to work on a single pipeline "this table belongs to another pipeline".&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 May 2025 11:06:42 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/deleted-schema-leads-to-dlt-pipeline-problems/m-p/120411#M46157</guid>
      <dc:creator>jorhona</dc:creator>
      <dc:date>2025-05-28T11:06:42Z</dc:date>
    </item>
  </channel>
</rss>

