Forum Discussion
Error: We couldn't connect to your DirectQuery data source
I am connecting to a PostGres database through a Transport connection. I am able to connect to the server and see the tables in the database. I am able to select a table and see a preview of the data. I am using a DirectQuery connection. Once I hit the load button to bring the table into PowerBI I receive the above error. I am able to see the table in the Model View but not the Report View. Any action that works with the model throws the same error again. Any ideas as to the cause of the error?
6 Replies
- AnonymousNot applicable
Hi septagon77 ,
Double-check that your server and database names are correct and that you have access to them.
1. Check that all data models have been imported into Power BI. If there is a Direct Query data model in the report, the local computer should have access to the data source.
2. Try opening a new powerbi desktop and clearing the data source permissions.Then, reopen and reconfigure your pbix file. Ensure that your local machine has access to your data source.
If your Current Period does not refer to this, please clarify in a follow-up reply.
Best Regards,
Clara Gong
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- septagon77Regular Visitor
Clara,
Thank you for the reply, but perhaps you did not understand the problem. The database credentials are correct and my desktop can access the data source. I cannot interact with any tables imported into the model without throwing an error. As a result no objects from the Model view are available to use in the Report view therefore I cannot build a report. I have tried both options of Import or DirectQuery. Both fail.
- AnonymousNot applicable
Hi septagon77 ,
the PostgresSQL connector doesn't work out of the box, you need to do quite a few things first
1. Install Npgsql which allows .NET access to PostgresSQL. It can be installed using the Pakagae Administrator Console in Visual Studio; detailed instructions are here: https://www.nuget.org/packages/Npgsql/
You need to connect over SSL to AWS which isn't setup by default (on my Windows 10 machine anway)
2. Download the AWS public key from here https://s3.amazonaws.com/rds-downloads/rds-combined-ca-bundle.pem
3. Convert that to a certificate using https://www.sslshopper.com/ssl-converter.html (convert to PKCS#7/P7B)
4. Import that certificate to the Trusted Room Certificate described here http://www.cs.virginia.edu/~gsw2c/GridToolsDir/Documentation/ImportTrustedCertificates.htm
Finally, you can try setting up an ODBC connection.
Best Regards,
Clara Gong
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.