<?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: How can I save a delta table from lakehouse1 stored in wk1 to lakehouse2 in wk2 using a NB pyspark? in Data Warehouse</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Warehouse/How-can-I-save-a-delta-table-from-lakehouse1-stored-in-wk1-to/m-p/4895595#M3989</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="192773" data-lia-user-login="lsoriaga" class="lia-mention lia-mention-user"&gt;lsoriaga&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;May I check if this issue has been resolved? If not, Please feel free to contact us if you have any further questions.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Thank you&lt;/P&gt;</description>
    <pubDate>Mon, 08 Dec 2025 07:11:21 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2025-12-08T07:11:21Z</dc:date>
    <item>
      <title>How can I save a delta table from lakehouse1 stored in wk1 to lakehouse2 in wk2 using a NB pyspark?</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Warehouse/How-can-I-save-a-delta-table-from-lakehouse1-stored-in-wk1-to/m-p/4889481#M3968</link>
      <description>&lt;P&gt;I have a notebook in wk1 that reads table1 from lakehouse1, performs a series of transformations, and then saves the new delta table in lakehouse2 in wk2, but I get an error saying that it cannot find the lakehouse in the catalogue when it is included in the notebook as an item. How can I make it visible? How can I use the save or saveAsTable statement to make it work?&amp;nbsp;Lakehouses are without schemas.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Dec 2025 09:28:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Warehouse/How-can-I-save-a-delta-table-from-lakehouse1-stored-in-wk1-to/m-p/4889481#M3968</guid>
      <dc:creator>lsoriaga</dc:creator>
      <dc:date>2025-12-01T09:28:43Z</dc:date>
    </item>
    <item>
      <title>Re: How can I save a delta table from lakehouse1 stored in wk1 to lakehouse2 in wk2 using a NB pyspark?</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Warehouse/How-can-I-save-a-delta-table-from-lakehouse1-stored-in-wk1-to/m-p/4889575#M3969</link>
      <description>&lt;P&gt;from your notebook, use the following command to write to lakehouse2 in wk2 directly&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;!-- ScriptorStartFragment --&gt;df.write.format("delta").mode("overwrite").save("abfss://&amp;lt;guid1&amp;gt;@onelake.dfs.fabric.microsoft.com/&amp;lt;guid2&amp;gt;/Tables/my_delta_table")&lt;!-- ScriptorEndFragment --&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can get the abfs path of lakehouse2 by clicking the properties of the table you plan to store data into.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Dec 2025 11:32:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Warehouse/How-can-I-save-a-delta-table-from-lakehouse1-stored-in-wk1-to/m-p/4889575#M3969</guid>
      <dc:creator>deborshi_nag</dc:creator>
      <dc:date>2025-12-01T11:32:43Z</dc:date>
    </item>
    <item>
      <title>Re: How can I save a delta table from lakehouse1 stored in wk1 to lakehouse2 in wk2 using a NB pyspark?</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Warehouse/How-can-I-save-a-delta-table-from-lakehouse1-stored-in-wk1-to/m-p/4891855#M3973</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="192773" data-lia-user-login="lsoriaga" class="lia-mention lia-mention-user"&gt;lsoriaga&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV class=""&gt;To achieve this in Microsoft Fabric using &lt;STRONG&gt;PySpark in a Notebook&lt;/STRONG&gt;, there are a few important points to consider:&lt;/DIV&gt;&lt;HR /&gt;&lt;H3&gt;&lt;STRONG&gt;Why the Error Occurs&lt;/STRONG&gt;&lt;/H3&gt;&lt;UL&gt;&lt;LI&gt;When you attach a Lakehouse to a Notebook, it becomes visible in the Spark catalog only for that session.&lt;/LI&gt;&lt;LI&gt;If you try to reference another Lakehouse (from a different workspace) without attaching it, Spark cannot find it because it is not mounted in the current session.&lt;/LI&gt;&lt;LI&gt;Lakehouses in Fabric do not use schemas by default, so you must reference them by their catalog name when attached.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;H3&gt;&lt;STRONG&gt;Solution: Attach Both Lakehouses to the Notebook&lt;/STRONG&gt;&lt;/H3&gt;&lt;OL&gt;&lt;LI&gt;Open your Notebook in &lt;STRONG&gt;wk1&lt;/STRONG&gt;.&lt;/LI&gt;&lt;LI&gt;In the &lt;STRONG&gt;Items pane&lt;/STRONG&gt;, attach:&lt;UL&gt;&lt;LI&gt;lakehouse1 (source)&lt;/LI&gt;&lt;LI&gt;lakehouse2 (destination)&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;After attaching, both Lakehouses will appear in the Spark catalog under their names.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;LI-CODE lang="markup"&gt;# Read the Delta table from lakehouse1
df = spark.read.format("delta").load("Tables/table1")

If you want to use the catalog reference:

df = spark.table("lakehouse1.table1")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;H3&gt;&lt;STRONG&gt;Write to Lakehouse2&lt;/STRONG&gt;&lt;/H3&gt;&lt;DIV class=""&gt;You can save the transformed DataFrame as a Delta table in lakehouse2:&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;LI-CODE lang="markup"&gt;# Save as Delta in lakehouse2
df_transformed.write.format("delta").mode("overwrite").save("Tables/new_table")

Or register it as a table in the Spark catalog for lakehouse2:

df_transformed.write.format("delta").mode("overwrite").saveAsTable("lakehouse2.new_table")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;STRONG&gt;Question for you:&lt;/STRONG&gt;&lt;BR /&gt;Do you want the table in lakehouse2 to &lt;STRONG&gt;replace the existing one&lt;/STRONG&gt; each time (overwrite), or &lt;STRONG&gt;append new data&lt;/STRONG&gt; for historical snapshots?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;P&gt;If this response was helpful in any way, I’d gladly accept a &lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;much like the joy of seeing a DAX measure work first time without needing another FILTER.&lt;/P&gt;&lt;P&gt;Please mark it as the correct solution. It helps other community members find their way faster (and saves them from another endless loop &lt;span class="lia-unicode-emoji" title=":cyclone:"&gt;🌀&lt;/span&gt;.&lt;/P&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Wed, 03 Dec 2025 14:57:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Warehouse/How-can-I-save-a-delta-table-from-lakehouse1-stored-in-wk1-to/m-p/4891855#M3973</guid>
      <dc:creator>Zanqueta</dc:creator>
      <dc:date>2025-12-03T14:57:59Z</dc:date>
    </item>
    <item>
      <title>Re: How can I save a delta table from lakehouse1 stored in wk1 to lakehouse2 in wk2 using a NB pyspark?</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Warehouse/How-can-I-save-a-delta-table-from-lakehouse1-stored-in-wk1-to/m-p/4892380#M3975</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="192773" data-lia-user-login="lsoriaga" class="lia-mention lia-mention-user"&gt;lsoriaga&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;I wanted to check if you had the opportunity to review the valuable information provided by &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="861055" data-lia-user-login="Zanqueta" class="lia-mention lia-mention-user"&gt;Zanqueta&lt;/a&gt;&amp;nbsp; and &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1445078" data-lia-user-login="deborshi_nag" class="lia-mention lia-mention-user"&gt;deborshi_nag&lt;/a&gt;&amp;nbsp;. Please feel free to contact us if you have any further questions.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Dec 2025 04:11:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Warehouse/How-can-I-save-a-delta-table-from-lakehouse1-stored-in-wk1-to/m-p/4892380#M3975</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-12-04T04:11:15Z</dc:date>
    </item>
    <item>
      <title>Re: How can I save a delta table from lakehouse1 stored in wk1 to lakehouse2 in wk2 using a NB pyspark?</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Warehouse/How-can-I-save-a-delta-table-from-lakehouse1-stored-in-wk1-to/m-p/4893798#M3984</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="192773" data-lia-user-login="lsoriaga" class="lia-mention lia-mention-user"&gt;lsoriaga&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When a notebook is in &lt;STRONG&gt;Workspace 1&lt;/STRONG&gt;, it cannot automatically see a Lakehouse from &lt;STRONG&gt;Workspace 2&lt;/STRONG&gt; unless you explicitly &lt;STRONG&gt;attach it as a Lakehouse item&lt;/STRONG&gt; inside the notebook’s workspace.&lt;BR /&gt;Adding a Lakehouse to the catalog inside the code cell is not enough — it must be attached as an item at the notebook level.&lt;/P&gt;&lt;H3&gt;To make Lakehouse2 visible:&lt;/H3&gt;&lt;OL&gt;&lt;LI&gt;Open the notebook in &lt;STRONG&gt;wk1&lt;/STRONG&gt;.&lt;/LI&gt;&lt;LI&gt;Click &lt;STRONG&gt;Add &amp;gt; Lakehouse&lt;/STRONG&gt;.&lt;/LI&gt;&lt;LI&gt;Select &lt;STRONG&gt;lakehouse2 from wk2&lt;/STRONG&gt;.&lt;/LI&gt;&lt;LI&gt;After attaching it, you will see it in the left catalog panel and Spark can reference it.&lt;/LI&gt;&lt;/OL&gt;&lt;H3&gt;Saving the transformed table into Lakehouse2&lt;/H3&gt;&lt;P&gt;Once Lakehouse2 is attached, use:&lt;/P&gt;&lt;PRE&gt;# Write as Delta file into Lakehouse2
df.write.format("delta").mode("overwrite").save("Tables/my_new_table")&lt;/PRE&gt;&lt;P&gt;or to register a table in the Lakehouse catalog:&lt;/P&gt;&lt;PRE&gt;df.write.format("delta").mode("overwrite").saveAsTable("lakehouse2.my_new_table")&lt;/PRE&gt;&lt;P&gt;(You don’t need schemas because Lakehouses do not require schema prefixes.)&lt;/P&gt;&lt;H3&gt;Important:&lt;/H3&gt;&lt;P&gt;saveAsTable only works &lt;EM&gt;after&lt;/EM&gt; the Lakehouse is attached to the notebook.&lt;BR /&gt;If not attached, Spark will throw “Lakehouse not found in catalog”.&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;If this solved your issue, &lt;STRONG&gt;please mark the answer as “Accepted”&lt;/STRONG&gt; and receive KUDO&lt;/P&gt;&lt;P&gt;Best regards&amp;nbsp;&lt;/P&gt;&lt;P&gt;Nabha Ahmed&lt;/P&gt;</description>
      <pubDate>Fri, 05 Dec 2025 05:03:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Warehouse/How-can-I-save-a-delta-table-from-lakehouse1-stored-in-wk1-to/m-p/4893798#M3984</guid>
      <dc:creator>Nabha-Ahmed</dc:creator>
      <dc:date>2025-12-05T05:03:26Z</dc:date>
    </item>
    <item>
      <title>Re: How can I save a delta table from lakehouse1 stored in wk1 to lakehouse2 in wk2 using a NB pyspark?</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Warehouse/How-can-I-save-a-delta-table-from-lakehouse1-stored-in-wk1-to/m-p/4895595#M3989</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="192773" data-lia-user-login="lsoriaga" class="lia-mention lia-mention-user"&gt;lsoriaga&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;May I check if this issue has been resolved? If not, Please feel free to contact us if you have any further questions.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Mon, 08 Dec 2025 07:11:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Warehouse/How-can-I-save-a-delta-table-from-lakehouse1-stored-in-wk1-to/m-p/4895595#M3989</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-12-08T07:11:21Z</dc:date>
    </item>
  </channel>
</rss>

