I have a published survey that already has 2 repeats in it, and I would like to place one within the other. I was able to do so and publish, but when I attempt to submit a completed survey, I get an error:
I suspect this means I need to somehow specify the relationship between the tables? If so, how do I do that?
Honestly, not seen that error before.
After republishing, did you download the new update in the Field App? Failing that, I'd delete the survey from the Field App and re-download. Assuming you republished without issue, there shouldn't be this issue.
Changing repeats like that would have made Connect recreate the Feature Layer (adding repeats/related tables/changing data types does that).
I've updated the survey, yes.
Yes normally it would inform me that all previously collected data will be lost because it will have to create a new feature layer, but not this time.
That... is really odd. Is this survey based on a different layer? That is the only way that would make any sense. To check this, open the XLSX and go to the "settings" tab. Is there anything in the "submission_url" column?
While the survey indicates that there isn't a relationship, Survey123 should be specifying and managing the relationship for you. But for some reason, it doesn't seem to be doing that.
We've experienced a lot of issues with republishing more "complicated" surveys (surveys with repeats, etc.) when adding additional repeats or changing the schema, and it just results in us having to create a brand new survey.
Since Esri manages the tables/relationship on the backend, I suspect you might need to create a new survey in order for it to work.