Error deploying the tool

Hi, can anyone help me checking the attached file: I’ve spent almost 10h trying to figure it out but couldn’t.

When I deploy the tool I get this error:

Error: ODK Validate Errors:
>> XForm is invalid.
: member’s binding [${hh_mmbr_profile}] is within the scope of a that is not its closest containing !

The following files failed validation:
${CEFMU} - Draft - Kopya (2) - Kopya.xml

Result: Invalid

But the variable is outside the repeat, and really I get stocked at this point.

TIA
CEFMU - Draft - Kopya (2) - Kopya.xlsx (24.0 KB)

@musto, check out the expressions used inside the repeat group and that should solve your issue:

Thanks @Kal_Lam for taking time to check the file, but I already checked all expressions and couldn’t identify where the error comes from.
All calculations inside the repeat refers to variables from inside the same repeat, relevant expressions are the same.

Maybe @hakan_cetinkaya can you help me please?