Translate() function not working in Enketo

Error message:
message: callNative() can't handle nodeset functions yet for translate()

I’m using Enketo version v2.6.2.

Would you mind checking it (using the same xlsform) with one of the servers hosted publicly to see if it’s working out there?

Yes it’s working on Kobotoolbox.org… I’m wondering why it’s not working for me, because I’m using the latest version and this used to work when I was using an older version.

Hi @ks_1, I would recommend rolling back your version of Enketo Express to the same as ee.kobotoolbox.org as that’s currently supported by Kobo.

3 Likes

@martijnr have you come across this issue in the latest releases of Enketo Express?

2 Likes

Thanks! Looks like a bug in the new XPath evaluator. Could you post the complete formula below please?

2 Likes

@Josh Thanks, I’ll try that.

@martijnr here’s the full error:

1 Like

Thank you! The bug can be tracked here: translate( /path/to/node, 'abc', 'ABC' ) not working (and other native functions) · Issue #96 · enketo/openrosa-xpath-evaluator · GitHub

3 Likes

Reverted to v2.5.6 yesterday, problem solved. Thanks @Josh

3 Likes