I have a workflow which requires the functionality of repeat but what I actually need is the sum of the values contained with in the repeat. i.e. count the number of desks and chairs (and other equipment) within each room (there can be any number of rooms hence the repeat). Outside the repeat I use the sum function to get the total number of desk, chairs, etc. within each building which is what is required. Thus I don’t need the repeat published onto the feature service just the sum of these values.
I know when one doesn’t want a field to be published to an online feature service put “null” value into the “bind::esri:fieldType” field.
I have tried do the same (putting null) against the repeat field itself but the repeat still publishes.
I know I can removed the repeat table using the REST API when the data is published/sent to the online feature service.
Is there a setting/configuration which will stop a repeat from being added to the online feature service when publishing the survey123?
There is not a specific setting for that.
I've never needed to make a repeat null, so haven't tried this before now. Doesn't look like there is a way to avoid the layer being recreated, even with specifying null for the repeat and all its contents. I'm not clear on the logistics behind this, as it seems to be doing the thing it shouldn't do. May be worth opening a case with Esri Support, and potentially getting this logged as a bug (and then hopefully patched in the future).
@abureaux Thanks for getting back to me. Its an interesting bug alright. Might just have to open one.