Logic in repeat groups

Hi all,

I am having trouble using the logic in repeat groups. I have a repeat group
in two of my forms and in each of them I need to be able to use skip logic.
it seemed to be working ok, but then we got the error message"Display
Condition Error: Error in calculation for /data/consent_given/contact_DSD
Xpath nodeset has more than one node" I think this is to do with the answer
to a repeat question being different on two different counts which has
confused it. I have read through the page on using logic in repeat groups,
and I have tried to put in the …/ to link the logic to the specific count,
but it keeps giving me error messages like “Display Condition Error: Error
in calculation for /data/consent_given/contact_DSD Logic references
…/Birth_cert which is not a valid question or value. You may have
forgotten to include the full path to the question (e.g.
/data/…/Birth_cert). (Expanded reference:
/data/consent_given[1]/Birth_cert)”. The path seems really long, and I have
tried including the …/ in different ways and places, but it never seems to
work.

Help?

Many thanks,
Erika

Hi Erika,

Can you send along a screenshot of the form’s question tree that shows the
subsection of the form tree which contains these questions? It would help
to determine the proper format of the relative reference in the form.

-Clayton

··· On Wed, May 3, 2017 at 7:40 AM, wrote:

Hi all,

I am having trouble using the logic in repeat groups. I have a repeat
group in two of my forms and in each of them I need to be able to use skip
logic. it seemed to be working ok, but then we got the error
message"Display Condition Error: Error in calculation for
/data/consent_given/contact_DSD Xpath nodeset has more than one node" I
think this is to do with the answer to a repeat question being different on
two different counts which has confused it. I have read through the page on
using logic in repeat groups, and I have tried to put in the …/ to link
the logic to the specific count, but it keeps giving me error messages like
"Display Condition Error: Error in calculation for
/data/consent_given/contact_DSD Logic references …/Birth_cert which is
not a valid question or value. You may have forgotten to include the full
path to the question (e.g. /data/…/Birth_cert). (Expanded reference:
/data/consent_given[1]/Birth_cert)". The path seems really long, and I
have tried including the …/ in different ways and places, but it never
seems to work.

Help?

Many thanks,
Erika


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

Hi Clayton,

Here is a screen shot of that part of the question tree.

[image: Inline image 1]

Thanks!
Erika

··· On Wed, May 3, 2017 at 11:25 PM, Clayton Sims wrote:

Hi Erika,

Can you send along a screenshot of the form’s question tree that shows the
subsection of the form tree which contains these questions? It would help
to determine the proper format of the relative reference in the form.

-Clayton

On Wed, May 3, 2017 at 7:40 AM, berube.erika@gmail.com wrote:

Hi all,

I am having trouble using the logic in repeat groups. I have a repeat
group in two of my forms and in each of them I need to be able to use skip
logic. it seemed to be working ok, but then we got the error
message"Display Condition Error: Error in calculation for
/data/consent_given/contact_DSD Xpath nodeset has more than one node" I
think this is to do with the answer to a repeat question being different on
two different counts which has confused it. I have read through the page on
using logic in repeat groups, and I have tried to put in the …/ to link
the logic to the specific count, but it keeps giving me error messages like
“Display Condition Error: Error in calculation for
/data/consent_given/contact_DSD Logic references …/Birth_cert which is
not a valid question or value. You may have forgotten to include the full
path to the question (e.g. /data/…/Birth_cert). (Expanded reference:
/data/consent_given[1]/Birth_cert)”. The path seems really long, and I
have tried including the …/ in different ways and places, but it never
seems to work.

Help?

Many thanks,
Erika


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


You received this message because you are subscribed to a topic in the
Google Groups “commcare-users” group.
To unsubscribe from this topic, visit https://groups.google.com/d/
topic/commcare-users/19QSv25o7xs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
commcare-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Hi Erika,

It looks like your repeat is inside of the consent_given/ group. are both
birth_cert and contact_DSD expected to be inside of the repeat group? The
error message is expressing that contact_DSD is not, in fact in the repeat
group, which may be causing the issue.

-Clayton

··· On Thu, May 4, 2017 at 5:23 AM, Erika Cleborne-Berube < berube.erika@gmail.com> wrote:

Hi Clayton,

Here is a screen shot of that part of the question tree.

[image: Inline image 1]

Thanks!
Erika

On Wed, May 3, 2017 at 11:25 PM, Clayton Sims csims@dimagi.com wrote:

Hi Erika,

Can you send along a screenshot of the form’s question tree that shows
the subsection of the form tree which contains these questions? It would
help to determine the proper format of the relative reference in the form.

-Clayton

On Wed, May 3, 2017 at 7:40 AM, berube.erika@gmail.com wrote:

Hi all,

I am having trouble using the logic in repeat groups. I have a repeat
group in two of my forms and in each of them I need to be able to use skip
logic. it seemed to be working ok, but then we got the error
message"Display Condition Error: Error in calculation for
/data/consent_given/contact_DSD Xpath nodeset has more than one node" I
think this is to do with the answer to a repeat question being different on
two different counts which has confused it. I have read through the page on
using logic in repeat groups, and I have tried to put in the …/ to link
the logic to the specific count, but it keeps giving me error messages like
“Display Condition Error: Error in calculation for
/data/consent_given/contact_DSD Logic references …/Birth_cert which is
not a valid question or value. You may have forgotten to include the full
path to the question (e.g. /data/…/Birth_cert). (Expanded reference:
/data/consent_given[1]/Birth_cert)”. The path seems really long, and I
have tried including the …/ in different ways and places, but it never
seems to work.

Help?

Many thanks,
Erika


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


You received this message because you are subscribed to a topic in the
Google Groups “commcare-users” group.
To unsubscribe from this topic, visit https://groups.google.com/d/to
pic/commcare-users/19QSv25o7xs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
commcare-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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

Hi Clayton, Thanks very much! Contact DSD I moved out of the contact group
to the end of the form to appear as a reminder to the team of what needs to
happen next. I can put it back into the repeat group though if that is what
is causing the error.

Do I still need to have the …/ or not?

KR
Erika

··· On Thu, May 4, 2017 at 10:52 PM, Clayton Sims wrote:

Hi Erika,

It looks like your repeat is inside of the consent_given/ group. are both
birth_cert and contact_DSD expected to be inside of the repeat group? The
error message is expressing that contact_DSD is not, in fact in the repeat
group, which may be causing the issue.

-Clayton

On Thu, May 4, 2017 at 5:23 AM, Erika Cleborne-Berube < berube.erika@gmail.com> wrote:

Hi Clayton,

Here is a screen shot of that part of the question tree.

[image: Inline image 1]

Thanks!
Erika

On Wed, May 3, 2017 at 11:25 PM, Clayton Sims csims@dimagi.com wrote:

Hi Erika,

Can you send along a screenshot of the form’s question tree that shows
the subsection of the form tree which contains these questions? It would
help to determine the proper format of the relative reference in the form.

-Clayton

On Wed, May 3, 2017 at 7:40 AM, berube.erika@gmail.com wrote:

Hi all,

I am having trouble using the logic in repeat groups. I have a repeat
group in two of my forms and in each of them I need to be able to use skip
logic. it seemed to be working ok, but then we got the error
message"Display Condition Error: Error in calculation for
/data/consent_given/contact_DSD Xpath nodeset has more than one node"
I think this is to do with the answer to a repeat question being different
on two different counts which has confused it. I have read through the page
on using logic in repeat groups, and I have tried to put in the …/ to link
the logic to the specific count, but it keeps giving me error messages like
“Display Condition Error: Error in calculation for
/data/consent_given/contact_DSD Logic references …/Birth_cert which
is not a valid question or value. You may have forgotten to include the
full path to the question (e.g. /data/…/Birth_cert). (Expanded reference:
/data/consent_given[1]/Birth_cert)”. The path seems really long, and I
have tried including the …/ in different ways and places, but it never
seems to work.

Help?

Many thanks,
Erika


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


You received this message because you are subscribed to a topic in the
Google Groups “commcare-users” group.
To unsubscribe from this topic, visit https://groups.google.com/d/to
pic/commcare-users/19QSv25o7xs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
commcare-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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


You received this message because you are subscribed to a topic in the
Google Groups “commcare-users” group.
To unsubscribe from this topic, visit https://groups.google.com/d/
topic/commcare-users/19QSv25o7xs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
commcare-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Hi Erika,

The issue is that “…/” means essentially “A question in the same group as
this one”

If you’ve moved Contact DSD out of the repeat, you won’t be able to
reference a question inside of the repeat because there will be more than
one “birth_cert” question (there will be one for each repeated group).

Moving Contact DSD back into the repeat should allow the logic to function.

-Clayton

··· On Fri, May 5, 2017 at 2:23 AM, Erika Cleborne-Berube < berube.erika@gmail.com> wrote:

Hi Clayton, Thanks very much! Contact DSD I moved out of the contact group
to the end of the form to appear as a reminder to the team of what needs to
happen next. I can put it back into the repeat group though if that is what
is causing the error.

Do I still need to have the …/ or not?

KR
Erika

On Thu, May 4, 2017 at 10:52 PM, Clayton Sims csims@dimagi.com wrote:

Hi Erika,

It looks like your repeat is inside of the consent_given/ group. are both
birth_cert and contact_DSD expected to be inside of the repeat group? The
error message is expressing that contact_DSD is not, in fact in the repeat
group, which may be causing the issue.

-Clayton

On Thu, May 4, 2017 at 5:23 AM, Erika Cleborne-Berube < berube.erika@gmail.com> wrote:

Hi Clayton,

Here is a screen shot of that part of the question tree.

[image: Inline image 1]

Thanks!
Erika

On Wed, May 3, 2017 at 11:25 PM, Clayton Sims csims@dimagi.com wrote:

Hi Erika,

Can you send along a screenshot of the form’s question tree that shows
the subsection of the form tree which contains these questions? It would
help to determine the proper format of the relative reference in the form.

-Clayton

On Wed, May 3, 2017 at 7:40 AM, berube.erika@gmail.com wrote:

Hi all,

I am having trouble using the logic in repeat groups. I have a repeat
group in two of my forms and in each of them I need to be able to use skip
logic. it seemed to be working ok, but then we got the error
message"Display Condition Error: Error in calculation for
/data/consent_given/contact_DSD Xpath nodeset has more than one node"
I think this is to do with the answer to a repeat question being different
on two different counts which has confused it. I have read through the page
on using logic in repeat groups, and I have tried to put in the …/ to link
the logic to the specific count, but it keeps giving me error messages like
“Display Condition Error: Error in calculation for
/data/consent_given/contact_DSD Logic references …/Birth_cert which
is not a valid question or value. You may have forgotten to include the
full path to the question (e.g. /data/…/Birth_cert). (Expanded reference:
/data/consent_given[1]/Birth_cert)”. The path seems really long, and
I have tried including the …/ in different ways and places, but it never
seems to work.

Help?

Many thanks,
Erika


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


You received this message because you are subscribed to a topic in the
Google Groups “commcare-users” group.
To unsubscribe from this topic, visit https://groups.google.com/d/to
pic/commcare-users/19QSv25o7xs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
commcare-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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


You received this message because you are subscribed to a topic in the
Google Groups “commcare-users” group.
To unsubscribe from this topic, visit https://groups.google.com/d/to
pic/commcare-users/19QSv25o7xs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
commcare-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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