Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
rohitb24
New Member

The query failed because the access is denied on table

Hello

We are referencing a lakehouse1 from our warehouse1, the lakehouse1 has a shortcut created from lakehouse2, the lakehouse2 was created by using a fabric link to dataverse/C365.
The data is loaded into warehouse1 using ADF Stored Procedure Activity.
The job which loads data into warehouse1 is executing per hour.
Sometimes I face the below error, can you help me with it ?

Error: The query failed because the access is denied on table 'dbo.table1', file 'https://onelake.dfs.fabric.microsoft.com/workspaceid/lakehouseid/Tables/table1/msft_datastate=__HIVE...'. Statement ID: {9BC78826-1430-45C1-A66D-E5191439C14F} | Query hash: 0x7DB74A211A4A765E | Distributed request ID: {114CD865-BF8A-4CE0-92B5-0D7028CC7C40}

Here table1 is the table that is in lakehouse2, lakehouse1 has a shortcut to read data from lakehouse2 & warehouse1 is reading data from lakehouse1.
The job only fail sometimes, the table referencing is also not same everytime (sometimes table2 or table3 would have an issue).

Can you please help me understanding & resolving this issue ?

Thanks in advance

1 ACCEPTED SOLUTION
V-yubandi-msft
Community Support
Community Support

Hi @rohitb24 ,

Thank you for contacting the fabric community.

When querying Lakehouse shortcuts, the authentication token may expire during execution, resulting in Access Denied  errors.

  1. Refresh authentication tokens before executing queries.
  1. The executing identity (User or Service Principal) must have the appropriate permissions.
    Reference: Permission model - Microsoft Fabric | Microsoft Learn
  2. If using ADF Stored Procedure Activity, ensure authentication is done via a Service Principal rather than a user account to prevent token expiration.
  3. Since failures occur sporadically, implementing retries in the workflow can help manage temporary authentication failures.

If my response solved your query, please mark it as the Accepted solution to help others find it easily.

And if my answer was helpful, I'd really appreciate a 'Kudos'.

View solution in original post

4 REPLIES 4
V-yubandi-msft
Community Support
Community Support

Hi @rohitb24 ,

Has your issue been resolved, or do you require any further information? Your feedback is valuable to us. If the solution was effective, please mark it as 'Accepted Solution' to assist other community members experiencing the same issue.

 

Thank You.

V-yubandi-msft
Community Support
Community Support

Hello @rohitb24 ,

I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions. If my response has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.

Thank You.

V-yubandi-msft
Community Support
Community Support

Hi @rohitb24 ,

May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.

Thank you.

V-yubandi-msft
Community Support
Community Support

Hi @rohitb24 ,

Thank you for contacting the fabric community.

When querying Lakehouse shortcuts, the authentication token may expire during execution, resulting in Access Denied  errors.

  1. Refresh authentication tokens before executing queries.
  1. The executing identity (User or Service Principal) must have the appropriate permissions.
    Reference: Permission model - Microsoft Fabric | Microsoft Learn
  2. If using ADF Stored Procedure Activity, ensure authentication is done via a Service Principal rather than a user account to prevent token expiration.
  3. Since failures occur sporadically, implementing retries in the workflow can help manage temporary authentication failures.

If my response solved your query, please mark it as the Accepted solution to help others find it easily.

And if my answer was helpful, I'd really appreciate a 'Kudos'.

Helpful resources

Announcements
Fabric July 2025 Monthly Update Carousel

Fabric Monthly Update - July 2025

Check out the July 2025 Fabric update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.