# Help with publishing XLSform

**URL:** <https://forum.getodk.org/t/help-with-publishing-xlsform/3372>\
**Category:** Support\
**Created:** [July 3, 2014, 4:40pm UTC](https://forum.getodk.org/t/help-with-publishing-xlsform/3372 "2014-07-03T16:40:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Josh\_Jeong](https://getodk.b-cdn.net/letter_avatar_proxy/v4/letter/j/e8c25b/32.png) [@Josh\_Jeong](https://forum.getodk.org/u/Josh_Jeong)\
**Post date:** [July 3, 2014, 4:40pm UTC](https://forum.getodk.org/t/help-with-publishing-xlsform/3372/1 "2014-07-03T16:40:14Z")

</div>

ODK Validate Errors: org.javarosa.core.log.WrappedException: Error evaluating /attempt2: java.lang.ClassCastException: java.lang.Double cannot be cast to java.lang.String =\> java.lang.ClassCastException[java.lang.Double cannot be cast to java.lang.String] \>\> Something broke the parser. See above for a hint. Result: Invalid

Not quite sure how to address this error message as "attempt2" is the saved file name of the xls and is not included anywhere in the form itself...

Thank you in advance,

Josh

---

<div class="post-metadata">

**Author:** ![Mitch\_S](https://getodk.b-cdn.net/letter_avatar_proxy/v4/letter/m/3ec8ea/32.png) [@Mitch\_S](https://forum.getodk.org/u/Mitch_S)\
**Post date:** [July 3, 2014, 6:00pm UTC](https://forum.getodk.org/t/help-with-publishing-xlsform/3372/2 "2014-07-03T18:00:13Z")

</div>

can't really help, because I have no form to work off of.

One of your fields in the top level of the form must be using a number  
where a string value is expected without first converting the number to a  
string using the string(${fieldname}) function.

> **···**
>
> On Thu, Jul 3, 2014 at 9:40 AM, Josh Jeong wrote:
> 
> > ODK Validate Errors: org.javarosa.core.log.WrappedException: Error  
> > evaluating /attempt2: java.lang.ClassCastException: java.lang.Double cannot  
> > be cast to java.lang.String =\>  
> > java.lang.ClassCastException[java.lang.Double cannot be cast to  
> > java.lang.String] \>\> Something broke the parser. See above for a hint.  
> > Result: Invalid
> > 
> > Not quite sure how to address this error message as "attempt2" is the  
> > saved file name of the xls and is not included anywhere in the form  
> > itself...
> > 
> > Thank you in advance,
> > 
> > Josh
> > 
> > ## --
> > 
> > Post: [opendatakit@googlegroups.com](mailto:opendatakit@googlegroups.com)  
> > Unsubscribe: [opendatakit+unsubscribe@googlegroups.com](mailto:opendatakit+unsubscribe@googlegroups.com)  
> > Options: [http://groups.google.com/group/opendatakit?hl=en](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](mailto:opendatakit+unsubscribe@googlegroups.com).  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> 
> --  
> Mitch Sundt  
> Software Engineer  
> University of Washington  
> [mitchellsundt@gmail.com](mailto:mitchellsundt@gmail.com)

---

<div class="post-metadata">

**Author:** ![crobert](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/crobert/32/1613_2.png) [@crobert](https://forum.getodk.org/u/crobert)\
**Post date:** [July 3, 2014, 6:08pm UTC](https://forum.getodk.org/t/help-with-publishing-xlsform/3372/3 "2014-07-03T18:08:22Z")

</div>

And, sorry, we've been trying to improve the degree to which the error  
message references the offending field -- but there are still cases where  
it does a bad job (and this seems to be one of them).

Best,

Chris

> **···**
>
> On Thu, Jul 3, 2014 at 2:00 PM, Mitch Sundt wrote:
> 
> > can't really help, because I have no form to work off of.
> > 
> > One of your fields in the top level of the form must be using a number  
> > where a string value is expected without first converting the number to a  
> > string using the string(${fieldname}) function.
> > 
> > On Thu, Jul 3, 2014 at 9:40 AM, Josh Jeong [joshuadjeong@gmail.com](mailto:joshuadjeong@gmail.com) wrote:
> > 
> > > ODK Validate Errors: org.javarosa.core.log.WrappedException: Error  
> > > evaluating /attempt2: java.lang.ClassCastException: java.lang.Double cannot  
> > > be cast to java.lang.String =\>  
> > > java.lang.ClassCastException[java.lang.Double cannot be cast to  
> > > java.lang.String] \>\> Something broke the parser. See above for a hint.  
> > > Result: Invalid
> > > 
> > > Not quite sure how to address this error message as "attempt2" is the  
> > > saved file name of the xls and is not included anywhere in the form  
> > > itself...
> > > 
> > > Thank you in advance,
> > > 
> > > Josh
> > > 
> > > ## --
> > > 
> > > Post: [opendatakit@googlegroups.com](mailto:opendatakit@googlegroups.com)  
> > > Unsubscribe: [opendatakit+unsubscribe@googlegroups.com](mailto:opendatakit+unsubscribe@googlegroups.com)  
> > > Options: [http://groups.google.com/group/opendatakit?hl=en](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](mailto:opendatakit+unsubscribe@googlegroups.com).  
> > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > 
> > --  
> > Mitch Sundt  
> > Software Engineer  
> > University of Washington  
> > [mitchellsundt@gmail.com](mailto:mitchellsundt@gmail.com)
> > 
> > ## --
> > 
> > Post: [opendatakit@googlegroups.com](mailto:opendatakit@googlegroups.com)  
> > Unsubscribe: [opendatakit+unsubscribe@googlegroups.com](mailto:opendatakit+unsubscribe@googlegroups.com)  
> > Options: [http://groups.google.com/group/opendatakit?hl=en](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](mailto:opendatakit+unsubscribe@googlegroups.com).  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
