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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Jameopw
Frequent Visitor

SQL Endpoint - Error 5 Access Denied

Hi!

 

I am having issues with my SQL endpoints. When running my dataflow Gen2s, I'm getting the following error: 

 

Jameopw_0-1729856801606.png

I also cannot access the SQL endpoint in the lakehouse explorer:

 

thumbnail_image (1).png

This is on all of my Lakehouses in my Fabric workspace. Any idea of how I can fix this? Nothing has changed that I can think of to trigger this issue. I have checked also, and the oweners/creators of the lakehouses have not changed/been deactivated.

 

Hope someone can help as I am very reliant on Dataflows for the engineering pipeline & cannot proceed until the issue is fixed!

 

Many thanks in advance!

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Jameopw ,

Please take over SQL endpoint using Powershell scripts:

 # Install the Power BI PowerShell module if not already installed 
   Install-Module -Name MicrosoftPowerBIMgmt 

 # Import the Power BI PowerShell module 
   Import-ModuleMicrosoftPowerBIMgmt 

 # Connect to the Power BI service using the new owner credentials and take over the SQL Endpoint

   $workspaceid = "xxx"
   $sqlendpoint = "xxx"

   Connect-PowerBIServiceAccount

   $url = 'groups/' + $workspaceid + '/lhdatamarts/' + $sqlendpoint + '/takeover' 
   write-host $url 
   Invoke-PowerBIRestMethod -Url $url -Method Post -Body ""-Verbose 

And check if it hit any following limitations:

vyiruanmsft_0-1730187108458.png

Best Regards

View solution in original post

3 REPLIES 3
Jameopw
Frequent Visitor

I am not the owner of the lakehouse, but I am the only user in the workspace and have full admin rights. Looking at other forum questions, it could be the lakehouse ownership that's causing problems.

These are my current permissions for the lakehouse: 

Jameopw_0-1730106497363.png

 

The error details are only as follows unfortunately. 

Jameopw_1-1730107385928.png

When I follow the 'Help' link, it takes me here: https://learn.microsoft.com/en-us/fabric/data-warehouse/troubleshoot-synapse-data-warehouse

 

 

Anonymous
Not applicable

Hi @Jameopw ,

Please take over SQL endpoint using Powershell scripts:

 # Install the Power BI PowerShell module if not already installed 
   Install-Module -Name MicrosoftPowerBIMgmt 

 # Import the Power BI PowerShell module 
   Import-ModuleMicrosoftPowerBIMgmt 

 # Connect to the Power BI service using the new owner credentials and take over the SQL Endpoint

   $workspaceid = "xxx"
   $sqlendpoint = "xxx"

   Connect-PowerBIServiceAccount

   $url = 'groups/' + $workspaceid + '/lhdatamarts/' + $sqlendpoint + '/takeover' 
   write-host $url 
   Invoke-PowerBIRestMethod -Url $url -Method Post -Body ""-Verbose 

And check if it hit any following limitations:

vyiruanmsft_0-1730187108458.png

Best Regards

Anonymous
Not applicable

Hi @Jameopw ,

Base on your description, it seems to be a permission issue. Could you please provide the following info for further trouleshooting?

  • Are you the owner of lakehouse currently? It need both read and write permissions.
  • Are you a member or admin role in your Fabric workspace?
  • Please provide the error message details in below screenshotvyiruanmsft_0-1730103060121.png 

Best Regards

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.