Select to view content in your preferred language

Problem with survey123 and microsoft flow (Invalid Token 498)

456
1
03-03-2024 09:23 PM
StadtCuxhaven
Emerging Contributor

Hello.

I set up a defect reporter for our city using Survey123 (Web designer) and Microsoft Flow.

The incoming defects are transmitted via a flow in a sharepoint list. These are then transferred from there to our document management system. However, it sometimes happens that the connections to ArcGIS Online no longer work in the flow and I have to create the connections again. The problem occurs at the point “Create report”. Of course, this isn't possible with a system that citizens use every day. You have to rely on that. What could be the reason? 

Could it possibly be due to the ArcGIS Online user ? I created the connection with our ArcGIS Online admin user, which I use every day for my work. Maybe that's too many logins ? Do I need an Arcgis online user that is only used for this flow ?

Please help. Thank you.

 

error.png

0 Kudos
1 Reply
abureaux
MVP Frequent Contributor

I am assuming that this is a transient problem and not something that happens 100% of the time.

"Create Report" sometimes fails. I doubt that will ever go away since sometimes things just go wrong. You should add in error handling to resolve those issues automatically. Without going too much into it, you can nest the Create Report step in a Do Until and target one of the outputs... which I will grab for you after my PC forcibly restarts... sigh Now that my PC has restarted... For your Do Until, it should be using this logic: jobStatus = esriJobSucceeded

EDIT: Here is a link to my guide. Has some decent info that may be helpful. It also has links to other guides which I will expand upon as I come across them.

0 Kudos