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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Noak
Helper IV
Helper IV

Data Refresh Error

Hi ,

My organization is working with SQL Server pbi connection.

It was a rough journey to integrate SQL Server with pbi , last week we succeed to do it and then got this error while refreshing data:

 

 

 

 

 

Capture.PNG

 

 please help.

BR,
Noa.
1 ACCEPTED SOLUTION

Hi @Noak, if it is always getting to the same amount of rows then it could possibly be a timeout on the SQL Server side? Or somewhere inbetween.


I am sure that the SQL Engineer will be able to check the code and possibly add indexes to make the query return faster?





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

View solution in original post

9 REPLIES 9
v-shex-msft
Community Support
Community Support

Hi  @Noak,

 

Can you share some detail information to help us clearly know your issue?


For example:


1. Database type(SQL Server, SSAS, or other type of sql?)

2. Connect mode(Import, directQuery, liveconnection?)

3. Refresh type(manually or scheduled refresh?)

 

In addition, can you share some screenshots of your dataset? It will be help to know the connection state of gateway.(you can find it at Settings -> Dataset)

 

Capture.PNGCapture2.PNG

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Hi @v-shex-msft,



1. Database type(SQL Server, SSAS, or other type of sql?) SQl Server

2. Connect mode(Import, directQuery, liveconnection?) Import

3. Refresh type(manually or scheduled refresh?)Manually & Schadualed

 

I removed the gateway an reinstall it , the data succeed to refresh 2/3 times and then again I'v got an error please via screen shots:

 

 

 cloud.PNGcloud2.PNG

BR,
Noa.

Hi @Noak, it appears that you are getting timeouts, which would be consistent as to why it sometimes works and then other times it does not work.

 

You would need to ensure that connectivity is fast enough from the Power BI Service, to where you have installed the Data Gateway?

 

As well as how much data you are returning, and how efficient your SQL Query is to import the data. Those could all affect why it is timing out.

 

One way to test is when there are few people in the office, and see if you manually refresh if that is successful? If it is, then it can indicate that during the data there is not enough bandwidth to refresh?





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

Hi @GilbertQ@v-shex-msft

2 days ago the data succeed to refresh , yasterday same error again.

We are looking now at the SQL Code , I have a question:

when the data refresh is it refresh all the data from the start or the "delta" I mean adding new/modified records only.

 

waiting for your reply .

 

BR,

NOA.

BR,
Noa.
Baskar
Resident Rockstar
Resident Rockstar

No , It will get the entire record .

 

This is not incremental refresh concept.

 

when ever the gateway runs it will load the entire data .

Hi @Noak, when you refresh by design it currently will refresh all the data.

 

The other question then is with regards to your SQL Code.

 

If you have to take your SQL Code and run it on the actual SQL Server, how long does it take to complete?

 

That is the only outstanding thing I can think of where it is is potentially a very busy SQL Server system or the SQL Code is not as efficient as it can be. Which is causing the results to take a long time to be returned? Or the volume of data is quite large, which is causing the data to take longer than the timeout period to complete?

 

And finally see the image below where you can specify the command timeout (In Minutes). I would first run it on the SQL Server to get an expected time for the query to complete. And then adjust the command timeout as shown below to be longer than what it actually took.

 

Power BI - SQL Server Database Screen with Command Timeout.png

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

Hi @GilbertQ,
thank you for your reply.


I changed the comant timeout to 20 minutes and the refreshing is working until it gets to 900,000 rows. At that point it stops. and doesn't send any error - just stops (like it finished but it didn't there ar more rcords to update).

I know the pbi can refresh up to 100 million records.
I asked our SQL engineer to look at the code, what do you think is the reason for this simultaneous stopping?

 

BR,

Noa.

BR,
Noa.

Hi @Noak, if it is always getting to the same amount of rows then it could possibly be a timeout on the SQL Server side? Or somewhere inbetween.


I am sure that the SQL Engineer will be able to check the code and possibly add indexes to make the query return faster?





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

Hi @GilbertQ ,
we tried to manually refresh during the weeknd (0 people in the office) still got the same error.
.
BR,
Noa.

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors
Top Kudoed Authors