Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Forms that use a trigger with a null value to clear fields cannot be read from the cache #6583

Closed
grzesiek2010 opened this issue Feb 4, 2025 · 0 comments · Fixed by #6590
Assignees

Comments

@grzesiek2010
Copy link
Member

Problem description

The trigger column can be used to clear fields as described in the documentation at: https://docs.getodk.org/form-logic/#id26
However if instead of using an empty string "" there is no value at all the form can not be read from cache.

Steps to reproduce the problem

trigger.xlsx

  1. Open the attached form and close it.
  2. Open the form again.

In the logs there will be something like:

W/null: org.javarosa.core.util.externalizable.DeserializationException: No datatype registered to serialization code [00 27 51 2e] 
at org.javarosa.core.util.externalizable.ExtWrapTagged.readTag(ExtWrapTagged.java:100) 
at org.javarosa.core.util.externalizable.ExtWrapTagged.readExternal(ExtWrapTagged.java:63) 
at org.javarosa.core.util.externalizable.ExtUtil.read(ExtUtil.java:217) 
at org.javarosa.core.model.actions.SetValueAction.readExternal(SetValueAction.java:128) 
at org.javarosa.core.util.externalizable.ExtUtil.read(ExtUtil.java:183) 
at org.javarosa.core.util.externalizable.ExtWrapBase.readExternal(ExtWrapBase.java:56) 
at org.javarosa.core.util.externalizable.ExtUtil.read(ExtUtil.java:217) 
at org.javarosa.core.util.externalizable.ExtWrapTagged.readExternal(ExtWrapTagged.java:64) 
at org.javarosa.core.util.externalizable.ExtUtil.read(ExtUtil.java:217) 
at org.javarosa.core.util.externalizable.ExtWrapListPoly.readExternal(ExtWrapListPoly.java:54) 
at org.javarosa.core.util.externalizable.ExtUtil.read(ExtUtil.java:217) 
at org.javarosa.core.util.externalizable.ExtWrapMap.readExternal(ExtWrapMap.java:127) 
at org.javarosa.core.util.externalizable.ExtUtil.read(ExtUtil.java:217) 
at org.javarosa.core.model.actions.ActionController.readExternal(ActionController.java:109) 
at org.javarosa.core.util.externalizable.ExtUtil.read(ExtUtil.java:183) 
at org.javarosa.core.util.externalizable.ExtWrapBase.readExternal(ExtWrapBase.java:56) 
at org.javarosa.core.util.externalizable.ExtUtil.read(ExtUtil.java:217)

Expected behavior

There should be no exception and the form should be loaded from cache.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: done
Development

Successfully merging a pull request may close this issue.

1 participant