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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
SoniaB102
Frequent Visitor

Unable to automoatically refresh our datasets using gateway when connecting to our MSSQL database

 

For 5 months our datasets do not refresh automotically and still cannot work out why and neither can Microsoft IT support.  Just wondering if anyone is experieincing the same issues and has any suggestions?   We get different reasons for the datasets not refreshing (some details below).  There seems to be no pattern with which dataset does not refresh and the time at which they do not refresh.   It could be 2 that don't refresh each morning or all 12 do not refresh.  One day within the last 3 months we had all refresh successfully (it was a great day!)

 

We have tried:

  • Configuring another Gateway in the same Domain and adding some datasets to it
  • Scheduling the refresh for different data sets at different timings where there will be no collisions occur between the refreshes
  • Reducing the amount of data on the large datasets
  • Getting gateway logs and attempting to decyfer them
  • Optimizing our SQL views, however they all run in less than 1 minute when querying directly within the database

Most popular error message: 

 

An error happened while reading data from the provider: 'A transporters error has occurred when receiving results from the server. (provider: TAP Provider, error: 0 - An existing connection was forcibly closed by the remote host.

 

Other error message:

Underlying error messageMicrosoft SQL: Protocol error in TDS stream
DM_ErrorDetailNameCode_UnderlyingHResult-2147467259
Microsoft.Data.Mashup.ValueError.ReasonDataSource.Error

 

Has anyone else experienced something similar?

 

I have been manually refreshing the datasets when I get in and they work after 1 or 2 goes but this is not a permanent solution.

 

Also, has anyone ever tried to build something that would keep refreshing datasets over and over until dataset successfully refreshed?

 

2 REPLIES 2
SoniaB102
Frequent Visitor

For the last 5 months we have been unable to refresh our datasets each morning using Scheduled refresh and our on premise Gateway.  Our datasets mostly pull information from our MSSQL database where I have created Views especially for PowerBI.  There is around 12 datasets and there appears to be no pattern as to which one does not refresh on a particular day or time. There eappears to be no pattern in the number of datasets that do no automatically refresh either.

 

We have tried the following:

  • Scheduling the refresh for different data sets at different timings where there will be no collisions occur between the refreshes
  • Configuring another Gateway in the same Domain and add some datasets to it
  • Reducing the data in the larger datasets
  • Testing all views directly in the database where they all run in less than 1 minute
  • Trying datasets where there are not too many calculations in PowerBI 

Regardless of the above, the 12 datasets do not refresh daily as scheduled.   My workaround is to manually refresh the failed datasets each morning and they will evvenutally refresh after 1 - 3 attempts.

 

Here are the most common error messages we receive:

 

An error happened while reading data from the provider: 'A transport-level error has occurred when receiving results from the server. (provider: TCP Provider, error: 0 - The semaphore timeout period has expired.)'

 

Microsoft SQL: Protocol error in TDS stream

 

 

Just wondering if anyone else has experienced similar problems and came up with a solution?

 

Secondly, has anyone ever build something that will automotically keep attempting to refresh a failed refresh over and over until is successfully refreshes?

 

Anonymous
Not applicable

Hm.. wrong form 🙂 but ... I've seen the error in the past on unperformant view or queries or when the query wants to run, there is a lock on the table (e.g. index maintanence).

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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