Simple calculation not working/error

1. What is the issue? Please be detailed.
Attempting to calculate difference between two integer values
begin_group Weight Weight
integer TotalWeight Total weight (g)
integer BagWeight Bag weight (g)
calculate AnimalWeight Animal weight (g) ${TotalWeight} - ${BagWeight}

but receiving error when converting to .xml "Error: Unmatched begin statement: group (Weight)"

Is this because the rows are nested within a group? Do I need to reference the specific group at the start of the calculation, and if so, how?

2. What steps can we take to reproduce this issue?
See attached .xlsx

3. What have you tried to fix the issue?
Have looked through other posted support topics but have not been able to replicate fixes used on other issues

4. Upload any forms or screenshots you can share publicly below.
Standardised Chuditch Trapping Form (9).xlsx (644.3 KB)

Hi @J.AWC

You can test your form using the online the validator: https://getodk.org/xlsform/

You are missing the end_group statement for the Weight and Species groups (Rows 10 & 13 groups)

Row 44 is missing a Label

2 Likes