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

Join us at FabCon Vienna from September 15-18, 2025, for the ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM. Get registered

Reply
PowerrrBrrr
Helper III
Helper III

Gets "code":"Unauthorized" error when accessing one lake in microsoft fabric

I created a KQL database which has event hub as the source and I can see the data in the KQl table I created. However , after  activating the One lake path and I try to open it in new window. I get the below error:

{"error":{"code":"Unauthorized","message":"Authentication Failed with Bearer token is not present in the request"}} 

 What wrong am I doing. What permission do I need to check. couldnt find in Fabric documentation anything on generating token

7 REPLIES 7
PowerrrBrrr
Helper III
Helper III

sure if you provision KQL database in Fabric, you get the below details and the URL of One Lake which i would like to access

 

PowerrrBrrr_0-1706177892566.png

 

Anonymous
Not applicable

Hi @PowerrrBrrr ,

The One Lake availability is to use it with Lakehouse shortcuts! Try going into Lakehouse and creating a shortcut, you will see this KQL DB if you have enabled "OneLake availability" . In order to programatically access it, you need to authenticate with a token first. We cant access this directly by copying and pasting the link.

Hope this is helpful. Please let me know incase of further queries.

How do I get the token??

Anonymous
Not applicable

Hi @zzzsharepoint , @PowerrrBrrr 

It will follow standard Fabric API call procedure - Fabric API quickstart - Microsoft Fabric REST APIs | Microsoft Learn

Hope this is helpful. Please let me know incase of further queries.

Anonymous
Not applicable

Hello @PowerrrBrrr ,

We haven’t heard from you on the last response and was just checking back to see if you have a resolution yet .
Otherwise, will respond back with the more details and we will try to help .

Anonymous
Not applicable

Hello @PowerrrBrrr ,

We haven’t heard from you on the last response and was just checking back to see if you have a resolution yet .
In case if you have any resolution please do share that same with the community as it can be helpful to others .
If you have any question relating to the current thread, please do let us know and we will try out best to help you.
In case if you have any other question on a different issue, we request you to open a new thread .

HimanshuS-msft
Microsoft Employee
Microsoft Employee

Hello @PowerrrBrrr 
I do understand the source of the KQL but can I please more clarification on 

" However , after  activating the One lake path and I try to open it in new window"

Thanks 
Himanshu 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June FBC25 Carousel

Fabric Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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

Top Solution Authors
Top Kudoed Authors