<?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 Error Reading Data from Mirrored Database Using Lakehouse Shortcut in Data Engineering</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Error-Reading-Data-from-Mirrored-Database-Using-Lakehouse/m-p/4821487#M12247</link>
    <description>&lt;P&gt;I have a mirrored database set up in a trial Fabric workspace. The data is coming from an Azure SQL database. Works great. I have a lakehouse in the same workspace and I created a shortcut to the mirrored database in the lakehouse. So all of the mirrored tables now show up under the Files list in the lakehouse. I'm trying to do a very simple read of the data using a notebook and this code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;# Read Delta table using Spark&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;spark_df&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;spark&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;read&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;format&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"delta"&lt;/SPAN&gt;&lt;SPAN&gt;).&lt;/SPAN&gt;&lt;SPAN&gt;load&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"/[lakehousename]/default/Files/[shortcutname]/[tablename]"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;When I run this, I get a &lt;EM&gt;Spark_System_ABFS_OperationFailed&lt;/EM&gt;&amp;nbsp;error with this error message:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;An operation with ADLS Gen2 has failed. This is typically due to a permissions issue. 1. Please ensure that for all ADLS Gen2 resources referenced in the Spark job, that the user running the code has RBAC roles "Storage Blob Data Contributor" on storage accounts the job is expected to read and write from. 2. Check the logs for this Spark application. Inspect the logs for the ADLS Gen2 storage account name that is experiencing this issue.&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I am an admin in the workspace and have all rights to the mirrored database and the lakehouse (from what I can tell). Is there a permission somewhere that I'm missing? Or is this just not a supported method for reading the mirrored database data from a notebook?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 09 Sep 2025 13:42:54 GMT</pubDate>
    <dc:creator>dave_fackler</dc:creator>
    <dc:date>2025-09-09T13:42:54Z</dc:date>
    <item>
      <title>Error Reading Data from Mirrored Database Using Lakehouse Shortcut</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Error-Reading-Data-from-Mirrored-Database-Using-Lakehouse/m-p/4821487#M12247</link>
      <description>&lt;P&gt;I have a mirrored database set up in a trial Fabric workspace. The data is coming from an Azure SQL database. Works great. I have a lakehouse in the same workspace and I created a shortcut to the mirrored database in the lakehouse. So all of the mirrored tables now show up under the Files list in the lakehouse. I'm trying to do a very simple read of the data using a notebook and this code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;# Read Delta table using Spark&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;spark_df&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;spark&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;read&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;format&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"delta"&lt;/SPAN&gt;&lt;SPAN&gt;).&lt;/SPAN&gt;&lt;SPAN&gt;load&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"/[lakehousename]/default/Files/[shortcutname]/[tablename]"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;When I run this, I get a &lt;EM&gt;Spark_System_ABFS_OperationFailed&lt;/EM&gt;&amp;nbsp;error with this error message:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;An operation with ADLS Gen2 has failed. This is typically due to a permissions issue. 1. Please ensure that for all ADLS Gen2 resources referenced in the Spark job, that the user running the code has RBAC roles "Storage Blob Data Contributor" on storage accounts the job is expected to read and write from. 2. Check the logs for this Spark application. Inspect the logs for the ADLS Gen2 storage account name that is experiencing this issue.&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I am an admin in the workspace and have all rights to the mirrored database and the lakehouse (from what I can tell). Is there a permission somewhere that I'm missing? Or is this just not a supported method for reading the mirrored database data from a notebook?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 09 Sep 2025 13:42:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Error-Reading-Data-from-Mirrored-Database-Using-Lakehouse/m-p/4821487#M12247</guid>
      <dc:creator>dave_fackler</dc:creator>
      <dc:date>2025-09-09T13:42:54Z</dc:date>
    </item>
    <item>
      <title>Re: Error Reading Data from Mirrored Database Using Lakehouse Shortcut</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Error-Reading-Data-from-Mirrored-Database-Using-Lakehouse/m-p/4821521#M12248</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1253901"&gt;@dave_fackler&lt;/a&gt;,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;This &lt;/SPAN&gt;&lt;EM&gt;is&lt;/EM&gt;&lt;SPAN&gt; supported, but you need the correct path and the right Fabric/OneLake permissions.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The error text mentions “Storage Blob Data Contributor,” but with Fabric OneLake, access is governed by Fabric item/OneLake permissions rather than Azure Storage RBAC. For &lt;STRONG&gt;mirrored databases&lt;/STRONG&gt;, make sure your account has &lt;STRONG&gt;Read all OneLake data&lt;/STRONG&gt; on the &lt;EM&gt;mirrored database&lt;/EM&gt; (Workspace -&amp;gt;the mirrored database -&amp;gt;&amp;nbsp;&lt;STRONG&gt;Share&lt;/STRONG&gt;). That permission explicitly allows accessing the mirrored data files from Spark/OneLake Explorer. &lt;A href="https://learn.microsoft.com/en-us/fabric/mirroring/share-and-manage-permissions" target="_blank" rel="noopener"&gt;Docs: Share your mirrored database &amp;amp; permissions&lt;/A&gt;&lt;/P&gt;&lt;H3&gt;It’s supported to read mirrored data from notebooks&lt;/H3&gt;&lt;P&gt;Mirroring lands your source tables as Delta files in OneLake. You can explore/query them with Spark in notebooks by creating a Lakehouse shortcut to the mirrored database/tables and reading from it. &lt;A href="https://learn.microsoft.com/en-us/fabric/mirroring/explore" target="_blank" rel="noopener"&gt;Docs: Explore mirrored data with notebooks&lt;/A&gt; - &lt;A href="https://learn.microsoft.com/en-us/fabric/mirroring/overview" target="_blank" rel="noopener"&gt;Mirroring overview&lt;/A&gt;&lt;/P&gt;&lt;H3&gt;Use the correct path (copy the ABFS path from the UI)&lt;/H3&gt;&lt;OL&gt;&lt;LI&gt;In your Lakehouse, right-click the &lt;STRONG&gt;shortcut&lt;/STRONG&gt; (or a table/file in it) -&amp;gt;&amp;nbsp;&lt;STRONG&gt;Properties&lt;/STRONG&gt; -&amp;gt; copy the &lt;STRONG&gt;ABFS path&lt;/STRONG&gt; (or “Copy relative path for Spark” if it’s your default Lakehouse). &lt;A href="https://learn.microsoft.com/en-us/fabric/data-engineering/lakehouse-notebook-load-data" target="_blank" rel="noopener"&gt;Docs: Copy ABFS/relative paths&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;Use that ABFS path in your notebook.&lt;/LI&gt;&lt;/OL&gt;&lt;PRE&gt;# Example: read a mirrored Delta table through a Lakehouse shortcut (ABFS path)
path = "abfss://&amp;lt;workspaceName&amp;gt;@onelake.dfs.fabric.microsoft.com/&amp;lt;lakehouseName&amp;gt;.lakehouse/Files/&amp;lt;shortcutName&amp;gt;/&amp;lt;schema&amp;gt;/&amp;lt;tableName&amp;gt;"
df = spark.read.format("delta").load(path)
display(df)&lt;/PRE&gt;&lt;P&gt;ABFS path format example (from Microsoft docs): abfss://myWorkspace@onelake.dfs.fabric.microsoft.com/myLakehouse.lakehouse/Files/. &lt;A href="https://learn.microsoft.com/en-us/fabric/onelake/onelake-azure-databricks" target="_blank" rel="noopener"&gt;Docs: OneLake ABFSS path example&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Tip:&lt;/EM&gt; ensure the path targets the actual &lt;STRONG&gt;table folder&lt;/STRONG&gt; that contains a _delta_log (that’s the Delta table root). Higher-level folders (schema/database only) won’t load as Delta tables. &lt;A href="https://learn.microsoft.com/en-us/azure/synapse-analytics/sql/query-delta-lake-format" target="_blank" rel="noopener"&gt;Delta read-by-path points to folder with _delta_log&lt;/A&gt; &lt;A href="https://learn.microsoft.com/en-us/fabric/data-warehouse/query-delta-lake-logs" target="_blank" rel="noopener"&gt;Delta logs live under _delta_log&lt;/A&gt;&lt;/P&gt;&lt;H3&gt;Even easier: add the shortcut under &lt;EM&gt;Tables&lt;/EM&gt;&lt;/H3&gt;&lt;P&gt;If the target is Delta, create the shortcut in the Lakehouse &lt;STRONG&gt;Tables&lt;/STRONG&gt; section (not Files). Fabric auto-discovers it as a table so you can read it like any managed table via Spark/SQL/semantic model.&lt;/P&gt;&lt;PRE&gt;# Read a table-shortcut registered under Tables
df = spark.read.table("dbo.MyShortcutTable")            # Spark
# or
spark.sql("SELECT * FROM dbo.MyShortcutTable").show()   # SQL&lt;/PRE&gt;&lt;P&gt;Docs: &lt;A href="https://learn.microsoft.com/en-us/fabric/onelake/onelake-shortcuts" target="_blank" rel="noopener"&gt;OneLake shortcuts (Tables vs Files, auto-recognition)&lt;/A&gt; - &lt;A href="https://learn.microsoft.com/en-us/fabric/data-engineering/lakehouse-and-delta-tables" target="_blank" rel="noopener"&gt;Lakehouse &amp;amp; Delta tables (auto-discovery incl. shortcuts)&lt;/A&gt;&lt;/P&gt;&lt;H3&gt;Quick checklist&lt;/H3&gt;&lt;UL&gt;&lt;LI&gt;Grant yourself &lt;STRONG&gt;Read all OneLake data&lt;/STRONG&gt; on the mirrored database (Share -&amp;gt; permissions). &lt;A href="https://learn.microsoft.com/en-us/fabric/mirroring/share-and-manage-permissions" target="_blank" rel="noopener"&gt;Docs&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;Copy the shortcut’s &lt;STRONG&gt;ABFS path&lt;/STRONG&gt; (or relative path) and use it in spark.read.format("delta").load(...). &lt;A href="https://learn.microsoft.com/en-us/fabric/data-engineering/lakehouse-notebook-load-data" target="_blank" rel="noopener"&gt;Docs&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;Point to the actual &lt;STRONG&gt;table folder&lt;/STRONG&gt; (must contain _delta_log). &lt;A href="https://learn.microsoft.com/en-us/azure/synapse-analytics/sql/query-delta-lake-format" target="_blank" rel="noopener"&gt;Docs&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;For Delta tables, prefer the shortcut in &lt;STRONG&gt;Tables&lt;/STRONG&gt; so it’s addressable as a table. &lt;A href="https://learn.microsoft.com/en-us/fabric/onelake/onelake-shortcuts" target="_blank" rel="noopener"&gt;Docs&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;HR /&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;If you found this helpful, consider giving some Kudos. If I answered your question or solved your problem, please mark this as the solution.&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Sep 2025 14:25:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Error-Reading-Data-from-Mirrored-Database-Using-Lakehouse/m-p/4821521#M12248</guid>
      <dc:creator>tayloramy</dc:creator>
      <dc:date>2025-09-09T14:25:21Z</dc:date>
    </item>
    <item>
      <title>Re: Error Reading Data from Mirrored Database Using Lakehouse Shortcut</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Error-Reading-Data-from-Mirrored-Database-Using-Lakehouse/m-p/4822075#M12260</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1253901"&gt;@dave_fackler&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Thank you for reaching out to Microsoft Fabric Community.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1340679"&gt;@tayloramy&lt;/a&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;for the prompt response.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I wanted to check if you had the opportunity to review the information provided and resolve the issue..?Please let us know if you need any further assistance.We are happy to help.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Sep 2025 07:40:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Error-Reading-Data-from-Mirrored-Database-Using-Lakehouse/m-p/4822075#M12260</guid>
      <dc:creator>v-venuppu</dc:creator>
      <dc:date>2025-09-10T07:40:52Z</dc:date>
    </item>
    <item>
      <title>Re: Error Reading Data from Mirrored Database Using Lakehouse Shortcut</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Error-Reading-Data-from-Mirrored-Database-Using-Lakehouse/m-p/4822535#M12270</link>
      <description>&lt;P&gt;Using the abfss path worked. Thank you for the assistance!&lt;/P&gt;</description>
      <pubDate>Wed, 10 Sep 2025 14:03:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Error-Reading-Data-from-Mirrored-Database-Using-Lakehouse/m-p/4822535#M12270</guid>
      <dc:creator>dave_fackler</dc:creator>
      <dc:date>2025-09-10T14:03:54Z</dc:date>
    </item>
    <item>
      <title>Re: Error Reading Data from Mirrored Database Using Lakehouse Shortcut</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Error-Reading-Data-from-Mirrored-Database-Using-Lakehouse/m-p/4822552#M12271</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1253901"&gt;@dave_fackler&lt;/a&gt;,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Glad I could help. If the problem is resolved, kindly mark the post as the solution so that other forum users can easily find it in the future.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;If you found this helpful, consider giving some Kudos. If I answered your question or solved your problem, please mark this as the solution.&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Sep 2025 14:15:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Error-Reading-Data-from-Mirrored-Database-Using-Lakehouse/m-p/4822552#M12271</guid>
      <dc:creator>tayloramy</dc:creator>
      <dc:date>2025-09-10T14:15:29Z</dc:date>
    </item>
  </channel>
</rss>

