Indexed-repeat() error

I'm trying to get a simple test form with the indexed-repeat() function to
work in the latest version of ODK Collect. This form throws an error when
creating the second
repeat: https://docs.google.com/spreadsheets/d/1VSv7Ck3JiPBd6LQRntOMfDHyoiUzSf2w7bKO19JW0QU/edit#gid=0

It passes ODK Validate. Does my form contain a mistake?

··· -- -- *Revolutionizing data collection since 2012.*

Enketo https://enketo.org/ | LinkedIn
http://www.linkedin.com/company/enketo-llc | GitHub
https://github.com/enketo | Twitter https://twitter.com/enketo
| Blog http://blog.enketo.org/

Works okay with the latest SurveyCTO tools. You might open an issue with
the details of the error.

Best,

Chris

··· --- Christopher Robert Dobility, Inc. (SurveyCTO) http://www.surveycto.com/ http://blog.surveycto.com/

On Wed, May 20, 2015 at 1:36 PM Martijn van de Rijdt martijn@enketo.org wrote:

I'm trying to get a simple test form with the indexed-repeat() function to
work in the latest version of ODK Collect. This form throws an error when
creating the second repeat:
https://docs.google.com/spreadsheets/d/1VSv7Ck3JiPBd6LQRntOMfDHyoiUzSf2w7bKO19JW0QU/edit#gid=0

It passes ODK Validate. Does my form contain a mistake?

--
Revolutionizing data collection since 2012.

Enketo https://enketo.org/ | LinkedIn
http://www.linkedin.com/company/enketo-llc | GitHub
https://github.com/enketo | Twitter https://twitter.com/enketo
| Blog http://blog.enketo.org/

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to the Google Groups
"ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Attached is a working form.

Not sure why this is different between SurveyCTO and base ODK Collect.

The problem seems to be that indexed-repeat, when given a position value of
0, returned a set of nodes, rather than picking a specific one. The
position is 1-based.

I fixed the form by adding a guard condition in front of the indexed-repeat

indexed_repeat.xlsx (10.5 KB)

··· On Wed, May 20, 2015 at 10:44 AM, Christopher Robert wrote:

Works okay with the latest SurveyCTO tools. You might open an issue with
the details of the error.

Best,

Chris


Christopher Robert
Dobility, Inc. (SurveyCTO)
http://www.surveycto.com/
http://blog.surveycto.com/

On Wed, May 20, 2015 at 1:36 PM Martijn van de Rijdt martijn@enketo.org wrote:

I'm trying to get a simple test form with the indexed-repeat() function
to work in the latest version of ODK Collect. This form throws an error
when creating the second repeat:
https://docs.google.com/spreadsheets/d/1VSv7Ck3JiPBd6LQRntOMfDHyoiUzSf2w7bKO19JW0QU/edit#gid=0

It passes ODK Validate. Does my form contain a mistake?

--
Revolutionizing data collection since 2012.

Enketo https://enketo.org/ | LinkedIn
http://www.linkedin.com/company/enketo-llc | GitHub
https://github.com/enketo | Twitter https://twitter.com/enketo
| Blog http://blog.enketo.org/

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to the Google Groups
"ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to the Google Groups
"ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
Mitch Sundt
Software Engineer
University of Washington
mitchellsundt@gmail.com

Thanks!

··· On Wed, May 20, 2015 at 12:07 PM, Mitch Sundt wrote:

Attached is a working form.

Not sure why this is different between SurveyCTO and base ODK Collect.

The problem seems to be that indexed-repeat, when given a position value
of 0, returned a set of nodes, rather than picking a specific one. The
position is 1-based.

I fixed the form by adding a guard condition in front of the indexed-repeat

On Wed, May 20, 2015 at 10:44 AM, Christopher Robert < crobert@surveycto.com> wrote:

Works okay with the latest SurveyCTO tools. You might open an issue with
the details of the error.

Best,

Chris


Christopher Robert
Dobility, Inc. (SurveyCTO)
http://www.surveycto.com/
http://blog.surveycto.com/

On Wed, May 20, 2015 at 1:36 PM Martijn van de Rijdt martijn@enketo.org wrote:

I'm trying to get a simple test form with the indexed-repeat() function
to work in the latest version of ODK Collect. This form throws an error
when creating the second repeat:
https://docs.google.com/spreadsheets/d/1VSv7Ck3JiPBd6LQRntOMfDHyoiUzSf2w7bKO19JW0QU/edit#gid=0

It passes ODK Validate. Does my form contain a mistake?

--
Revolutionizing data collection since 2012.

Enketo https://enketo.org/ | LinkedIn
http://www.linkedin.com/company/enketo-llc | GitHub
https://github.com/enketo | Twitter https://twitter.com/enketo
| Blog http://blog.enketo.org/

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to the Google
Groups "ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to the Google Groups
"ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
Mitch Sundt
Software Engineer
University of Washington
mitchellsundt@gmail.com

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to a topic in the
Google Groups "ODK Community" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/opendatakit/3YPaBX1pBRE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--

Revolutionizing data collection since 2012.

Enketo https://enketo.org/ | LinkedIn
http://www.linkedin.com/company/enketo-llc | GitHub
https://github.com/enketo | Twitter https://twitter.com/enketo
| Blog http://blog.enketo.org/

Oh -- sorry! I'd assumed that he was getting errors with valid index
values. But, curiously, 0 is also treated as 1 in SurveyCTO -- probably a
change we made at some point to help with validation and other cases where
not-yet-initialized values were being passed as the index parameter.

Best,

Chris

··· On Wed, May 20, 2015 at 2:07 PM Mitch Sundt wrote:

Attached is a working form.

Not sure why this is different between SurveyCTO and base ODK Collect.

The problem seems to be that indexed-repeat, when given a position value
of 0, returned a set of nodes, rather than picking a specific one. The
position is 1-based.

I fixed the form by adding a guard condition in front of the indexed-repeat

On Wed, May 20, 2015 at 10:44 AM, Christopher Robert < crobert@surveycto.com> wrote:

Works okay with the latest SurveyCTO tools. You might open an issue with
the details of the error.

Best,

Chris


Christopher Robert
Dobility, Inc. (SurveyCTO)
http://www.surveycto.com/
http://blog.surveycto.com/

On Wed, May 20, 2015 at 1:36 PM Martijn van de Rijdt martijn@enketo.org wrote:

I'm trying to get a simple test form with the indexed-repeat() function
to work in the latest version of ODK Collect. This form throws an error
when creating the second repeat:
https://docs.google.com/spreadsheets/d/1VSv7Ck3JiPBd6LQRntOMfDHyoiUzSf2w7bKO19JW0QU/edit#gid=0

It passes ODK Validate. Does my form contain a mistake?

--
Revolutionizing data collection since 2012.

Enketo https://enketo.org/ | LinkedIn
http://www.linkedin.com/company/enketo-llc | GitHub
https://github.com/enketo | Twitter https://twitter.com/enketo
| Blog http://blog.enketo.org/

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to the Google
Groups "ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to the Google Groups
"ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
Mitch Sundt
Software Engineer
University of Washington
mitchellsundt@gmail.com

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to the Google Groups
"ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.