Survey will only submit when user role is set to Admin

2456
7
02-20-2018 08:47 AM
BrysonKoziell
Occasional Contributor

I am getting error code 500 when submitting a Survey when the user is set to the User or Publisher role in Portal for ArcGIS.  If the users is set to the Administrator role the Survey will submit.  Do I need to create a custom role in Portal for users to submit surveys (so i don't have to make everyone Admins)?  And what permissions are needed? 

Tags (1)
0 Kudos
7 Replies
XanderBakker
Esri Esteemed Contributor

What ArcGIS role do I need to have to use Survey123?

To publish a survey, the minimum privileges required are as follows:

  • Create content
  • Publish hosted web layers
  • Share maps and apps

Typically this would be a Publisher role, but you can also create a custom role in your organization that contains only these privileges.

To use a survey, the minimum privileges required are as follows:

  • Use maps and apps
  • Join groups
  • Edit features

Source: Frequently asked questions—Survey123 for ArcGIS | ArcGIS 

0 Kudos
BrysonKoziell
Occasional Contributor

I saw this but isn't this for publishing a survey?  The issue I am experiencing is when a user, who is not an admin in Portal, tries to submit a form to an existing Survey123 service.

0 Kudos
JamesTedrick
Esri Esteemed Contributor

Hi Bryson,

The second half of the quoted area describes the requirements for submitting; additionally, the form & feature service (or view) must be shared to the submitting users (either via a group, shared to organization or to everyone).  What is the problem that is occurring?

0 Kudos
BrysonKoziell
Occasional Contributor

Triple checked the sharing and everything seems good (logged into Portal on iPad and viewed the details of the Feature Service as the problem user).  If the user is set to User or Publisher role they cannot submit a survey.  If set to Administator role they can submit.  I just created a custom role based on the Author role and tested and this works, see below for permissions set on that role.

0 Kudos
JamesTedrick
Esri Esteemed Contributor

Yes,  The permissions you display looks correct.  From your comment above, it sounds like you are using ArGIS Enterprise - can you provide more details or the setup of Enterprise and the survey (is it using a hosted feature service, a federated service? What are the settings of the service?) 

0 Kudos
BrysonKoziell
Occasional Contributor

I am using Enterprise with a federated service.  Survey has been deployed using an existing Feature Service using the submission URL.  Feature service allows Update only. 

I used these steps to set things up;

Create Survey123 form and publish to Portal (as hosted service)

Download Form (table) to File GDB

Copy table from File GDB to SDE database

Create relationship class between existing Feature Class and new table

Publish feature class and table as Feature Service

Open Survey123 Connect, New Survey>From Feature Service

Add formatting back to Survey123 form

Ensure submission url is valid and form name correct

Re-Publish

0 Kudos
JamesTedrick
Esri Esteemed Contributor

Hi Bryson,

You have set the settings to Update only. Are you you not adding any additional records (i.e., only altering the existing records)?  Are you not sending attachments (in working with feature services operations, we see some confusion between what is an ad and what is an update with regards to attachments)?

0 Kudos