Showing results for 
Search instead for 
Did you mean: 
StephenM Advocate I
Advocate I

Error on SQL Power Query action

i'm trying to use the Transform SQL using Power Query action. i've got several flows with it working fine on one SQL database. But i am doing similar on another SQL db that i have a connector for. Note i'm an admin, full credentials and this db is already part of my gateway.


I can access the data and transform it using the transform SQL power query action just fine, but when it runs it fails with 


"resultType": "Exception",
"message": "The key didn't match any rows in the table.",
"errors": []
and the SELECT i have next says "BadRequest. The 'from' property value in the 'select' action inputs is of type 'Null'. The value must be an array." and "INPUTS from null"


looking on the web it seems to imply a permissions issue but (1) i am full admin with access, (2) it works fine through powerquery in Excel, (3) the db and table are all accessable via the gateway... 


so i'm stuck.  Any advice would be most welcome.




Community Support
Community Support

Re: Error on SQL Power Query action

Hi @StephenM,


I have made a test with action Transform SQL using Power Query, it works fine on my side.


It seems that you have two connections to two SQL databases.


Please make sure you are using the correct connection to the corresponding database. Please go to Setting to switch connection under My connections.



Best regards,



Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources


New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Automate Community!


Now Live: Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!


New & Improved Power Automate Community Cookbook

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


Power Automate Community User Group Member Badge

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


Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Users online (9,838)