Fix missing data or expression errors
Trace an incorrect value from the selected example through the contract and expression.
User guide navigation
On this page
Start with one failing example
Open the variant and select the example that produces the problem. To fix the draft or contract, you need Content Author access to a catalog you can edit. Write down the field name and error message before you change anything.
| Symptom | Check | Action |
|---|---|---|
| A field is blank | Does the selected example contain the field at that exact path? | Add a realistic value or handle its optional absence |
| A field is absent from the picker | Is it defined in this template’s Data Contract? | Add the field, save the contract, and reopen the editor |
| A field name prints literally | Was it inserted as a chip? | Replace plain text with an expression through {{ |
| The example fails validation | Is a required field absent or the value the wrong type? | Correct the example using the reported field path |
| A repeated value is blank | Is the expression inside the repeated body using the configured alias? | Use item.name or the alias you configured |
| Optional text stays visible | Are the surrounding words inside the Conditional body? | Move the whole optional paragraph inside the condition |
| A formatted value is wrong | Is the input a number/date and is the locale correct? | Correct the input and use locale-aware formatting |
Separate names, types, and values
recipient.name and recipientName are different paths. A numeric value such as 125.5 is different from the string "125.5". A Boolean decision uses true or false, not their quoted text.
For simple values, use the field picker in the expression builder. In Code mode, check the JSONata syntax, and the live result for the selected example. Start with just the field path. Add formatting or conditions only after that.
Check rich-text bindings
If a rich-text value has several paragraphs, you need a Rich Text Variable block. An inline expression chip accepts scalar values or inline rich text, but not block rich text. See Rich Text.
Verify the correction
If you changed the contract, save it. If you changed the layout, wait for Saved.
The preview uses your saved work right away. Applications get the correction only after you publish the catalog.
After that, preview the example that failed and a normal one. Where it matters, also test a missing optional value and an empty list.
If the examples work but data from the connected system fails, give the owner of that system the expected contract, a fictional payload that fails, and the field path from the message. The mapping may differ from the example you saved. Do not loosen a required field just to hide a problem in the source data.
The full setup is in Define data and examples. Use Review a template before you publish the correction.
Documentation
Guided tour
Exercises
Integration guides
Epistola is open source, not free of cost. The organisations that use it fund its development, through Epistola or an Official Partner. We are steward-owned: fair prices, no profit maximisation. How Epistola is funded →