Problems panel
Diagnostics, severities and how to navigate to the affected element. Right panel in the DocStudio designer interface.
The Problems tab lists everything the designer found wrong or suspicious. The tab title shows the count, for example Problems (5).
Where problems come from
| Source | Examples |
|---|---|
| Template validation | A value outside its allowed range, an unknown property, a duplicate id |
| Compilation | A data path that is missing under the warn or error policy, an expression error |
| Rendering | A QR or barcode value that cannot be encoded, an image that cannot be loaded |
| Data schema checks | A path that is not in the data, or a value of the wrong type |
Reading a problem
Each entry shows a severity button, a code, a message and the JSON Pointer path of the value. Severity is error (the output is wrong or missing) or warning (the output is produced but something is suspect).
Click the severity button to select the affected element. The designer maps the path to the nearest element, selects it and shows its settings. The same problems appear as red badges on layers.
Common codes
| Code | Meaning | Typical fix |
|---|---|---|
UNKNOWN_BINDING |
A path is not in the data schema | Fix the path or add the data. See Binding errors |
BINDING_TYPE |
The value type does not suit the element | Use another path or convert it |
MISSING_DATA |
The path is missing and the policy is warn or error | Provide the data or set a fallback |
WRONG_TYPE |
The value has a type the element cannot show | Bind a text, number or boolean |
SCHEMA_VIOLATION |
The template is not valid | See Validation errors |
INVALID_RDT |
The renderer could not draw an element, for example a barcode value | See QR or barcode does not display |
Every diagnostic code is listed in Diagnostics.
Empty state
When nothing is wrong the tab says "No problems found."
Limits
Schema warnings depend on the sample data or schema. With an empty sample many paths look unknown. Problems are not saved: they are recomputed on every change.