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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
christ0pher
New Member

Automate refresh is failing on websource with http error 499

Hello,

 

we are using a web source in PowerBI to fetch data from our own web service. Apparently the refresh fails when we use PowerBI Service. On our server, I see that PowerBI is closing the connection prematurely. This leads to the error code 499 (Client Closed Connection) and the refresh fails.

If we use PowerBI Desktop the refresh works perfectly. If we manually refresh the dataset in PowerBi service it works perfectly.

 

We request the webserver several thousand times. Basically there is a function that requests data for a specific time with some parameters from the webserver. The function is called for every row for every day for the complete last year 2019 and for every day in the current year. The data is returned as CSV.

 

The error from the PowerBi refresh:

Fehler bei der Datenquelle:{"error":{"code":"ModelRefresh_ShortMessage_ProcessingError","pbi.error":{"code":"ModelRefresh_ShortMessage_ProcessingError","parameters":{},"details":[{"code":"Message","detail":{"type":1,"value":"There were more columns in the result than expected."}}],"exceptionCulprit":1}}} Table: Products - Feed.
Cluster-URI:WABI-NORTH-EUROPE-redirect.analysis.windows.net

 

Can anyone point me in the right direction to fix this?

 

Thanks!

Chris

1 ACCEPTED SOLUTION
V-lianl-msft
Community Support
Community Support

Hi @christ0pher ,

 

Have you successfully configured the gateway?

https://docs.microsoft.com/en-us/power-bi/connect-data/service-gateway-onprem 

https://docs.microsoft.com/en-us/power-bi/connect-data/service-gateway-onprem-tshoot 

You can also refer to this blog:Web.Contents(), M Functions And Dataset Refresh Errors In Power BI 

 

Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
V-lianl-msft
Community Support
Community Support

Hi @christ0pher ,

 

Have you successfully configured the gateway?

https://docs.microsoft.com/en-us/power-bi/connect-data/service-gateway-onprem 

https://docs.microsoft.com/en-us/power-bi/connect-data/service-gateway-onprem-tshoot 

You can also refer to this blog:Web.Contents(), M Functions And Dataset Refresh Errors In Power BI 

 

Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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