In Survey123 Connect, I have multiple questions in the repeat with the following expression in body::esri:visible:
(${repeat_index}=1) or ( ${repeat_index}!=1 and ${is_active}='Yes')
(only display the question when it's the first entry, or if it's not the first entry and you marked is_active to yes.
Within a repeat, I'm getting this error on my form when toggling a yes/no (is_active) question to "No". I'm assuming it's related to the aforementioned questions, because they are affected by the change.
This works fine in Survey123 Connect.
You didn't mention where this isn't working. I tested in both web and S123 Field App. Worked in both.
Is your S123 Connect (and maybe field app) up to date? I recommend using the Microsoft Store versions of both apps as those auto-update.
Connect:
Web:
Field app:
I attached my test in case you wanted to inspect.