Forum Discussion
abhi9255
Advocate II
8 years agoHow to set command timeout option
My query is taking more time to refresh and when i refresh im getting command timeout error . So i need to set command timeout option in Power BI desktop but it is disabled at the moment how to enab...
- 8 years ago
Hi abhi9255,
For SQL database, we can change the command timeout in Advanced options of Data source settings directly.
And here is the M code for your reference.
let Source = Sql.Databases("Servername", [CommandTimeout=#duration(0, 0, 35, 0)]), TestGatewayDocs = Source{[Name="databasename"]}[Data], dbo_Product3 = databasename{[Schema="dbo",Item="Product3"]}[Data] in dbo_Product3Regards,
Frank
v-frfei-msft
Community Support
8 years agoHi abhi9255,
For SQL database, we can change the command timeout in Advanced options of Data source settings directly.
And here is the M code for your reference.
let
Source = Sql.Databases("Servername", [CommandTimeout=#duration(0, 0, 35, 0)]),
TestGatewayDocs = Source{[Name="databasename"]}[Data],
dbo_Product3 = databasename{[Schema="dbo",Item="Product3"]}[Data]
in
dbo_Product3
Regards,
Frank
Anonymous
7 years agoNot applicable
Hi, v-frfei-msft
I keep getting scheduled refresh fails due to
Before the data import for (Data Source Name) finished, its data source timed out.
Why is there no option like this for PBI desktop for other sources like excel?