Select to view content in your preferred language

Send Error: Layer "_" not found in feature service

3717
13
Jump to solution
07-24-2023 10:26 AM
ClaireField
Occasional Contributor

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.

0 Kudos
1 Solution

Accepted Solutions
ClaireField
Occasional Contributor

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. 

View solution in original post

0 Kudos
13 Replies
jcarlson
MVP Esteemed Contributor

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.

jcarlson_0-1690220317520.png

 

- Josh Carlson
Kendall County GIS
0 Kudos
ClaireField
Occasional Contributor

Doesn't have underscores anymore. I don't believe I changed anything. I see what you are saying. 

 

 

 

ClaireField_0-1690220745230.png

This is on my settings page, should it look for this or the underscore version?

ClaireField_1-1690220809727.png

 

 

0 Kudos
ClaireField
Occasional Contributor

I wanted add another screenshot: The actual layer has underscores

ClaireField_0-1690221037526.png

 

0 Kudos
jcarlson
MVP Esteemed Contributor

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.

- Josh Carlson
Kendall County GIS
0 Kudos
ClaireField
Occasional Contributor

I understand that completely, why I am baffled the survey no longer works. Underscores saves headaches.

0 Kudos
ClaireField
Occasional Contributor

I wanted to add more information - the schema: 

ClaireField_0-1690224778534.png

And the ARCGIS Online Layers - 

ClaireField_1-1690224807196.png

The DATA section on Survey123.arcgis.com:

ClaireField_2-1690224932683.png

 

0 Kudos
GISAdminTT
New Contributor

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.

0 Kudos
ClaireField
Occasional Contributor

Thank you to hear others are having this problem, hopefully we can get some ESRI support on this.

0 Kudos
ClaireField
Occasional Contributor

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. 

0 Kudos