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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
QuentinCrouzard
New Member

Data issue from PBI Desktop to web

Hello,

I have an issue with my data. When I am on my Power BI Desktop application, all my charts and tables display correctly. However, when I publish the app to the web, the elements that are based on data from a SQL Server database connected via DirectQuery do not display. I get the following error message:

 

Sorry, there was an error retrieving data for this visual.

Unable to extract data for this visual. Please try again later.

Try again later or contact support. If you contact support, please provide this information.

 

Do you have a solution for me, please?

Thank you for your help.
Quentin

 
1 ACCEPTED SOLUTION

The only needs is that the gateway has access to the server on which SQL server is installed and access to Power BI services (depending on your company, some ports will have to be open)

 

The first thing you can try, is to use a personnal gateway (your laptop will be used as a gateway), it is easier to deploy 

Let me know if you can use the personnal gateawy, then i could guide to set up an enteprise gateway

View solution in original post

4 REPLIES 4
v-hashadapu
Community Support
Community Support

Hi @QuentinCrouzard , Thank you for reaching out to the Microsoft Community Forum.

Please let us know if your issue is solved. If it is, consider marking the answers that helped 'Accept as Solution', so others with similar queries can find them easily. If not, please share the details.
Thank you.

Cookistador
Super User
Super User

Did you set up a data gateway?


Direct query needs an acces to your sql server (on premise)

Without gateway, the conneciton is not possible, it is the same if you try to refresh a report in import mode using SQL Server as data source

Thanks for ur answer.

I installed a gateway this morning, but I'm still getting the same errors.
The SQL database I am connected to in the Desktop app is on a remote desktop. Do I need to install the gateway on this remote desktop?

I'm a beginner with this topic and I don't fully understand how it all works.

Thank you.

The only needs is that the gateway has access to the server on which SQL server is installed and access to Power BI services (depending on your company, some ports will have to be open)

 

The first thing you can try, is to use a personnal gateway (your laptop will be used as a gateway), it is easier to deploy 

Let me know if you can use the personnal gateawy, then i could guide to set up an enteprise gateway

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI 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!

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 Solution Authors