cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
liamgsmith
Level: Powered On

Credentials are missing or not valid. Inner exception: the credentials provided for the SQL source are invalid

Hi All,

 

Just getting started with PowerApps.

 

Created an Azure SQL db two days ago and can connect to it via SMSS. (opened single IP access). No other changes to default db suggestions.

 

Go into PowerApps, try to create new Connection and get the error in the subject.

 

Pretty sure the details are correct given I can connect to it via SMSS.

 

Any ideas what I've missed?

Cheers,

Liam

1 ACCEPTED SOLUTION

Accepted Solutions
liamgsmith
Level: Powered On

Re: Credentials are missing or not valid. Inner exception: the credentials provided for the SQL source are invalid

Can confirm there are no other steps required.

 

Realised that the db prefix I'd tried to use had not been accepted, and I'd gotten mixed up with server and db name

 

All sorted!

View solution in original post

4 REPLIES 4
Community Support Team
Community Support Team

Re: Credentials are missing or not valid. Inner exception: the credentials provided for the SQL source are invalid

Hi @liamgsmith 

 

Is this your first time trying to connect your SQL server on-premise to PowerApps? If so, please make sure that you have gone through below articles:

https://powerapps.microsoft.com/en-us/tutorials/connection-azure-sqldatabase/

https://blogs.msdn.microsoft.com/suvidha/2017/01/03/powerapps-with-sql-server-on-premises-using-the-...

 

Please check the following things.

1. Please make sure your database engine is configured to accept remote connections.
2. Please make sure that you create an exception on the firewall for the SQL Server instance and port you are using.
3. Please check if your SQL server services is up and running properly.
4. Please make sure that you enable TCP/IP in SQL Server Configuration

 

Regards,

Mona

 

 

 

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
liamgsmith
Level: Powered On

Re: Credentials are missing or not valid. Inner exception: the credentials provided for the SQL source are invalid

Hi Mona,

 

I'm using Azure SQL DB, not on prem, that's why this is so weird. The error occurs at Step 5 auth for cloud.

 

Are there any other steps for a Azure SQL db for it to work with PowerApps? There is nothing listed in any document anywhere I can find.

 

I've checked and I have a Business Essentials license assigned, with PowerApps, so I don't think it's licensing.

 

Any ideas?

liamgsmith
Level: Powered On

Re: Credentials are missing or not valid. Inner exception: the credentials provided for the SQL source are invalid

Can confirm there are no other steps required.

 

Realised that the db prefix I'd tried to use had not been accepted, and I'd gotten mixed up with server and db name

 

All sorted!

View solution in original post

PAUser70
Level: Powered On

Re: Credentials are missing or not valid. Inner exception: the credentials provided for the SQL source are invalid

Hi Mona,

 

The on prem. gateway that mentioned here would it be the same that if I installed one for my Power BI, can both Power BI and PowerApps share the same gateway??

 

My error read like this:
"message": "Credentials are missing or not valid.\r\n inner exception: The credentials provided for the SQL source are invalid. (Source at wfapdb11;PWT_WFA_Development.)\r\nclientRequestId: c85b60a0-57f7-4af5-ac61-a76e4e738489",

Helpful resources

Announcements
Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Join THE global Microsoft Power Platform event series

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Microsoft Business Applications Virtual Launch

Join us for the Microsoft Business Applications Virtual Launch Event on Thursday, April 2, 2020, at 8:00 AM PST.

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (9,673)