I am having issues getting the repeats going for attachments on a feature service published with data that resides in a SQL database. If I do not use repeats, the survey works 100%, but using repeats I do not know to which related table I need to point the repeat.
My schema in Survey123 looks this.

How I try to do the repeat and the error that I get when I try to publish the survey.
How do I set up the repeats if my feature service is not hosted but uses data from SQL?
Thanks
Gavin