Description
Creating an ArcGIS Workflow Manager job by submitting a survey in ArcGIS Survey123 fails and returns the following error:
Error:
Survey submitted successfully, but an error occurred while triggering webhook. https://gisserver.domain.com/webadaptorname/workflow/webhooks/createJobFromSurveyResponse/<job
template id>
Failed to fetch
Cause
- Multiple webhooks are enabled for the survey.
- An incorrect web adaptor name was used in the payload URL for the webhook.
Solution or Workaround
Depending on the cause, the workflows provided are applicable.
Disable the unnecessary webhooks
- Open the Survey123 website.
- On the My Surveys tab, click the ellipses
button on the survey's card and select Settings. - On the Settings tab, click Webhooks.
- Under Operations, click Edit
for the preferred webhook. - In the Edit Survey123 webhook pane, disable the Status button.
- Click Save.
Note:
The following conditions are applicable to the second and third solutions.
• If Workflow Manager Server is installed on the hosting server machine, use the ArcGIS Server web adaptor.
• If Workflow Manager Server is installed on a separate machine, use the web adaptor name assigned during the Workflow Manager Server installation.
Edit the payload URL in the existing webhook
- Repeat Steps 1 through 4 from the first solution.
- In the Edit Survey123 webhook pane, under Payload URL, specify the correct URL.
- Click Save.
Delete and recreate a new webhook
- Repeat Steps 1 through 3 from the first solution.
- Under Operations, click Delete
> Yes for the preferred webhook. - Create a new webhook. In ArcGIS Blog: Create ArcGIS Workflow Manager jobs using Survey123 webhooks, browse to Add a Webhook in Survey123 and refer to Steps 4 through 6 for instructions.