Dear Team,
We are getting the below error while testing the flow with SQL Premium connector with Executestoredprocedure(V2).
Its giving other error it is not due to the data type difference in the parameter. Error message is also misleading and we are not able to proceed further.
Error :
Solved! Go to Solution.
Hi @selvarathinam ,
This is a general issue that input parameters can only be recognized as text when testing, which cause the test error. The workaround is to use int() function to wrap that parameter to convert input text to number, then the test can keep going.
However, when the flow is in actual running, the input parameter types can be correctly identified.
Hope this helps.
Sik
Hi @selvarathinam ,
This is a general issue that input parameters can only be recognized as text when testing, which cause the test error. The workaround is to use int() function to wrap that parameter to convert input text to number, then the test can keep going.
However, when the flow is in actual running, the input parameter types can be correctly identified.
Hope this helps.
Sik
I've been using flows calling stored procedures for quite a long time. And this issue was grating on me enough to open a ticket with Microsoft. The test harness for flow with regards to PowerApps "Ask PowerApps" parameters is super, super basic. Unlike other triggers, Power Automate's test function does not understand what type of input you are looking for (even though it's clear in the trigger JSON definition), so it just gives you a basic text box and treats everything as as string. Hopefully they will fix in the future, but this is how it is today.
We have a couple of options to deal with this:
1) Test your flow by entering the literal value you want to test directly into the Execute Stored Procedure test, until you know that it works. Then replace with the Ask in PowerApps parameters and then add to your app in PowerApps.
2) Another alternative is to create a basic Power App stub for testing your stored procs. I prefer this method. I add whatever input controls I need to pass the parameters to the flow, add a button to call it and other controls to view the results. Then when all is working as expected, I add it to my "real" app.
It's super frustrating to have to use these "workarounds" for a product that is supposed to save so much time, kind of ironic.
Hope this helps.
Mike
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.
User | Count |
---|---|
190 | |
70 | |
50 | |
38 | |
28 |
User | Count |
---|---|
243 | |
114 | |
91 | |
91 | |
71 |