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 Automate / Unable to insert row i...
Power Automate
Unanswered

Unable to insert row in SQL on premise

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I cannot insert a row in an on premise SQL database.

 

I get the following error: 

{
"status": 400,
"message": "The key didn't match any rows in the table.\r\n inner exception: The key didn't match any rows in the table.\r\nclientRequestId: 3cf2aec1-0c10-4f48-b6da-1710af2791cb",
"source": "sql-we.azconn-we.p.azurewebsites.net"
}

 

The gateways are upgraded to the latest version.

When I add the "insert row"-action, the database and its tables are being resolved.

There are no sql-triggers on the table. It's a simple table with just two columns.

 

I have an existing flow with an "insert row"-action to the same database and this one works fine, but each new flow that I create with this sql-action give me this error.

Categories:
I have the same question (0)
  • v-bacao-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous,

     

    I did a test on my side and didn't meet the issue you mentioned.

    Image reference:

    1.PNG

    For reference, when I configure the connection, the Authentication Type selected is Windows.

    Please use Windows authentication to configure the connection and try again and see if issue still exists.

     

    Best Regards,

    Barry

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi Barry,

    Authentication Type on my connection is already Windows.

    As I mentioned in my post, I have another flow which inserts rows to the same database without problems, this flow uses the same connection.

    Best Regards,

    Sam

     

  • v-bacao-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous,

     

    Perhaps you could consider configuring a new connection for this action and then giving the connection a new name.

    Please take a try again.

    Best Regards,

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at
    I already tried that, no success
  • martinav Profile Picture
    3,340 on at

    Having the exact same issue.  I have MANY SQL actions in other flows that are working.  I am trying to create new actions in a new flow (tried creating new twice) with the same ill result!

     

    @Anonymous , did you get a positive result?

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @martinav : I'm not sure, but I think that I've deleted the table, recreated it and that the error disappeared.

  • martinav Profile Picture
    3,340 on at

    Yea, that is what I normally do as well with cases similar to this.  In my case, even creating the flow again from nothing yeilded the same result!!

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Did you recreate the table on the sql-server?

  • martinav Profile Picture
    3,340 on at

    @Anonymous ,

     

    No, i do not have the ability to do anything with the tables.  They cannot be altered in any way because they are part of a purchased software system. 

     

    In fact, I am getting the same problem with actions I'm creating new from all tables and views I have tried from that same SQL instance.  BUT... I am using these tables in existing flows, and they are working.

     

    Of course, I will not be messing with those flows because I have had issues in the past that simply saving a flow during the time there was some sort of a Micorsoft issue with Flow was enough to kill the flow from subsequent execution.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 262 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 227

#3
Expiscornovus Profile Picture

Expiscornovus 225 Most Valuable Professional

Last 30 days Overall leaderboard