Data Router · console.warn
source "{sourceId}" field "{field}": could n...
Printed by Data Router, prefixed [lattice], since 1.84.0.
Warnings reference › router:coerce-failed:*:*
- Identifier
router:coerce-failed:*:*- Raised by
- Data Router
- Since
- 1.84.0
What happened
A value on a fan-in source’s declared field could not be coerced to the type its fields option names, so the router stored null for it rather than leaving the raw (wrongly typed) value in the row. The warning names the source, the field and the first offending value.
The fix
Correct the feed’s raw value for that field, or widen or correct the field’s fields declaration to match what the feed actually sends.
The smallest fix
addSource("orders", { fields: { amount: { type: "number", decimal: "," } } })
Reference
Covered in full at the API reference.