<?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: Write_delta in Fabric Python Notebook Error in Data Engineering</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Write-delta-in-Fabric-Python-Notebook-Error/m-p/4993174#M14930</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1386889"&gt;@Ka13&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You’re getting this error because the deltalake (delta‑rs) library does not support name‑based ABFSS paths in Fabric. It requires the Workspace ID and Lakehouse Item ID, not the workspace or lakehouse name.&lt;BR /&gt;You can get both IDs from URL.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Eg.&amp;nbsp;&lt;A href="https://app.fabric.microsoft.com/groups/" target="_blank"&gt;https://app.fabric.microsoft.com/groups/&lt;/A&gt;&amp;lt;workspace-id&amp;gt;/lakehouses/&amp;lt;lakehouse-id&amp;gt;?sparkUpgradeToFabric=1&amp;amp;experience=fabric-developer&lt;BR /&gt;The correct ABFSS format is:&lt;/P&gt;&lt;DIV&gt;abfss://&amp;lt;workspace-id&amp;gt;@onelake.dfs.fabric.microsoft.com/&amp;lt;lakehouse-id&amp;gt;.Lakehouse/Tables/cust_test&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
    <pubDate>Tue, 03 Feb 2026 05:49:40 GMT</pubDate>
    <dc:creator>Asmita_27</dc:creator>
    <dc:date>2026-02-03T05:49:40Z</dc:date>
    <item>
      <title>Write_delta in Fabric Python Notebook Error</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Write-delta-in-Fabric-Python-Notebook-Error/m-p/4990968#M14925</link>
      <description>&lt;DIV&gt;Hi ,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;BR /&gt;I had question in Fabric Python Notebook while using the write_deltalake was getting Error.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I want to write the Data from Pandas Dataframe in the Lakehouse Table - cust_test.&lt;BR /&gt;&lt;BR /&gt;Can you please suggest.&lt;BR /&gt;&lt;BR /&gt;Below is the Fabric Notebook code.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;OSError: Generic MicrosoftAzure error: URL did not match any known pattern for scheme: abfss://&amp;lt;workspace-name&amp;gt;@&lt;A href="http://onelake.dfs.fabric.microsoft.com/test.Lakehouse/Tables/cust_test" target="_blank" rel="noopener"&gt;onelake.dfs.fabric.microsoft.com/test.Lakehouse/Tables/cust_test&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Fabric Notebook -&lt;BR /&gt;&lt;BR /&gt;pip install deltalake&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;import pandas as pd&lt;BR /&gt;from deltalake import write_deltalake&lt;BR /&gt;from datetime import datetime, timezone&lt;BR /&gt;from notebookutils import notebook&lt;BR /&gt;&lt;BR /&gt;data = {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; "CustomerID": [1, 2, 3],&lt;BR /&gt;&amp;nbsp; &amp;nbsp; "Name": ["Alice", "Bob", "Charlie"],&lt;BR /&gt;&amp;nbsp; &amp;nbsp; "Age" : [33,27,22]&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;df = pd.DataFrame(data)&lt;BR /&gt;print(&lt;A href="http://df.info/" target="_blank" rel="noopener"&gt;df.info&lt;/A&gt;())&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;storage_options = {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; "bearer_token" : notebookutils.credentials.getToken('storage'),&lt;BR /&gt;&amp;nbsp; &amp;nbsp; "use_fabric_endpoint": "true"&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;abfss_path = "abfss://&lt;A href="http://giii_d_etlfinance_hitesh.nagdev_ws@onelake.dfs.fabric.microsoft.com/test.Lakehouse/Tables/cust_test" target="_blank" rel="noopener"&gt;&amp;lt;workspace-name&amp;gt;@onelake.dfs.fabric.microsoft.com/test.Lakehouse/Tables/cust_test&lt;/A&gt;"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;write_deltalake(&lt;BR /&gt;&amp;nbsp; &amp;nbsp; abfss_path,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; df,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; mode="append",&lt;BR /&gt;&amp;nbsp; &amp;nbsp; storage_options = storage_options&lt;BR /&gt;) &amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Mon, 02 Feb 2026 17:05:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Write-delta-in-Fabric-Python-Notebook-Error/m-p/4990968#M14925</guid>
      <dc:creator>Ka13</dc:creator>
      <dc:date>2026-02-02T17:05:54Z</dc:date>
    </item>
    <item>
      <title>Re: Write_delta in Fabric Python Notebook Error</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Write-delta-in-Fabric-Python-Notebook-Error/m-p/4992837#M14926</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1386889"&gt;@Ka13&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you don't need to write in Delta format you can simply write your pandas dataset using the "File API Path". Add the lakehouse as a Data item in your Python notebook first. In the /Files section of the lakehouse, click the three dots on the folder you want to write to, and from the context menu copy the &lt;EM&gt;File API Path option.&amp;nbsp;&lt;/EM&gt;You can simply use that with Pandas to_csv method to write the dataset into the folder.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;df.to_csv('/lakehouse/default/Files/pandas_data/customers.csv', index=False, encoding="utf-8")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For writing in delta file format it's best to use a Spark notebook and the abfs file path, because Delta is a Spark-native storage format!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Feb 2026 18:27:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Write-delta-in-Fabric-Python-Notebook-Error/m-p/4992837#M14926</guid>
      <dc:creator>deborshi_nag</dc:creator>
      <dc:date>2026-02-02T18:27:12Z</dc:date>
    </item>
    <item>
      <title>Re: Write_delta in Fabric Python Notebook Error</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Write-delta-in-Fabric-Python-Notebook-Error/m-p/4993174#M14930</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1386889"&gt;@Ka13&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You’re getting this error because the deltalake (delta‑rs) library does not support name‑based ABFSS paths in Fabric. It requires the Workspace ID and Lakehouse Item ID, not the workspace or lakehouse name.&lt;BR /&gt;You can get both IDs from URL.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Eg.&amp;nbsp;&lt;A href="https://app.fabric.microsoft.com/groups/" target="_blank"&gt;https://app.fabric.microsoft.com/groups/&lt;/A&gt;&amp;lt;workspace-id&amp;gt;/lakehouses/&amp;lt;lakehouse-id&amp;gt;?sparkUpgradeToFabric=1&amp;amp;experience=fabric-developer&lt;BR /&gt;The correct ABFSS format is:&lt;/P&gt;&lt;DIV&gt;abfss://&amp;lt;workspace-id&amp;gt;@onelake.dfs.fabric.microsoft.com/&amp;lt;lakehouse-id&amp;gt;.Lakehouse/Tables/cust_test&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Tue, 03 Feb 2026 05:49:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Write-delta-in-Fabric-Python-Notebook-Error/m-p/4993174#M14930</guid>
      <dc:creator>Asmita_27</dc:creator>
      <dc:date>2026-02-03T05:49:40Z</dc:date>
    </item>
    <item>
      <title>Re: Write_delta in Fabric Python Notebook Error</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Write-delta-in-Fabric-Python-Notebook-Error/m-p/4993302#M14934</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1360867"&gt;@Asmita_27&lt;/a&gt;&amp;nbsp;- thanks for your reply. How to get the workspace-id and Lakehouse-id in fabric python notebook? , to get the workspace-id and Lakehouse id and then pass it to url&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Feb 2026 07:44:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Write-delta-in-Fabric-Python-Notebook-Error/m-p/4993302#M14934</guid>
      <dc:creator>Ka13</dc:creator>
      <dc:date>2026-02-03T07:44:23Z</dc:date>
    </item>
    <item>
      <title>Re: Write_delta in Fabric Python Notebook Error</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Write-delta-in-Fabric-Python-Notebook-Error/m-p/4993397#M14936</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;DIV&gt;To get the Workspace ID and Lakehouse ID in a Fabric notebook, you can list lakehouses and match by display name.&lt;DIV&gt;&lt;BR /&gt;&lt;DIV&gt;Code:&lt;DIV&gt;&lt;P&gt;&lt;SPAN&gt;&lt;!--   ScriptorStartFragment   --&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;from notebookutils import mssparkutils&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;!--   ScriptorEndFragment   --&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;!--   ScriptorStartFragment   --&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;def get_lakehouse_ids_by_name(name: str):&lt;/SPAN&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for lh in mssparkutils.lakehouse.list():&lt;/SPAN&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if lh.get("displayName") == name:&lt;/SPAN&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return lh.get("workspaceId"), lh.get("id")&lt;/SPAN&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; raise ValueError(f"Lakehouse named '{name}' not found.")&lt;/SPAN&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;workspace_id, lakehouse_id = get_lakehouse_ids_by_name("Write_Delta")&lt;/SPAN&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;print("Workspace ID:", workspace_id)&lt;/SPAN&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;print("Lakehouse ID:", lakehouse_id)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 03 Feb 2026 09:30:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Write-delta-in-Fabric-Python-Notebook-Error/m-p/4993397#M14936</guid>
      <dc:creator>Asmita_27</dc:creator>
      <dc:date>2026-02-03T09:30:31Z</dc:date>
    </item>
    <item>
      <title>Re: Write_delta in Fabric Python Notebook Error</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Write-delta-in-Fabric-Python-Notebook-Error/m-p/4993445#M14938</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1386889"&gt;@Ka13&lt;/a&gt;&amp;nbsp;I doubt you'd be able to import mssparkutils as it is a Spark utility and you're using a Python notebook.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's a code you can use in Python notebook -&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import sempy.fabric as fabric

def get_workspace_and_lakehouse_id(target_name="my_lakehouse"):
    # Workspace ID
    workspace_id = fabric.get_notebook_workspace_id()

    # List lakehouse items (your exact signature)
    items = fabric.list_items(type="Lakehouse", workspace=workspace_id)

    lakehouse_id = None

    # Loop through rows (your structure: it[0] = id, it[1] = name)
    for it in items.values:
        if it[1] == target_name:
            lakehouse_id = it[0]
            break

    return workspace_id, lakehouse_id

print(get_workspace_and_lakehouse_id())&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Feb 2026 10:08:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Write-delta-in-Fabric-Python-Notebook-Error/m-p/4993445#M14938</guid>
      <dc:creator>deborshi_nag</dc:creator>
      <dc:date>2026-02-03T10:08:08Z</dc:date>
    </item>
    <item>
      <title>Re: Write_delta in Fabric Python Notebook Error</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Write-delta-in-Fabric-Python-Notebook-Error/m-p/4994214#M14948</link>
      <description>&lt;P&gt;Thanks will test and let you know&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Feb 2026 01:06:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Write-delta-in-Fabric-Python-Notebook-Error/m-p/4994214#M14948</guid>
      <dc:creator>Ka13</dc:creator>
      <dc:date>2026-02-04T01:06:51Z</dc:date>
    </item>
    <item>
      <title>Re: Write_delta in Fabric Python Notebook Error</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Write-delta-in-Fabric-Python-Notebook-Error/m-p/4994215#M14949</link>
      <description>&lt;P&gt;Thanks will test and let you know&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Feb 2026 01:07:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Write-delta-in-Fabric-Python-Notebook-Error/m-p/4994215#M14949</guid>
      <dc:creator>Ka13</dc:creator>
      <dc:date>2026-02-04T01:07:15Z</dc:date>
    </item>
    <item>
      <title>Re: Write_delta in Fabric Python Notebook Error</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Write-delta-in-Fabric-Python-Notebook-Error/m-p/4996108#M14967</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1360867"&gt;@Asmita_27&lt;/a&gt;&amp;nbsp;, I tried to import mssparkutils in python fabric notebook but it didn't work.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Feb 2026 06:32:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Write-delta-in-Fabric-Python-Notebook-Error/m-p/4996108#M14967</guid>
      <dc:creator>Ka13</dc:creator>
      <dc:date>2026-02-05T06:32:33Z</dc:date>
    </item>
    <item>
      <title>Re: Write_delta in Fabric Python Notebook Error</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Write-delta-in-Fabric-Python-Notebook-Error/m-p/4996113#M14968</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1445078"&gt;@deborshi_nag&lt;/a&gt;&amp;nbsp;for your response , tried above it's working.&lt;BR /&gt;Yes the mssparkutils did not worked in Python fabric notebook.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Feb 2026 06:34:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Write-delta-in-Fabric-Python-Notebook-Error/m-p/4996113#M14968</guid>
      <dc:creator>Ka13</dc:creator>
      <dc:date>2026-02-05T06:34:36Z</dc:date>
    </item>
  </channel>
</rss>

