Update survey using existing feature service

903
6
07-07-2017 01:33 PM
BrianHiller
Occasional Contributor

When trying to publish an update to a survey that is connected to an existing feature service using the submission_URL setting, I am now getting an error from Survey123 Connect that says the Feature service information is unavailable.

Has something changed with the most recent update to ArcGIS Online that prevents using an existing feature service with Survey123 as before? Here is the error message that I receive.

Tags (1)
0 Kudos
6 Replies
JamesTedrick
Esri Esteemed Contributor

Hi Brian,

This appears to very particular to your survey & feature service - you may want to double-check that the feature service exists and is visible from the account that published the survey.  I would also go to the item details page of your form item- it should show a link to the feature service URL.  Is there anything else about the history of this service/form that could be unique?

0 Kudos
JohnWatson_EBA
New Contributor III

Hi @JamesTedrick - I actually just came across this as well, and I can confirm the service does exist and is visible from the same account that published the survey. I am trying to use a feature layer I created in AGOL from a published feature service in Portal (that is tied to an sde FC), but the survey won't publish. If I create a new feature layer in AGOL using the same fields from the feature service, then I can successfully republish the survey using the submission url to that layer. What gives?

0 Kudos
JamesTedrick
Esri Esteemed Contributor

Hi @JohnWatson_EBA ,

Can you provide more details on the publishing setup?  The feature layer is in AGOL?  If so, what is the sharing setting on it?  In general, Survey123 expects the feature service to reside on the same ArcGIS Enterprise as the form. There is a way around this, which is documented as they work-around to support stand-alone ArcGIS Server services.

0 Kudos
JohnWatson_EBA
New Contributor III

Sure. I created the survey from scratch in Connect, v3.12.232, published it up to AGOL as a hosted feature layer. Submitted a survey and downloaded the layer as a fGDB locally, then exported the FC to the client's .sde database. Used ArcMap to then publish the .sde FC as a service in Portal. Created a feature layer item in AGOL pointing to the feature service in Portal and attempted to use that item ID in the survey to republish.
Thanks for getting back to me so quickly, I really appreciate it.

0 Kudos
JamesTedrick
Esri Esteemed Contributor

Hi @JohnWatson_EBA ,

What is the sharing of the service that was published to ArcGIS Enterprise?  If it is shared to everyone, it needs to be secured.  The feature layer item in AGOL referencing it would need to embed credentials to access it.  Otherwise, Survey123 will attempt to communicate with the feature service directly, which is in a different identity management; this will result in invalid tokens being sent to the feature service.

0 Kudos
JohnWatson_EBA
New Contributor III

It is only shared with the org. So when I created the feature layer in AGOL from the service in Portal, I embedded the credentials on that layer. The service in Portal is shared with the org and the survey items and the feature layer are all shared with the AGOL org as well.

0 Kudos