Binding errors and unknown paths

UNKNOWN_BINDING, WRONG_TYPE and path problems. Troubleshooting in the DocStudio designer user guide.

Symptom

The Problems tab shows UNKNOWN_BINDING, BINDING_TYPE, MISSING_DATA or WRONG_TYPE.

Likely causes

  • UNKNOWN_BINDING: the path is not in the data schema.
  • BINDING_TYPE: the value type does not fit the element, for example a list used as text.
  • MISSING_DATA: the path is missing and the policy is warn or error.
  • WRONG_TYPE: the value is an object or list where text was expected.

Diagnose

  1. Click the severity button of the problem to select the element.
  2. Compare the path with Binding paths in the Data tab.
  3. Check whether the sample data is representative: an empty sample makes every path unknown.

Solution

  • Correct the path.
  • Bind a field of the object (customer.name) instead of the object itself.
  • For lists use a repeater or a table, not a text.
  • Provide a data schema from the host if the inferred one is incomplete.

Limitation

UNKNOWN_BINDING and BINDING_TYPE are advisory. They never change the output.