Select to view content in your preferred language

8/15/24: Update and quick fix for issues with Webhooks not running in the ArcGIS Connector

1200
12
3 weeks ago
AnthonyLatini
Esri Contributor
5 12 1,200

There have been multiple reports here on the forums and Support issues logged for a recent problem with webhooks not working. We have been searching for the root cause of this issue over the last two weeks and have found the problem as well as a quick solution.

In short, a change was made in the underlying ArcGIS Online system which inadvertently affected webhooks not just in Power Automate, but in other client applications as well. This change made it so that 202 responses were no longer accepted in the webhook API and only accepted 200 responses.

If you had recently created a webhook, it might have appeared working about 5 to 6 times before it turned off. The results on the admin page for your feature layer might have looked something like this:

AnthonyLatini_0-1723756441400.png

 

Once the webhook reached its threshold of unsuccessful events, it would turn the webhook status to false. This would then stop your flows from triggering and running subsequent actions.

 

AnthonyLatini_1-1723756441406.png

 

Currently, a patch is being worked on to resolve this issue in the ArcGIS Online system. Please note that we do not have an ETA on when the patch will be pushed, but we will monitor this closely.

However, we have a quick solution to get your flows up and running again. You only need to edit your flows once even after the patch has been deployed. Please see the steps below.

 

Thank you for your patience on this issue as we work through it!

 

----

 

 

  1. In Power Automate, navigate to your existing webhook flow
  2. Open the flow and click “Edit”
    AnthonyLatini_2-1723756441407.png
  3. Add a new action right after the trigger
  4. Search for Request in the action search box
  5. Select “Response” from the search results

AnthonyLatini_3-1723756441409.png

 

  1. In the Response action, the “Status code” should be defaulted to “200AnthonyLatini_4-1723756441410.png

     

  2. Save the flow
  3. Navigate to your feature layer in your organization
  4. Scroll to the bottom of the page and open the service URL

AnthonyLatini_5-1723756441413.png

 

  1. In the upper right corner, click on Admin

AnthonyLatini_6-1723756441414.png

 

  1. At the bottom of the page, click on “Web Hooks”

AnthonyLatini_7-1723756441415.png

 

  1. Next, select “Activate all” to ensure all of the webhooks are set to TrueAnthonyLatini_8-1723756441416.png

    Click on "Activate all" to enable all webhooks. 

    AnthonyLatini_0-1723777412075.png
  2. The flows in Power Automate should now start to run again
12 Comments
Scott_Sambell
Occasional Contributor

Thanks @AnthonyLatini . What about FME?  We don't use Power Automate and this bug is giving us major headaches trying to keep eveything running. 

CC @EnricShen @WillyG 

NigelCharman
New Contributor II

Thanks for the workaround.

We also needed to Publish our Power Automate flow (since it's packaged as a Solution).

I assume we also need to push the Activate All button below after clicking on the Activate All link:

NigelCharman_0-1723773339318.png

Nigel

 

AnthonyLatini
Esri Contributor

@NigelCharman - Ah thank you for that! I will edit my post. I think it saved an earlier draft. Good catch! 😀

AnthonyLatini
Esri Contributor

@Scott_Sambell - Hi there. I am not too familiar with FME. Can you post a screenshot in a private message to me so I can take a look? 

RiainGarcia
New Contributor III

Following

HackRentmeesters
New Contributor

We're also using Webhooks in FME Flow which this issue makes our workspace unfuctional. Can you provide a solution for FME as well?

AriEpstein
New Contributor

I'll add that our organization is working around this by switch to a pull approach that avoids webhooks altogether. We created a scheduled flow that uses the Get data from feature layer action to pull features that were created/modified since the last run. Compared with webhooks, this has been simpler to implement for our use case and more robust (we'll get immediate reporting through the flow if the pull fails whereas the webhooks tend to fail in less detectable ways).

Erwinvan_Veen1
New Contributor III

Thanks for the suggestion. Quick question: what am I supposed to do when I cannot find the Request nor the Response actions?

ahargreaves_FW
Regular Contributor

@AriEpstein can you provide a screenshot or example of this flow? How do you determine what's new since the last time the flow ran? It is simply something like:

  1. Flow runs every hour
  2. Each run looks for new features since: now() - 1 hr?

It sounds much better and more stable...

Thanks

Bryan_Wade
Occasional Contributor

Would this work around work for flows use Survey123? That is where I am having the issue with the connection being dropped in Power Automate?

AbdiHassan
New Contributor

I ended up creating an FME workbench that activates all my webhooks every minute which is working in the interim. You need to use the HTTP Caller to grab the webhooks and activate them, I can send the FME script if needed

 

Thanks

Erwinvan_Veen1
New Contributor III

@ahargreaves_FW Although we need to test it more, in PowerAutomate I solved this as follows. Without web hooks.

A. Recurrence 1 minute.

B. Get data from feature layer using where clause. The where clause is:
GEWIJZIGD_OP >= CURRENT_TIMESTAMP - INTERVAL '1' MINUTE

Please note that GEWIJZIGD_OP is my editor-tracking field for the last edited date. This should be changed to your situation. Perhaps an entirely different field suits your needs better.

Hope this helps.