Strange error message in ODK Collect

I am getting the following error message on one of my ODK forms in ODK
Collect:
java.lang.ClassCastException: java.lang.Boolean cannot be cast to
java.lang.String

Does anyone have any idea what might be causing this error???

Hi Karen
There must be a data type that has been specified wrongly.
For example if you have a 'date' that is being stored as an 'integer'.
In this case it looks like you have a boolean (yes=1, no=2) being stored as a string.

Check in the relevance column of your .xls sheet and make sure that If relevance ${a}=b then both a and b are boolean or both a and b are strings.

··· On Saturday, April 26, 2014 5:48:11 AM UTC+3, Karen Levy wrote: > I am getting the following error message on one of my ODK forms in ODK Collect: > java.lang.ClassCastException: java.lang.Boolean cannot be cast to java.lang.String > > > > Does anyone have any idea what might be causing this error???

And if you are stumped as to where the problem is, if you use a logcat tool
( http://code.google.com/p/opendatakit/wiki/CollectTroubleshooting ), and
locate the output text that corresponds to the pop-up in ODK Collect, there
can sometimes be a line nearby that will better identify the constraint or
relevant expression that is causing the problem.

··· On Sat, Apr 26, 2014 at 8:28 AM, wrote:

On Saturday, April 26, 2014 5:48:11 AM UTC+3, Karen Levy wrote:

I am getting the following error message on one of my ODK forms in ODK
Collect:
java.lang.ClassCastException: java.lang.Boolean cannot be cast to
java.lang.String

Does anyone have any idea what might be causing this error???

Hi Karen
There must be a data type that has been specified wrongly.
For example if you have a 'date' that is being stored as an 'integer'.
In this case it looks like you have a boolean (yes=1, no=2) being stored
as a string.

Check in the relevance column of your .xls sheet and make sure that If
relevance ${a}=b then both a and b are boolean or both a and b are strings.

--

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 very much for the suggestion Leah.

··· On Apr 26, 2014, at 11:28 AM, leah.ndikuwera@evidenceaction.org wrote:

On Saturday, April 26, 2014 5:48:11 AM UTC+3, Karen Levy wrote:

I am getting the following error message on one of my ODK forms in ODK Collect:
java.lang.ClassCastException: java.lang.Boolean cannot be cast to java.lang.String

Does anyone have any idea what might be causing this error???

Hi Karen
There must be a data type that has been specified wrongly.
For example if you have a 'date' that is being stored as an 'integer'.
In this case it looks like you have a boolean (yes=1, no=2) being stored as a string.

Check in the relevance column of your .xls sheet and make sure that If relevance ${a}=b then both a and b are boolean or both a and b are strings.

--

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/cpvhcXpECYQ/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.

Thanks Mitch, great tip!

··· On Apr 28, 2014, at 1:45 PM, Mitch Sundt wrote:

And if you are stumped as to where the problem is, if you use a logcat tool ( http://code.google.com/p/opendatakit/wiki/CollectTroubleshooting ), and locate the output text that corresponds to the pop-up in ODK Collect, there can sometimes be a line nearby that will better identify the constraint or relevant expression that is causing the problem.

On Sat, Apr 26, 2014 at 8:28 AM, leah.ndikuwera@evidenceaction.org wrote:
On Saturday, April 26, 2014 5:48:11 AM UTC+3, Karen Levy wrote:

I am getting the following error message on one of my ODK forms in ODK Collect:
java.lang.ClassCastException: java.lang.Boolean cannot be cast to java.lang.String

Does anyone have any idea what might be causing this error???

Hi Karen
There must be a data type that has been specified wrongly.
For example if you have a 'date' that is being stored as an 'integer'.
In this case it looks like you have a boolean (yes=1, no=2) being stored as a string.

Check in the relevance column of your .xls sheet and make sure that If relevance ${a}=b then both a and b are boolean or both a and b are strings.

--

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/cpvhcXpECYQ/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.