Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

...

...

...

...

...

...

...

...

...

...

This page will help you to interpret some of the common error messages you find while trying to make builds of your application.

Click below to select an error that you are seeing.

Table of Contents
minLevel1
maxLevel6
outlinefalse
stylenone
typelist
printabletrue

Invalid XML in Form

You have written something invalid into one of your forms. 

...

In your form, the display or calculate logic in a question references itself.  This is normally caused by using a "." in the display logic or calculate logic for a question.  Please check the logic in the questions listed at the bottom of the error. 

Validation Error: For input string: "GPS"

The property /data/GPS is set to take default value 'GPS', but this is not a valid value for this question type. Remove the default value.

Case sharing for web users

When case sharing is turned on, it will often break when you attempt to preview a form because a web user cannot be in a case sharing group. The error message will look like:

"Logic references instance(groups)/groups/group/@id which is not a valid question or value"  

Common Repeat Group Error: Multiple Nodes Error

...

Using current() expression with the correct referencing path is the safe way to avoid any multiple node error in repeat groups. The details of using current() expression is covered at https://dimagi.atlassian.net/wiki/x/pC7Kfw.

Common Repeat Group Error: Repeat bound to non-existent node

Overview

Sometimes while creating your app, you may decide that a Repeat Group that was using a fixed count now needs to use Model Iteration. When you try to look at the settings for your form or create a new version of your app, you see, Validation Error: Repeat bound to non-existent node.

Fixing the error

The fix for this error is as follows:

  • Create a new repeat group. It will need to have a different name from the original, but you will be able to update it at the end of the process.

  • Move everything from the original to that group. You can select multiple items at once and drag them under the new repeat group.

  • Copy the query for Model Iteration into the new group.

  • Delete the old group. At this point, there should be nothing under the group, as you will have moved everything to the new group.

  • Rename the new group. Once the old group is deleted, you can rename your new group (and its question id) to match the original.