Hello and Happy Monday.
I have attached a screenshot to this post to highlight my error. The survey (created on connect) worked on Friday, submitted a few surveys, but no longer works today per the error in the screenshot. This has happened numerous times so far and the only fix is to delete the feature layer and republish. This isn't bad as I keep having to change variables and most of it was just trial and error. As I come to a close on this project, I would like to hear if anyone else has dealt with this problem.
I found a 2018 post : Survey123: Send Error - Layer 'XYZ' not found in the feature service which was solved by the individual stating they logged out and restarted their device to fix it. I tried it myself and it did not work.
The feature layer is active.
Thank you for any assistance.
Solved! Go to Solution.
Last post on this and I will probably mark it as solved. Between someone else using my same exact survey and me creating a new survey with a different name, it works as intended. Only thing I can think of through the excessive amount of deleting and republishing, there were too many behind-the-scenes layers with the same name, and it could no longer figure out which one to use. This idea is just rationalizing something I am unsure as I did not change anything.
Survey123 will look for the layer using the table's alias. Can you confirm that the layer's alias has not been adjusted, and still includes the underscores?
If I took my own layer pictured below and edited the alias to omit the underscores, my form would no longer work.
Doesn't have underscores anymore. I don't believe I changed anything. I see what you are saying.
This is on my settings page, should it look for this or the underscore version?
I wanted add another screenshot: The actual layer has underscores
Interesting. I've had issues referencing layers with spaces in the name, but maybe that's been fixed. Whether you go with spaces or underscores, just make sure that the actual layer name and the settings tab of the survey say the same exact thing.
I understand that completely, why I am baffled the survey no longer works. Underscores saves headaches.
I wanted to add more information - the schema:
And the ARCGIS Online Layers -
The DATA section on Survey123.arcgis.com:
Good day,
I'm having the same issue. Survey built and published using Connect and was working fine last week.
Since last successful survey was submitted through the field app...
Republished in web designer to add the submit another survey option to the thank you screen for the web form.
Edited and republished form again in Connect to update an image used in a note question.
Tried to submit one through the field app this morning and got the error "Layer 'XYZ' not found in feature service".
Layer exists and is active. Submitting through the web app still works.
Only other related item edited is changed the basemap and symbology in the associated web map created when survey was initially published.
Thank you to hear others are having this problem, hopefully we can get some ESRI support on this.
Last post on this and I will probably mark it as solved. Between someone else using my same exact survey and me creating a new survey with a different name, it works as intended. Only thing I can think of through the excessive amount of deleting and republishing, there were too many behind-the-scenes layers with the same name, and it could no longer figure out which one to use. This idea is just rationalizing something I am unsure as I did not change anything.