web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Credentials are missin...
Power Apps
Answered

Credentials are missing or not valid. inner exception. credentials provided for SQL invalid

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

 

Hi All,

I am trying to make a connection to on premise database with windows credintials with no luck. It fails with this message.

 

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

 

I set up an SQL User and used basic and was was able to connect.

Any help for why Windows account is not working with flow

Using the same windows account I did not have any issues with SSMS on premise.

the Windows account was used to create the database,  add the table and the SQL user that works with flow .

 

thanks

 

Mark.

 

Categories:
  • v-yamao-msft Profile Picture
    Microsoft Employee on at

    Hi MarkMc,

     

    It seems that you are not providing the correct credentials.

     

    When creating the connection to SQL Server On-Premise, you will be asked to type or paste the server name, the database name, the user name, and the password for the database that you want to use, and specify the authentication type and the gateway.

     

    I am using Windows authentication type on my side, I can create the connection successfully.

     

    Please take this doc for a reference and try again on your side:
    https://powerapps.microsoft.com/en-us/tutorials/connection-azure-sqldatabase/

     

    Best regards,
    Mabel Mao

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    the creditials are correct this is not a solution

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    was this ever resolved? i am experiencing the same issues.

  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    it was and I put it down to a learning experience of stuff running on the Power Bi service and connecting with your on-premise gateway

    it takes a while to get it's s**t together as it eventually worked the next day.

     

    Same user and password connecting to the same server.

  • duncfair Profile Picture
    54 on at

    I am getting the same error with the Basic authentication and can 100%, positively verify that the credentials are correct as I set up the SQL login and user myself and verified that it through SSMS.

  • marcoselias Profile Picture
    22 on at

    I know your issue eventually got fixed by itself but I was having the same or similar issue and below is how I fixed it in case this helps someone else:

     

    1. Go to the connections menu

    2. On your connection, click on the ellipsis menu and select 'Edit'

    3. Review and update the information there. You may need to scroll down a little to see the login/password input boxes.

  • duncfair Profile Picture
    54 on at

    My issue has not been resolved. The Gateway keeps failing to log-in to the database, even though the same credentials can be used to connect successfully through SSMS.

  • RJY Profile Picture
    8 on at

    I was able to fix this by adding the domain before my username.  Go into Data\Connections, find your connector and edit, add your domain\user and pass.  Make sure the on-premise-gateway that you select has the right user/pass under services too.

  • NikitaDeshwal Profile Picture
    8 on at
    Credentials are missing or not valid.
    inner exception: The credentials provided for the SQL source are invalid. (Source at laptop-pop1bchs;master.)
    clientRequestId: 20558ffe-7bab-493a-80bd-99330be47dde
    Facing the above error while connecting to SQL Server even if the credentials are correct. And can connect to SSMS with the same credentials.
  • NikitaDeshwal Profile Picture
    8 on at
    Credentials are missing or not valid.
    inner exception: The credentials provided for the SQL source are invalid. (Source at laptop-pop1bchs;master.)
    clientRequestId: 20558ffe-7bab-493a-80bd-99330be47dde
    Facing the above error while connecting to SQL Server even if the credentials are correct. And can connect to SSMS with the same credentials.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 382 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 329

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard