Hi
I'm building a chat bot in Teams. Bot gets user's Email address from user and supply it to the Flow.
The Flow runs a Stored Procedure (SQL Server), supply the email address and gets Employee Number back (string). One record returns back by the Stored Procedure. This employee number is then returned back to the bot. The bot displays the number to the user.
I'm getting the following error on "Return value(s) to Power Virtual Agents"
ActionResponseSkipped. The execution of template action 'Return_value(s)_to_Power_Virtual_Agents' is skipped: the client application is not waiting for a response from service.
I'm getting this error while doing a Test in Flow. Also, I'm not getting any error in the bot, it is just empty value returned.
Stored Proc is returning the right data for the given email.
The flow looks the following:
The results from SP is passed along to Compose
The expression (above) in Compose is: outputs('SP_GUI')?['Table1']?[0]?['EmployeeGUI']
Finally, results of Compose output is returned as
Any suggestions is appreciated.
Solved! Go to Solution.
You are not getting anything back because the code you are using in the compose is returning a null value. Looking at the JSON you are using below it should be
body('SP_GUI')?['resultsets']?['Table1'][0]?['EmployeeGUI']
You are using the Test link in the flow right? If so then it bypasses the response because the Chatbot didn't actually call the flow. To test the response make sure you test by invoking the chatbot.
Hi
First thanks for a very prompt reply, appreciated.
I did mentioned in my question that no "value" is returned to the bot and no "error" returned to the bot. It's just empty.
While testing the flow, I see data returned by SP, however, an error (as mentioned) too.
Kind regards
As I mentioned, some of this is dependent on what you mean by "testing". If you are running a test in Power Automate nothing will be returned. That is what I thought you were doing and that is where we normally see this error. If you are running a test in the bot then check the run in Power Automate and see what the output of your Compose looks like. Make sure its a string and not an array.
Could you also include a sample of the output returned from the Compose.
Hi Pstork1
I was able to get output from all but the compose (see the screenshot for compose below).
When I click on "Click to download" there is nothing coming up, just a blank webpage.
Please advise.
Kind regards
Did you mean
You are not getting anything back because the code you are using in the compose is returning a null value. Looking at the JSON you are using below it should be
body('SP_GUI')?['resultsets']?['Table1'][0]?['EmployeeGUI']
Thanks Pstork1,
It now works 🙂
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
User | Count |
---|---|
30 | |
29 | |
29 | |
21 | |
11 |