You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am assuming this is due to Pyxform setting the root node as data now instead of using the XLS filename.
Is this error really intended? If so, can the message for this case be changed to something more suitable - i.e., indicating "data" is a reserved word and cannot be used for a group/repeating group name rather than telling the user there is a duplicate (that they can't see)? If this error can be avoided, that would be preferred since we already have forms with groups named data.
I noticed that having an item named data does not cause any errors in Pyxform or Validate. Is it safe to use that as an item name?
The text was updated successfully, but these errors were encountered:
I don't think data is handled any differently as any other duplicate nodeName, but we can definitely do that.
Any old forms that use data but don't have that root node name, should not get any error message.
if duplicate node error is due to data being root, change to a more helpful message
look into question named data (and root node name data)
It's definitely safest to avoid duplicates because Enketo has been optimized knowing that pyxform has that rule. However, I think a single question named data (and a root named data) may be an acceptable risk though.
If I try to convert a form that has a group named "data", I get the following response:
Error: There are two sections with the name data.
Test form: Data1 version 2.zip
I am assuming this is due to Pyxform setting the root node as data now instead of using the XLS filename.
Is this error really intended? If so, can the message for this case be changed to something more suitable - i.e., indicating "data" is a reserved word and cannot be used for a group/repeating group name rather than telling the user there is a duplicate (that they can't see)? If this error can be avoided, that would be preferred since we already have forms with groups named data.
I noticed that having an item named data does not cause any errors in Pyxform or Validate. Is it safe to use that as an item name?
The text was updated successfully, but these errors were encountered: