Cannot upload attachments

4055
12
Jump to solution
01-07-2019 12:35 PM
MattWilliams1
New Contributor II

We are working to develop a survey123 form through the web app, however it will not allow us to upload the form when it has a photo attached. It generates the error message: "Send Error - Uploads Capability is not supported for this service." We are using ArcGIS Enterprise Portal. 

Here is a link to the survey: https://survey123.arcgis.com/share/30ef42cfaedd4d739cf8645a3610d373?portalUrl=https://bcmaps.bradfor... 

We have used similar forms in the past and not experienced this issue. When records are sent without a photo they are uploaded immediately without issues. 

Thanks, 

Matt

1 Solution

Accepted Solutions
BrettStokes
Esri Contributor

Hi Matt,

We now understand the root cause of this issue and have a workaround for you to implement. Essentially you just need to enable the 'Uploads' Capability on the Feature Layer View.

Please refer to the information below and let me know if this fixes your problem. We intend adding a Known Limitation note to our Documentation to explain this situation.

Thanks,

Brett

Known Limitation:

For Surveys published from the Web Designer to Portal 10.6, submitting a survey with an attachment (eg image) will give the following error:

 

This is because the 'Uploads' Capability is not being correctly added to the Feature Layer View when the survey is published.

*Note this Limitation does not affect Portal 10.6.1 or any other versions (10.6 only), and only when publishing from the Web Designer (not from Survey123 Connect).

Workaround:

Need to manually enable 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 into Portal using an Admin account and navigate to the Feature Layer (Hosted View) - this was automatically generated when you created your survey via the Web Designer.

2) Click the View URL button for the Feature Layer View (bottom right of page):

3) Add /admin/ to the URL to access the ArcGIS REST Admin operations, eg:

https://machine.domain.com/webadapter/rest/admin/services/Hosted/survey123_4e9085065b374452be83ef434......

Click the 'Update Definition' option that has appeared as a Supported Operation at the bottom of the page:

4) Copy and paste the following into the Input dialogue and click 'updateDefinition':

{"capabilities": "Create,Editing,Query,Update,Uploads,Delete,Extract"}

You will see {"success" : true} when the Capability has been successfully updated.

5) You have now added the ‘Uploads’ Capability to the Feature Layer View, surveys with attachments can now be successfully submitted.

View solution in original post

12 Replies
Jim-Moore
Esri Regular Contributor

Hi Matt

This issue has been raised previously and our team is looking into a resolution. We will update this thread when we have more information. In the meantime...

1) Could you please let me know what version of Portal you are using?

2) Other users have encountered some similar issues where the required capabilities of the feature service/layer in Portal are not enabled. Can you confirm if the following are enabled:

 

supportsApplyEditsWithGlobalIds=true

Create,Delete,Query,Update,Editing,Extract,Sync capabilities

 

Thanks,

Jim

MattWilliams1
New Contributor II

Jim,

Thanks for the reply.

Answers to your questions:

1) We are running portal version 10.6  - We have previously deployed surveys that include photos without issue, however even older survey forms that worked in the past are returning the same error.

2) The capabilities are the same as you have listed in the feature layer, however in the fieldworker (Feature Server) view the capability 'sync' is absent.

Matt

0 Kudos
Jim-Moore
Esri Regular Contributor

Thanks Matt, I'll pass this on to our team and get back to you with any developments.

0 Kudos
Jim-Moore
Esri Regular Contributor

Hi again Matt

It looks like this issue could be specific to Portal 10.6. Have you recently upgraded to this version? If so, which version were you previously running (when surveys with photos were submitting successfully)?

Thanks,

Jim

0 Kudos
MattWilliams1
New Contributor II

Jim, 

I have confirmed with our IT Dept. that the only version we have used to date is 10.6 it was installed in May 2018. The only changes we have made since that time were installing patches for security as directed by ESRI in December 2018. See below for the associated patches. 

0 Kudos
Jim-Moore
Esri Regular Contributor

Thanks very much Matt for the additional info. I'll pass this on to our team and keep you up-to-date with any developments.

Jim

0 Kudos
Jim-Moore
Esri Regular Contributor

Hi Matt, apologies another question - when older surveys with photo attachments were working successfully, would this have been surveys published prior to the Portal for ArcGIS Privilege Escalation Security Patch being applied?

Thanks,

Jim

0 Kudos
MattWilliams1
New Contributor II

Jim,

Yes our older survey forms were prior to the installation of the patch.

Matt

0 Kudos
Jim-Moore
Esri Regular Contributor

Thanks Matt, this is useful information. As mentioned I'll pass this on to our team and add any updates to this post.

0 Kudos