I am facing an error "XPath evaluation: type mismatch This field is repeated". I have not faced this problem previously . I have a begin group inside a begin repeat . Begin repeat has no repeat_count . Data Collector can add as many forms as he wants. I am getting the error because it has choice_filter . Is there any way I can apply choice filter in begin repeat. I am attaching a sample file. Testing_choice_filter.xlsx (9.5 KB)
You need to close your 'end group' statements. Under the name in the first 'end group' place 'Basic_details_Diagnostic' and under the 'name' for the second 'end group' place 'Manpower'.
I think we can't use choice_filter in repeat groups reason being the ambiguity for the choice_filter to choose which value to be considered. I tried using indexed-repeat() but that also throws the same error. I hope somebody might have a solution for this . Thanks for the reply.
Thank you for the reply ,but I don't think it is causing the problem nevertheless this has to be followed as standard so that we can know which group is ending where. I will try to follow that.
I am having the same error when using choice filters in repeats ....however when I use the form on computer( online form) it works. Only using the app on my smartphone the issue pops up...
The problem is when you do a repeat with a choice filter . Again , it works ok for the Eketo/web form but when I open it with KOBO collect it show and error.
I think there are a couple of issues going on here...
@Pablo_GC, Kobo Collect is an older version of ODK Collect with a different icon and name. If you'd like us to help, please switch to the latest version of ODK Collect so we can be sure what you are running.