cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Microsoft
Microsoft

Where do errors go?

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?

 

https://powerva.microsoft.com/canvas?cci_bot_id=8a04ab3f-3dfc-4cc1-8280-8557a52bb4a4&cci_tenant_id=3...

 

 

8 REPLIES 8
Highlighted
Resolver I
Resolver I

Re: Where do errors go?

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

 

hth

Joe

Highlighted
Microsoft
Microsoft

Re: Where do errors go?

That was my first thought as well, but the flow looks completely successful, even with the correct JSON in the response:

{
"retProduct": "AEM",
  "retEmail": "daycare@domain.com",
  "retTicketSystem": "Daycare",
  "retLink": "https://www.daycare.com",
  "retDescription": "Exp Manager"
}
 
 
Highlighted
Resolver I
Resolver I

Re: Where do errors go?

Sorry you confused me now -  Is the error in the flow? 

Highlighted
Microsoft
Microsoft

Re: Where do errors go?

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.

Highlighted
Resolver I
Resolver I

Re: Where do errors go?

Sounds like a timeout waiting for Flow to complete.  Check it works if you call another Flow - maybe a dummy with a fixed response.

Highlighted
Microsoft
Microsoft

Re: Where do errors go?

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?

 

Highlighted
Resolver I
Resolver I

Re: Where do errors go?

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

 

Joe

Highlighted
Microsoft
Microsoft

Re: Where do errors go?

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!

Thanks!

 

Helpful resources

Announcements
Power Platform 2020 release wave 2 plan

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

PVA Multi Language

Power Virtual Agents Gaining Traction

Power Virtual Agents is now available in more languages.

PVA Bot Variables

Power Virtual Agents Bot Variables

Reusing variables across topics, and setting variable values from external sources.

BOT Sharing Gallery

BOT Sharing Gallery is now LIVE!

Want to Share a ChatBot? Post it in our Bot Sharing Gallery!

PVA Thumb

Video of the Week

Returning an image as a message

Top Solution Authors
Users online (10,638)