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

View all the Fabric Data Days sessions on demand. View schedule

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
November Fabric Update Carousel

Fabric Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

Real Time Intelligence in a Day

Real-Time Intelligence in a Day—Free Training

Turn streaming data into instant insights with Microsoft Fabric. Learn to connect live sources, visualize in seconds, and use Copilot + AI for smarter decisions.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors