logo
search
Others

Fix Fabric Spark SQL Cannot Query ADLS Gen2 Shortcut Table

Maira MehtabMaira Mehtab Sep 22, 2026 868 views

Question details

The user needs to resolve an issue where a Delta table created via an ADLS Gen2 shortcut is visible in the Fabric Lakehouse and SQL endpoint but returns a TABLE_OR_VIEW_NOT_FOUND error when queried in a Spark notebook.

Product
Microsoft Fabric
Device & OS
not provided
Scenario
Attempting to query an Azure Data Lake Storage Gen2 shortcut table using Spark SQL in a Fabric notebook.
Observed behavior
The Spark notebook returns a TABLE_OR_VIEW_NOT_FOUND error, even though the table is fully visible and accessible in the Fabric Lakehouse and SQL endpoint.
Before you start

Verify that your Spark notebook is actively attached to the correct Lakehouse and that you have the necessary workspace permissions to read the underlying ADLS Gen2 data.

Solution 1Recommended

Troubleshoot Spark Catalog and Consult Microsoft Fabric Community

Since this is a specific configuration or catalog synchronization issue within Microsoft Fabric, verify your Spark context and seek specialized guidance from the official community.

The TABLE_OR_VIEW_NOT_FOUND error usually occurs when the Spark catalog metadata has not synced with the Lakehouse, or if the notebook is referencing the wrong database context.

1
Verify the Spark Catalog context

Ensure your Spark notebook is correctly referencing the Lakehouse where the shortcut was created. Use the fully qualified name in your Spark SQL queries, formatted as `lakehouse_name.table_name`.

2
Check OneLake paths and schema sync

Because the Spark metadata catalog can sometimes take time to sync, restart your Spark session or use the `REFRESH TABLE` command to force an update of the metadata.

3
Gather configuration details

Collect your specific shortcut configuration, the exact notebook code you are running, the table location path, and the complete error message. Be sure to mask any sensitive storage keys or credentials.

4
Post in the Microsoft Fabric Community

Navigate to the official Microsoft Fabric Community (https://community.fabric.microsoft.com/) and post your gathered details in the Spark or Lakehouse forums for specialized support from Fabric engineers.

Protecting Sensitive Data: Never share your Azure storage account keys, SAS tokens, or private workspace IDs when posting logs in public community forums.
Free Microsoft Office alternative

Need a Lightweight Tool for Your Data Engineering Documentation?

While you troubleshoot your Microsoft Fabric and Spark SQL environments, use WPS Office as your free, lightweight, and fully compatible alternative to Microsoft Office. It is perfect for writing technical documentation, analyzing exported CSV data, or creating data architecture presentations without expensive subscription costs.

  1. 1. Download the software: Visit the official WPS Office website to download the free installation package for your operating system.
  2. 2. Install WPS Office: Run the downloaded installer and follow the simple on-screen instructions to set up the suite.
  3. 3. Open and edit your files: Launch WPS Office to instantly open, edit, and save your existing Microsoft Office documents and data exports.
100% compatible with Microsoft Word, Excel, and PowerPoint formats.Lightweight installation that will not slow down your data engineering workstation.Built-in PDF toolkit for sharing technical reports, logs, and diagrams.Completely free core features with a familiar, easy-to-use interface.
microsoft office alternative - wps office

Frequently Asked Questions

Why does my ADLS Gen2 shortcut table show TABLE_OR_VIEW_NOT_FOUND in Fabric Spark?

This typically occurs if the Spark session is not connected to the correct Lakehouse context, the metadata catalog hasn't fully synchronized with OneLake, or the SQL query is not using the fully qualified table name.

How do I refresh the metadata for a Fabric Lakehouse table in a Spark notebook?

You can resolve many synchronization issues by restarting your active Spark session or by executing the `REFRESH TABLE [table_name]` command in a Spark SQL cell to force a catalog update.

Can WPS Office open Excel files exported from Microsoft Fabric query results?

Yes, WPS Office is fully compatible with Microsoft Excel (.xlsx) and CSV formats, making it an excellent free tool for reviewing and analyzing data extracts locally on your machine.