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

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
Kudo Kingpin
Kudo Kingpin

The error also applies to LogicApps...

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
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Users online (4,402)