Forum Discussion
Anonymous
2 years agoNot applicable
Cannot refresh a table in SSMS through xmla endpoint
I'm trying to refresh a table in Power BI dataset through XMLA endpoint in SSMS. I'm getting this error. "Stream does not support reading. The remote server returned an error: (400) Bad Request." The screenshot is the exact error message I see.
A few points:
- I can refresh this exact same table with fewer data, but when it's full data, it gives me the error.
- I'm using a sql native query for the table
Has anybody experienced this? What would be the cause?
Thanks in advance!
1 Reply
- pmreisMost Valuable Professional
Hi Anonymous
As you are able to refresh with a subset of data but not with the entire data, it seems you are experiencing a timeout. Here are a few things you can check:Power BI Service Timeout:
- In the context of Power BI Service, there are predefined timeout limits for various operations, and these cannot be changed by end-users. For instance, dataset refreshes in Power BI Service have specific timeout limits based on the type of source and the service tier you're on.
Power BI Desktop Query Timeout:
- In Power BI Desktop, you can adjust the timeout for specific data source queries.
- Go to File > Options and settings > Options.
- Under Current File, select Data Load.
- Adjust the Timeout value in minutes for the data source queries.
- Click OK.
- In Power BI Desktop, you can adjust the timeout for specific data source queries.
SQL Server Management Studio (SSMS) Timeout:
- If you're using SSMS to run queries or scripts:
- Open SSMS and connect to your database.
- Go to Tools > Options.
- Navigate to Query Execution > SQL Server > General.
- Adjust the Execution time-out value (in seconds). Setting it to 0 means queries won't time out.
- Click OK.
- If you're using SSMS to run queries or scripts:
Power BI Gateway Timeout:
- If you're using the On-Premises Data Gateway to refresh datasets in Power BI Service, there are configuration files where timeout settings can be adjusted. However, modifying these settings requires a good understanding of the gateway's configuration and can impact other datasets that use the same gateway.
Data Source Timeout:
- If you're connecting to a specific data source (like SQL Server), there might be timeout settings on the data source side that you can adjust. For instance, SQL Server has a Remote Query Timeout setting that defines how long a remote query will run before timing out.
Pedro Reis - Data Platform MVP / MCT
Making Power BI and Fabric Simple
If my response resolved your issue, please mark it as a solution to help others find it. If you found it helpful, please consider giving it a kudos. Your feedback is highly appreciated!
Find me at LinkedIn