I was working with my bot, and connecting to Flow to pull a row from Excel. Everything appeared to work and I can see no issue in trace process, but the bot errors out instead of proceeding to the next step. I am sure I will have many errors, is there a way to see the exceptions?
The error is happening in Flow so I would suggest if you get an error in Flow that you set an indicator in an an output variable returned to Virtual Agent. In Virtual Agent you can test the output value to see if an error has occurred and if so output a friendly response to the the bot user
That was my first thought as well, but the flow looks completely successful, even with the correct JSON in the response:
The flow has never failed. It logs complete success and payload as expected. Even the action step in my bot is successful, but the bot still ends with error.
The bot says:
Sorry, something went wrong. I am not able to help you at the moment, please check back later.
So I have no clue what might be the issue and how/where to troubleshoot it, especially since the flow is successful.
The flow runs in < 3 seconds. It is a simple flow to get a row from an excel stored in sharepoint.
On my first bot in the same env, I was able to follow along and get the greeting tutorial to work.
I'll mess with it more later, but back to my original question, where are the logs? If it is timing out, that should be trapped and surfaced somewhere?
It is a SaaS platform so in depth errors not usually available. Goto analytics and exports sessions and you can see conversation and what session where escalated or not resolved.
You should also able to query the Bot entities in the CDS environment but I have not looked at these in depth yet
By pulling down the bot snapshot, I was able to see the error with JSON. Specifically, the JSON Schema I had defined had one more field than the JSON Payload I built, so it was erroring out at the bot side to parse the JSON. Ideally Power Automate would have recognized the fundamental issue here, but it shows as a pass and completes successfully.
In this case, and I am guessing many others, the error surfaces in the Snapshot JSON you can download!
Features releasing from October 2020 through March 2021
Power Virtual Agents is now available in more languages.
Reusing variables across topics, and setting variable values from external sources.
Want to Share a ChatBot? Post it in our Bot Sharing Gallery!
Returning an image as a message