Variables that don't exist or don't resolve
{{ }} variables are resolved on the server when something runs. If one doesn't exist or has no value, the run fails and the message names it.
Common messages
| Message | Cause | What to do |
|---|---|---|
| Config variable "…" does not exist in this workspace. | The slug is misspelled or the variable was deleted. | Create it in Settings › Configuration Variables or fix the slug. |
| Secret config variable "…" can't be used in a query… | Secret variables don't go in SQL: their value would appear in the results. | Use it in a connector (headers, credentials) instead of in the query. |
| The user attribute "…" doesn't exist in this workspace… | The attribute isn't created. | Create it in Settings › User Attributes. |
A {{params.…}} parameter is missing |
Nobody passed a value. | In the editor, type the test value; in a workflow, pass it in Run query. |
{{current_user…}} empty in a public dashboard |
On a public link there's no member: there's a visitor. | Use {{visitor.email}} or {{visitor.<field>}}. |
{{visitor…}} is NULL in the editor |
In the editor and the owner's preview there's no visitor. | Test with the link and a project user. |
Tips
- Type
{{and pick from the list: it avoids typos. - In SQL don't put quotes around the variable: KoData adds them.
- A configuration variable can have a different value per environment (Base value, Development, Production). Check which one is active.
- If you rename a variable, attribute, table or column, KoData updates the references. If something was typed by hand outside
{{ }}, fix it.