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

Getting err 'The key didn't match any rows in the table' when running stored proc on-prem SQL Server

Hello,

 

We have an on-premise SQL Server 2012 SP3 database which has an insert stored proc which we are trying to run from Flow.
When we run the stored proc we get error 'The key didn't match any rows in the table'.

There are unique keys which are autogenerated and work properly.  We have tested and used this stored proc hundreds of times outside of flow.

The permissions to access SQL Server appear to be ok as we have gone into SQL Profiler and confirmed Flow is hitting the db. We can see activity going against Sys tables to get the param info on stored procs.

We have also created a second, simpler stored proc with no parameters (just to test the params are not the issue) and that is getting the same error message.


We'd really like to use PowerApps and Flow with our on-prem SQL Server but there are constant roadblocks: cannot do inserts against views, can't have auto inserts/updates/deletes against tables with triggers so need to use stored procs. Now trying to use stored procs and getting errors. Hope someone can help!


Any help sincerely appreciated.

 

 

Thanks,

Dan

6 REPLIES 6
Community Support Team
Community Support Team

Re: Getting err 'The key didn't match any rows in the table' when running stored proc on-prem SQL Se

Hi @lesotho72,

 

Could you please share a screenshot of the configuration of your flow?

Could you please share more details about your requirement and the issue?

 

Please share more details so we would try to provide a proper workaround for you.

 

Best regards,

Alice

lesotho72
Level: Powered On

Re: Getting err 'The key didn't match any rows in the table' when running stored proc on-prem SQL Se

Hi Alice,

Thanks for your response.  More details:
(1) Our goal is to use PowerApps to write data to an On-Premise SQL Server database.  Leveraging Gateway to accomplish this.  Would prefer to just use PowerApps to do this but read that you cannot have a table with a trigger automatically work with insert/updates/deletes in PowerApps.  So, the workaround (that we read about) is to use Flow to run an insert stored proc.

(2) Technical screenshots including Gateway, Flow and error message are displayed below.

 FlowIssues.PNG

 

Thanks,
Dan

Administrator
Administrator

Re: Getting err 'The key didn't match any rows in the table' when running stored proc on-prem SQL Se

Hello, @lesotho72!

Thank you for posting a reply to a topic on the Microsoft Flow Community! It appears that the users who you have been engaging in this thread with are now awaiting your reply! Please follow-up on this thread ASAP.

Thank You!

-Gabriel

Microsoft Flow Community Manager

-Gabriel
Microsoft Flow Community Manager
lesotho72
Level: Powered On

Re: Getting err 'The key didn't match any rows in the table' when running stored proc on-prem SQL Se

@v-yuazh-msft - Please see my response with more details above.  Apologies for not tagging you in that post for review.

Please let me know if additional details are required.

 

Thanks,

Dan

Ranjani
Level: Powered On

Re: Getting err 'The key didn't match any rows in the table' when running stored proc on-prem SQL Se

I m getting same error while running SQL on premise ,Storeprocedure in microsoft flow . can you please share the solution 

 

 

 

Highlighted
Administrator
Administrator

Re: Getting err 'The key didn't match any rows in the table' when running stored proc on-prem SQL Se

Hello, @v-yuazh-msft!

Thank you for posting a reply to a topic on the Microsoft Flow Community! It appears that the users who you have been engaging in this thread with are now awaiting your reply! Please follow-up on this thread ASAP.

Thank You!

-Gabriel

Microsoft Flow Community Manager

-Gabriel
Microsoft Flow Community Manager

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020

thirdimage

Flow Community User Group Member Badge

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

fifthimage

Microsoft Learn

Learn how to build the business apps that you need

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Users Online
Currently online: 43 members 4,932 guests
Please welcome our newest community members: