I have created a survey in Survey123 Connect from a hosted feature layer with a point layer and a related table to hold the survey results. After I published the hosted feature layer, I was asked to add a couple of repeats to the form. After adding the repeats, the survey would not publish/update. After doing some reading, I learned that I am not able to add repeats to an existing survey and publish it (unless I'm mistaken). I then recreated the survey by copying over the survey questions/choices, etc from the first survey to the new form.
Now, when I go to publish the survey, I get the following error:
Does the hosted feature layer need to already have tables for the repeats added to it prior to creating the survey? Can anyone help with this?
Solved! Go to Solution.
You need to match the Name column on the begin repeat line to your repeat table name. That is how it finds it.
Yes, either have the existing feature service match the data model (i.e. have a point layer and table with all fields configured) or create a new feature service from scratch from Connect upon publishing. For the latter to work remove the submission url/item from the settings tab in the XLS if you copy from your old XLS, this references the existing item to update.
You need to match the Name column on the begin repeat line to your repeat table name. That is how it finds it.
I'm not sure who marked this as a "solution" but changing the name of the repeat to match the related table does not allow me to publish. I just got off the phone with Customer Service and I can't seem to get a straight answer. All I'd like to know is: Does Survey123 Connect support having repeats when the survey is created from a feature service with a related table? If yes, then can someone please show me how to do this? If not, then I'd like to get a definitive "no, that's not possible." If someone could clear this up, that would be much appreciated!
Yes its possible I have a lot of them. The layer or table name has the word repeat in it? The error is saying the names do not match. Can you post a screen shot of the form at least and a screen shot of the service.
@DougBrowning - Thanks for responding! For this example, I created a new, fake survey as I didn't want to risk unintentionally editing an existing survey. I attached screenshots of the form, XLS form, feature service, the error that I'm getting, and the settings page of the XLS form. Please let me know if you spot something that I'm missing. Thanks again!
Can you screen shot the service page though also. Link in the bottom right.
I think it may be that form_id should match the main layer name Fake_Survey_Points and then the repeat name matches the table. You got the repeat table name in both spots. Try that quick. If not post the rest page.
@DougBrowning - Would you be willing to post a screenshot of a feature service showing the feature layer and related table along with screenshots of the XLS form (survey and settings pages) configured to accept repeats?
Hope that helps you are just matching up the names in the two places. That is how 123 finds them.
So, I redid the survey and changed it so that the form ID matches the main layer (point layer) and the name of the repeat matches the related table and now I'm getting this error:
The error says that I don't have a label when I clearly do. What am I missing?