English

Problem: Submitting images to a survey created using Survey123 Web Designer against Portal 10.6 fails with error: Failed to submit

Description

When creating a Survey from Survey123 Web Designer to Portal for ArcGIS 10.6, submitting a survey with an attachment (an image, for example) returns the following errors:

Failed to submit.
Uploads Capability is not supported for this service
cannot add attachment.
Send Error
This survey was not able to be sent sue to the following error:
Uploads Capability is not supported for this service

Cause

This is because the Uploads capability is not being correctly added to the Feature Layer View.

Note:
This limitation does not affect Portal for ArcGIS 10.6.1 or any other versions (10.6 only), and only when publishing from the Web Designer (not from Survey123 Connect).

Solution or Workaround

Manually add the Uploads capability on the Feature Layer View. This can be done using the Update Definition operation on the ArcGIS REST Admin API:

  1. Log in to Portal for ArcGIS using an admin account, and navigate to the Feature Layer (Hosted View).This is automatically generated when the user creates the survey via the Web Designer.
  1. Click the View (URL) button for the Feature Layer View (bottom right of page):
  1. Add /admin/ to the URL to access the ArcGIS REST Admin operations, for example:
https://machine.domain.com/webadapter/rest/admin/services/Hosted/survey123_4e9085065b374452be83ef4342f22a6e_fieldworker/FeatureServer/
  1. Click the Update Definition option in the Supported Operations section at the bottom of the page:

  1. Copy and paste the following into the Input dialogue and click 'updateDefinition':
{"capabilities": "Create,Editing,Query,Update,Uploads,Delete,Extract"}

{"success" : true} can be seen when the capability has been successfully updated. The Uploads Capability to the Feature Layer View has now been added, and surveys with attachments can now be successfully submitted.