Skip to main content
← Back to list
01Issue
BugOpenSwamp CLIPublicTeam
AssigneesNone

Relationships

#2295 Model definitions run inside a workflow reject data.query() and data.findBySpec() in global arguments

Opened by beddari · 9/19/2026

When a workflow model_method step runs a model whose definition has a global argument built from data.query(...) or data.findBySpec(...) (with .filter/.map macros), the step fails with: Model validation failed ... Expression "data.query(...)..." at "globalArguments.nodes" does not contain valid model, self, or env references. Expressions should use: model..resource..., self.globalArguments..., or env.. The same definition evaluates and runs fine with swamp model evaluate and swamp model method run, and a data.latest(...) expression in a sibling global argument passes the workflow validator. Expected: the workflow-path validator accepts every data.* accessor the direct path accepts, or at least data.query and data.findBySpec, since the docs list data.query as the primary accessor. Version 20260918.003339.0-sha.a765b344. Workaround: have the producing model write the list as one resource and read it with data.latest(...).attributes..

02Bog Flow
OPENTRIAGEDIN PROGRESSSHIPPED

Open

9/19/2026, 8:13:36 PM

No activity in this phase yet.

03Sludge Pulse

Sign in to post a ripple.