Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hi all,
I am creating a dataset by introducing DirectQuery table(Employee Transaction).
The report is properly showed in dataset's report page:
However after I published the dataset to workspace, and connected the report to the dataset, there is a error happening :
I don't understand what the issue is. Could anyone help?
Thank you in advance!
Branko
Solved! Go to Solution.
Hi , @babyjb1979
Accoridng to your description, you connect to sql server using direct query mode in your Power Bi Desktop. And when you publish to Power Bi Service , you get an error code "DMTS_DatasourceHasNoCredentialError".
The error message "DMTS_DatasourceHasNoCredentialError" occurs when the data source credentials are not provided or are incorrect.You can tru to check this :
(1)If your data source is a local data source, then you need to check whether you have installed the gateway correctly and whether the gateway is online. (Because Power BI Service needs to install and download the local data gateway to connect to local data sources).
For more information, you can refer to :
On-premises data gateway - Power BI | Microsoft Learn
Install an on-premises data gateway | Microsoft Learn
Second, you need to create the corresponding data source definition credential information on the gateway, so that your gateway can connect to your data source.
Add or remove a gateway data source - Power BI | Microsoft Learn
And you need to make sure that your data source can be successfully connected in Power BI Serve.
(2)If you are connecting to your cloud sql server, you need to edit the credentials in "Data Source credential" in your dataset setting interface, and re-enter your credentials to connect to the data source.
In addition, you can also try to use Dataflow to test your connectivity with the Sql server.
For more information, you can refer to :
Creating a dataflow - Power BI | Microsoft Learn
Thank you for your time and sharing, and thank you for your support and understanding of PowerBI!
Best Regards,
Aniya Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hi , @babyjb1979
Accoridng to your description, you connect to sql server using direct query mode in your Power Bi Desktop. And when you publish to Power Bi Service , you get an error code "DMTS_DatasourceHasNoCredentialError".
The error message "DMTS_DatasourceHasNoCredentialError" occurs when the data source credentials are not provided or are incorrect.You can tru to check this :
(1)If your data source is a local data source, then you need to check whether you have installed the gateway correctly and whether the gateway is online. (Because Power BI Service needs to install and download the local data gateway to connect to local data sources).
For more information, you can refer to :
On-premises data gateway - Power BI | Microsoft Learn
Install an on-premises data gateway | Microsoft Learn
Second, you need to create the corresponding data source definition credential information on the gateway, so that your gateway can connect to your data source.
Add or remove a gateway data source - Power BI | Microsoft Learn
And you need to make sure that your data source can be successfully connected in Power BI Serve.
(2)If you are connecting to your cloud sql server, you need to edit the credentials in "Data Source credential" in your dataset setting interface, and re-enter your credentials to connect to the data source.
In addition, you can also try to use Dataflow to test your connectivity with the Sql server.
For more information, you can refer to :
Creating a dataflow - Power BI | Microsoft Learn
Thank you for your time and sharing, and thank you for your support and understanding of PowerBI!
Best Regards,
Aniya Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
User | Count |
---|---|
99 | |
87 | |
80 | |
76 | |
71 |
User | Count |
---|---|
112 | |
105 | |
96 | |
74 | |
66 |