Skip to content

Validating YAML

Check your YAML before it touches ServiceNow.

Terminal window
flowctl --validate my-flow.yaml

No ServiceNow connection needed. Runs entirely offline.

CheckWhat it catches
YAML syntaxParse errors, bad indentation
Schema versionUnknown schema: values
Required fieldsMissing name or steps
Enum valuesInvalid type, status, run_as, access
TriggerMissing for flows, present for subflows (not allowed)
Step structureSteps with no type key, containers missing required children
Variable namesMust match ^[a-z][a-z0-9_]*$, no duplicates
Pill references$step_id must point to an earlier step with that id
Condition operatorsMust be a valid SN operator
StagesNo duplicate values, step references point to valid steps

Errors include suggestions when the tool can figure out what you meant:

x steps[2]: unknown action "lookup_recrod"; did you mean "lookup_record"?
x trigger.type "record_create" is not a known trigger type
Valid types: daily, inbound_email, knowledge_management, ...

Both --create and --update run validation automatically before making any API calls. If validation fails, nothing is sent to ServiceNow.


Need to create or update flows? See Pro features