Fields not found in feature service

4905
12
05-11-2018 01:29 PM
EricBitner
New Contributor

I created a survey from an existing feature service.  I added questions, changed types of questions.  When I go to publish the survey I get an error. The error reads "3 field(s) not found in feature service".

1) How do I fix this or what did I do to cause the problem?

2) how do I figure out which fields the errors are coming from?

Thanks

Tags (2)
0 Kudos
12 Replies
JamesTedrick
Esri Esteemed Contributor

Hi Eric,

This is caused by adding questions - Survey123 Connect is checking to see if all the question entries (including notes that have a name) are in the feature service for submitting data.  Either fields will need to be added to store the values from the survey, or you can set a question as temporary 'in-form' (not submit it's value) by sending the bind::esri:esriFieldType to null.

EricBitner
New Contributor

Thanks.  So there is no way to add a question to add or change an existing question?  I added the or_other to three questions because I realized I had no way of adding all the choices to those 3 questions.

0 Kudos
ChrisYoung4
New Contributor II

where you ever able to figure this out? I have the same problem..

0 Kudos
MichelleWilliams1
Occasional Contributor III

Hi James, 

I've had this question before and I believe the answer is that you can add a field without it deleting any data, as on as you insert a new line. 

I've asked if Esri would remove the WARNING for added features because the end-user doesn't care if the service adds new fields as long as it doesn't delete our data. Maybe you can get this fixed for us. This warning scares me every time.

0 Kudos
JessicaJThompson
Occasional Contributor

Hello,

I am receiving the same notification, however I have not added or removed any questions. I was simply editing the title of the survey and changing the number of photos that can be submitted for a image question in the contraint column. That being said, I undid all of my edits and tried to republish. It gave me the same error. So something has happened with my submission URL maybe? I am not sure what. I have had issues in the past with the submission URL in the settings > submission_url being accepted.

This is a survey created from a hosted feature service in AGOL. There are actually less fields in my survey than in the feature service. I have troubleshooted a bunch of things with no success. 

Any additional guidance would be appreciated. 

0 Kudos
JamesTedrick
Esri Esteemed Contributor

Hi @JessicaJThompson ,

A couple of things to check:

- Can you check that the form_id matches the name of layer that the data is being sent to?

- Can you check that the each question in the form that is not an image, audio or file has a corresponding entry in the feature service? 

Aside from this, capturing a console log during the pre-publishing analysis can provide details of what the mis-match might be.

0 Kudos
JessicaJThompson
Occasional Contributor

Good Morning @JamesTedrick 

I reviewed the form_id and name layer. They match.

Each question that is not an image (I don't have audio or file questions) has a corresponding entry. 

I honestly have no idea what the mismatch may be. The department wants the name of the survey changed.  And they wanted to see if the the constraint on the photo number could be changed. Those were the only edits. Tried to publish and got the error. For a test I undid the edits and tried to republish, and got the error. 

We are transitioning to hosting the data in a portal so I will be giving them a new survey soon. If I cannot figure this out, I hope they can just hold on for a week. 

Thank you for your help!

Jessica

0 Kudos
SianDoherty1
New Contributor III

I have been modifying this survey all day and my feature service is exactly the same as the last time it was actually successful. The error message varies, sometimes i have the abliity to add the field to the feature service if it doesn't exist, but not in this case. I just get an error message Fields not found in the feature service: 1 - but not indication as to what the offending field actually is. 

I have reviewed the structure of the feature service vs the structure of the XLSConnect form and they are the same so i can't see why i'm now getting this error. It's very bizarre. Can anybody help with this? Running Survey123 Connect 3.10

0 Kudos
MichelleWilliams1
Occasional Contributor III

You said you were modifying all day but the feature service is the same. There are so many questions here.

1. Are you cutting and pasting fields from the original location into a repeat? 

If so remember that Survey123 needs a new name for the repeat, Survey123 sees it as a duplicate, because the feature service still holds on to the field.

You might want to move your project survey123 folder (mine is here C:\Users\USERNAME\ArcGIS\My Survey Designs) to your desktop as a backup, and redownload the good version from Connect. Make changes and publish after each change, so you can see what is breaking the survey. I had to do this before and you will learn a lot about what you can and can't do. Mine was that I used a name that wasn't allowed. 

I'll watch for your reply.

0 Kudos