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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
Anonymous
Not applicable

Data refesh nor working

Power BI service refresh is giving me an error. Working with power BI desktop refresh works, then I upload to service, and refresh works fo ne day and thn crashed. Why is that? I dont eget the error:

 

Data source error: [ValidateMarkupTags]{"error":{"code":"DM_GWPipeline_Gateway_MashupDataAccessError","pbi.error":{"code":"DM_GWPipeline_Gateway_MashupDataAccessError","parameters":{},"details":[{"code":"DM_ErrorDetailNameCode_UnderlyingErrorCode","detail":{"type":1,"value":"[ccon]-2147467259"}},{"code":"DM_ErrorDetailNameCode_UnderlyingErrorMessage","detail":{"type":1,"value":"[ccon]Funkcja Web.Contents cannot get content from „https://sheets.googleapis.com/v4/spreadsheets/xxxxx-M?fields=sheets/properties,namedRanges”  (502): Bad Gateway[/ccon][/ccon]"}},{"code":"DM_ErrorDetailNameCode_UnderlyingHResult","detail":{"type":1,"value":"-2147467259"}},{"code":"Microsoft.Data.Mashup.ValueError.DataSourceKind","detail":{"type":1,"value":"GoogleSheets"}},{"code":"Microsoft.Data.Mashup.ValueError.DataSourcePath","detail":{"type":1,"value":"[ccon]://docs.google.com/spreadsheets/d/xxxxxxx-M/edit?usp=sharing[/ccon ]"}},{"code":"Microsoft.Data.Mashup.ValueError.Reason","detail":{"type":1,"value":"DataSource.Error"}},{"code":"Microsoft.Data.Mashup.ValueError.Url","detail":{"type":1,"value":"[ccon]://sheets.googleapis.com/v4/spreadsheets/xxxxxxxxxxx-M?fields=sheets/properties,namedRanges[/cc... ]"}}],"exceptionCulprit":1}}} Table: Goals.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Thanks a lot, yes it was indeed Gsheets error - there was a typo in a link connected to gateway

View solution in original post

2 REPLIES 2
rajendraongole1
Super User
Super User

Hi @Anonymous -The error you are encountering during the refresh of your Power BI report in the service, but not in the desktop, seems to stem from the Google Sheets data source you are using.

The error message indicates that Power BI's Web.Contents function is unable to fetch content from Google Sheets via the API URL (https://sheets.googleapis.com/v4/spreadsheets/...) due to a 502 Bad Gateway error. This is a common error that occurs when there is an issue with the server communication between Power BI and Google Sheets.

Monitor your API quota usage in the Google Cloud Console and consider adjusting the refresh frequency to avoid hitting these limits.

Reauthenticate your Google Sheets data source in Power BI Service by updating the credentials.

Re-authenticate the Google Sheets data source: Go to Settings > Datasets > Select the dataset > Data Source Credentials > Reauthenticate.

Check Google Sheets API usage: Monitor the API rate limits in your Google Cloud Console.

 

sort the above mentioned points, hope it helps.

 

 

 





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

Proud to be a Super User!





Anonymous
Not applicable

Thanks a lot, yes it was indeed Gsheets error - there was a typo in a link connected to gateway

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

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.