understading pulldata()

202 views
Skip to first unread message

Bill Olander

unread,
Jul 8, 2016, 11:44:12 AM7/8/16
to enketo-users
Hi Enketo Gods,
   I'd like to use enketo or enketo express to collect data offline and send it to my ODK Aggregate Server (v1.4.7).   In the form, I'd like to call up previously used responses using the pulldata() function.  I've done this once or twice before in SurveyCTO.
   Just to get started, I loaded the Sample-Preloading form from https://opendatakit.org/help/form-design/data-preloading/.  When trying the form out, I get the error below.  Any documentation, wisdom, insults, advice on how to do pulldata() with enketo + Aggregate ?  
Thanks,
Bill

Loading Error

Error occured during the loading of this form. It is recommended not to use this form for data entry until this is resolved.

Please contact sup...@enketo.org with the link to this page and the error message below:

  • FormLogicError: instance "hhplotdetails" does not exist in model

Martijn van de Rijdt

unread,
Jul 8, 2016, 12:57:06 PM7/8/16
to enketo...@googlegroups.com
Hi Bill,

:). Pulldata() is now supported in Enketo but it requires the latest pyxform (after September 2015) to convert your XLS Form into a valid XForm. If you are handcoding your XForm, this may help with the proper XForm syntax: https://github.com/XLSForm/pyxform/issues/43. I believe the public convertor on opendatakit.org is not up-to-date.

Cheers,
Martijn

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


-- 
Revolutionizing data collection since 2012.

Enketo    |    LinkedIn    |    GitHub    |    Twitter    |    Blog

Bill Olander

unread,
Jul 11, 2016, 8:21:17 AM7/11/16
to enketo-users
Hey Martijn,
   Thanks for the speedy reply!  I was lazy and tried out the converter at ONA which I read is up to date.  
   So that solved step #1, but now when running the form I get the error attached.
   Could you tell me -- how do I tweak the .xls form (or less preferred the .xml form) so enketo knows where to look for the .csv form 'hhplotdetails' ?
Pasted image at 2016_07_11 09_23 AM.png

Martijn van de Rijdt

unread,
Jul 11, 2016, 10:57:12 AM7/11/16
to enketo...@googlegroups.com
Hi Bill,

The XLSForm convertor will add the reference to hhplotdetails.csv in the XForm that tells Enketo where to find it (you can double check by searching the XForm for "src=", but indeed Ona is definitely using a supported version as they were behind adding the pulldata() functionality to Enketo). In this case, could it be that hhplotdetails.csv was not uploaded to your form?

Cheers,
Martijn
Reply all
Reply to author
Forward
0 new messages