ODK Briefcase Error on Export

when i try to export data of Briefcase Storage i get this error.

2019-06-01 11:21:31,121 [Thread-8] INFO XFormParser - Creating FormDef from parsed XML finished in 37,491 ms
2019-06-01 11:21:31,121 [Thread-8] INFO o.j.core.services.locale.Localizer - getLocaleData finished in 0,557 ms
2019-06-01 11:21:31,122 [Thread-8] ERROR o.o.briefcase.ui.export.ExportPanel - Error while exporting forms
java.lang.RuntimeException: Error evaluating field 'cargo': The problem was located in calculate expression for /Elecciones_Medellin_V3/GP/cargo
XPath evaluation: cannot handle function 'pulldata'
at org.javarosa.core.model.LatestDagBase.evaluateTriggerable(LatestDagBase.java:139)
at org.javarosa.core.model.LatestDagBase.doEvaluateTriggerables(LatestDagBase.java:63)
at org.javarosa.core.model.Safe2014DagImpl.evaluateTriggerables(Safe2014DagImpl.java:366)
at org.javarosa.core.model.Safe2014DagImpl.initializeTriggerables(Safe2014DagImpl.java:452)
at org.javarosa.core.model.Safe2014DagImpl.initializeTriggerables(Safe2014DagImpl.java:430)
at org.javarosa.core.model.FormDef.initializeTriggerables(FormDef.java:699)
at org.javarosa.core.model.FormDef.initialize(FormDef.java:1237)
at org.opendatakit.briefcase.export.FormDefinition.getFormControls(FormDefinition.java:119)
at org.opendatakit.briefcase.export.FormDefinition.from(FormDefinition.java:114)
at org.opendatakit.briefcase.ui.export.ExportPanel.lambda$export$8(ExportPanel.java:198)
at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)
at java.util.stream.ReferencePipeline$11$1.accept(ReferencePipeline.java:373)
at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1382)
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:482)
at java.util.stream.ForEachOps$ForEachTask.compute(ForEachOps.java:291)
at java.util.concurrent.CountedCompleter.exec(CountedCompleter.java:731)
at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
at java.util.concurrent.ForkJoinTask.doInvoke(ForkJoinTask.java:401)
at java.util.concurrent.ForkJoinTask.invoke(ForkJoinTask.java:734)
at java.util.stream.ForEachOps$ForEachOp.evaluateParallel(ForEachOps.java:160)
at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateParallel(ForEachOps.java:174)
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:233)
at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418)
at org.opendatakit.briefcase.ui.export.ExportPanel.export(ExportPanel.java:184)
at java.lang.Thread.run(Thread.java:748)
Caused by: org.javarosa.xpath.XPathUnhandledException: The problem was located in calculate expression for /Elecciones_Medellin_V3/GP/cargo
XPath evaluation: cannot handle function 'pulldata'
at org.javarosa.xpath.expr.XPathFuncExpr.eval(XPathFuncExpr.java:478)
at org.javarosa.xpath.XPathConditional.evalRaw(XPathConditional.java:71)
at org.javarosa.core.model.condition.Triggerable.evalRaw(Triggerable.java:219)
at org.javarosa.core.model.condition.Recalculate.eval(Recalculate.java:63)
at org.javarosa.core.model.condition.Triggerable.apply(Triggerable.java:152)
at org.javarosa.core.model.LatestDagBase.evaluateTriggerable(LatestDagBase.java:125)
... 24 common frames omitted

1. What is the problem? Be very detailed.

  1. Pull data from Aggregate
  2. Try to export Data, but fails

2. What app or server are you using and on what device and operating system? Include version numbers.
ODK Briefcase 1.15.0
ODK Aggregate 2.0

On version 1.14 of briefcase works fine

Hi, @jodmoramo!

It looks like Briefcase's trying to parse a pulldata() expression in your form's definition, which should not be an issue while exporting it.

I've opened an issue to track this and work out a fix. https://github.com/opendatakit/briefcase/issues/741

1 Like

Thanks for looking into this! I have faced the same error with version 1.15, I'm just using the older version now so we can download with pulldata().
Best,
Spike

1 Like

Hi, @spike!

We've just released a beta version of Briefcase v1.16 that brings a solution for your pulldata issue. It would be great if you could try it and give us feedback about it.

You can get Briefcase v1.16.0-beta.0 at ODK Briefcase v1.16 Beta