Problem with indexed-repeat() function

Hi All,

I am using the indexed-repeat() function. Its working on SurveyCTO but when
the same code is converted to an xml form and uploaded on a local server it
uploads successfully but gives an error while filling in the form. Any
ideas of what could be wrong?

Thanks.

There are numerous questions here:

  • are you trying to use Enketo or ODK Collect?
  • what ODK Collect version are you using?
  • what server are you uploading to? ODK Aggregate or something else?

And, as always, providing a form that has been stripped down to just the
questions that are needed to demonstrate the problem will greatly increase
the likelihood that anyone will attempt a response.

··· On Mon, Feb 9, 2015 at 5:17 AM, wrote:

Hi All,

I am using the indexed-repeat() function. Its working on SurveyCTO but
when the same code is converted to an xml form and uploaded on a local
server it uploads successfully but gives an error while filling in the
form. Any ideas of what could be wrong?

Thanks.

--

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

Maybe i'm wrong, but, i can't find the "consent" question. You should post
an screenshot from the error.

··· El lunes, 9 de febrero de 2015, 10:17:26 (UTC-3), ceda...@gmail.com escribió: > > Hi All, > > I am using the indexed-repeat() function. Its working on SurveyCTO but > when the same code is converted to an xml form and uploaded on a local > server it uploads successfully but gives an error while filling in the > form. Any ideas of what could be wrong? > > Thanks. >

Hi Mitch,

Thanks for you response. Below are responses to the questions you asked

  • I am using ODK Collect.
  • The version is the most recent one.
  • The server I am uploading to is ODK Aggregate

Best

Sample1.xlsx (88.6 KB)

··· On Monday, February 9, 2015 at 9:20:18 PM UTC+3, Mitch Sundt wrote: > > There are numerous questions here: > > - are you trying to use Enketo or ODK Collect? > - what ODK Collect version are you using? > - what server are you uploading to? ODK Aggregate or something else? > > And, as always, providing a form that has been stripped down to just the > questions that are needed to demonstrate the problem will greatly increase > the likelihood that anyone will attempt a response. > > > > On Mon, Feb 9, 2015 at 5:17 AM, <ceda...@gmail.com > wrote: > >> Hi All, >> >> I am using the indexed-repeat() function. Its working on SurveyCTO but >> when the same code is converted to an xml form and uploaded on a local >> server it uploads successfully but gives an error while filling in the >> form. Any ideas of what could be wrong? >> >> Thanks. >> >> -- >> -- >> Post: opend...@googlegroups.com >> Unsubscribe: opendatakit...@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...@googlegroups.com . >> For more options, visit https://groups.google.com/d/optout. >> > > > > -- > Mitch Sundt > Software Engineer > University of Washington > mitche...@gmail.com >

Hi!
Can you post the error you say? And, with the example you provide, how we
can generate the error?
Thanks

··· Il giorno Tue Feb 10 2015 at 05:49:19 ha scritto:

Hi Mitch,

Thanks for you response. Below are responses to the questions you asked

  • I am using ODK Collect.
  • The version is the most recent one.
  • The server I am uploading to is ODK Aggregate

Best

On Monday, February 9, 2015 at 9:20:18 PM UTC+3, Mitch Sundt wrote:

There are numerous questions here:

  • are you trying to use Enketo or ODK Collect?
  • what ODK Collect version are you using?
  • what server are you uploading to? ODK Aggregate or something else?

And, as always, providing a form that has been stripped down to just the
questions that are needed to demonstrate the problem will greatly increase
the likelihood that anyone will attempt a response.

On Mon, Feb 9, 2015 at 5:17 AM, ceda...@gmail.com wrote:

Hi All,

I am using the indexed-repeat() function. Its working on SurveyCTO but
when the same code is converted to an xml form and uploaded on a local
server it uploads successfully but gives an error while filling in the
form. Any ideas of what could be wrong?

Thanks.

--

--
Post: opend...@googlegroups.com
Unsubscribe: opendatakit...@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...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--

Mitch Sundt

Software Engineer
University of Washington

mitche...@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.

Hi all,

I try to understand index-repeat () and your example is interesting but as
I have the error (joined image).
You solved this error (since 2015 I hope :wink: )

"Error. There has a problem trying to replace ${consent} with XPath to the
survey element named 'consent'. There is no survey element with this name."

Daniel

··· Le mardi 10 février 2015 04:49:17 UTC, sok...@busaracenter.org a écrit : > > Hi Mitch, > > Thanks for you response. Below are responses to the questions you asked > - I am using ODK Collect. > - The version is the most recent one. > - The server I am uploading to is ODK Aggregate > > Best > > On Monday, February 9, 2015 at 9:20:18 PM UTC+3, Mitch Sundt wrote: >> >> There are numerous questions here: >> >> - are you trying to use Enketo or ODK Collect? >> - what ODK Collect version are you using? >> - what server are you uploading to? ODK Aggregate or something else? >> >> And, as always, providing a form that has been stripped down to just the >> questions that are needed to demonstrate the problem will greatly increase >> the likelihood that anyone will attempt a response. >> >> >> >> On Mon, Feb 9, 2015 at 5:17 AM, wrote: >> >>> Hi All, >>> >>> I am using the indexed-repeat() function. Its working on SurveyCTO but >>> when the same code is converted to an xml form and uploaded on a local >>> server it uploads successfully but gives an error while filling in the >>> form. Any ideas of what could be wrong? >>> >>> Thanks. >>> >>> -- >>> -- >>> Post: opend...@googlegroups.com >>> Unsubscribe: opendatakit...@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...@googlegroups.com. >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> >> >> -- >> Mitch Sundt >> Software Engineer >> University of Washington >> mitche...@gmail.com >> >

Dear David,
As the error message States, there's no element in the survey named
"consent". There's a possibility of a typo. Let me know if anything is
unclear.

Thanks in advance!
Stephen

··· On May 14, 2017 4:53 PM, "Daniel Couret" wrote:

Hi all,

I try to understand index-repeat () and your example is interesting but as
I have the error (joined image).
You solved this error (since 2015 I hope :wink: )

"Error. There has a problem trying to replace ${consent} with XPath to the
survey element named 'consent'. There is no survey element with this name."

Daniel

Le mardi 10 février 2015 04:49:17 UTC, sok...@busaracenter.org a écrit :

Hi Mitch,

Thanks for you response. Below are responses to the questions you asked

  • I am using ODK Collect.
  • The version is the most recent one.
  • The server I am uploading to is ODK Aggregate

Best

On Monday, February 9, 2015 at 9:20:18 PM UTC+3, Mitch Sundt wrote:

There are numerous questions here:

  • are you trying to use Enketo or ODK Collect?
  • what ODK Collect version are you using?
  • what server are you uploading to? ODK Aggregate or something else?

And, as always, providing a form that has been stripped down to just the
questions that are needed to demonstrate the problem will greatly increase
the likelihood that anyone will attempt a response.

On Mon, Feb 9, 2015 at 5:17 AM, ceda...@gmail.com wrote:

Hi All,

I am using the indexed-repeat() function. Its working on SurveyCTO but
when the same code is converted to an xml form and uploaded on a local
server it uploads successfully but gives an error while filling in the
form. Any ideas of what could be wrong?

Thanks.

--

Post: opend...@googlegroups.com
Unsubscribe: opendatakit...@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...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
Mitch Sundt
Software Engineer
University of Washington
mitche...@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/OfCByjA9tD0/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.

Hi!
Since, its an old topic. But, this comes to my eyes and I just check the xls file. I found that there are some missing variables which are used in relevant and choice_filter. Maybe another issue comes because the xml file was downloaded from surveyCTO platform. SurveyCTO automatically create some variables, which don't work in ODK aggregate.

Please give a look on the updated file. Sample1.xlsx (80.4 KB) Sample1.xml (183.1 KB)