Forum Discussion
Handling datasource errors
Hi mirajvsen
How does this error happen? What steps have you done?
Do you use Windows credentials or SQL login to connect to the target SQL Server from Power BI Desktop?
You could follow steps in the blog to configure SQL Server to allow remote connections.
Best Regards
Maggie
Hi v-juanli-msft,
Thank you for the response...
I understand that this error is caused due to a connectivity issue and I would like this to be handled using a "try" or some other method that exists in power BI.
My idea is to use the same power BI desktop file in different networks.
Please have a look at the following:
| DataSource | Domain |
| Source1 | Domain1 |
| Source2 | Domain1 |
| Source3 | Domain1 |
| Source4 | Domain2 |
| Source5 | Domain2 |
| Source6 | Domain2 |
I have an append query which will append the results from all the above mentioned datasources.
The issue is,
When I am in Domain1 and I refresh the power bi file, the append query tries to refresh all the datasources and the refresh fails for the datasources created in Domain2 and whole refresh process fails, because there is no connectivity to the sources in Domain2.
Is there a way to overcome this situation by either configuring the power bi desktop to ignore the errornious sources in the append query or handle the error using a "try" or any other methods?