cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Kudo Kingpin
Kudo Kingpin

Azure SQL ApiExecutionFailed

Hi,

I'm having a weird error trying to connect to an Azure SQL DB. Anyone has a clue ?Capture.PNG

  • that connexion can retrieve data from PowerApps
  • the user can run the stored procedure from SSMS
  • the user can see the stored procedure using sys.procedure
  • the error happens even with a db_owner login
  • the error occurs even with no firewall rules on the server and the DB (which I could have eleminated as an error source with the fact it can retrieve table data directly from Power App)
  • A similar error occurs when I try pasting an EXEC statement in a simple SQL Query component, but not when I use a Get Rows

Help ? Smiley LOL

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Kudo Kingpin
Kudo Kingpin

Re: Azure SQL ApiExecutionFailed

Ok, I've isolated the problem. And the issue kinda made sense. 

The procedure contained a query where two fields had the same name (yay for naming conventions). SSMS didn't have any problem with that, Flow did. Solution : just aliased my fields in the SELECT statement and everything is fine.

 

Hope this helps others!

View solution in original post

2 REPLIES 2
Highlighted
Kudo Kingpin
Kudo Kingpin

Re: Azure SQL ApiExecutionFailed

The error also applies to LogicApps...

Highlighted
Kudo Kingpin
Kudo Kingpin

Re: Azure SQL ApiExecutionFailed

Ok, I've isolated the problem. And the issue kinda made sense. 

The procedure contained a query where two fields had the same name (yay for naming conventions). SSMS didn't have any problem with that, Flow did. Solution : just aliased my fields in the SELECT statement and everything is fine.

 

Hope this helps others!

View solution in original post

Helpful resources

Announcements
firstImage

Super User Program Update

Three Super User rank tiers have been launched!

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

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

Users online (6,067)