- Overview
- Get started
- Concepts
- Using UiPath CLI
- How-to guides
- CI/CD recipes
- Command reference
- Overview
- Exit codes
- Global options
- uip codedagent
- uip coder
- uip context-grounding
- uip docsai
- uip function
- uip guardrails
- uip llm-configuration
- uip llm-gateway
- uip maestro authoring
- uip maestro registry
- uip model-hub
- uip ont
- activities find
- activities get-default-xaml
- analyze
- analyzer-rules list
- build
- cleanup
- data-fabric-entities install
- data-fabric-entities list
- files diff
- get-library-object-repository
- get-object-repository
- init
- instances list
- pack
- packages inspect
- packages install
- packages versions
- publish
- remote
- restore
- run, debug & execution
- settings
- studio start
- templates search
- test-data add-entity
- test-data add-queue
- test-data add-variation
- tm
- uia
- validate
- workflow-examples get
- workflow-examples list
- uip resources
- uip tasks
- uip traces
- uip traces feedback
- Migration
- Reference & support
uip maestro flow validate
Syntax and options for `uip maestro flow validate`, which validates a `.flow` file against the schema and optional governance policies.
uip maestro flow validate validates a .flow file against the Flow schema with structural cross-field checks. An optional --governance pass additionally validates agent nodes against your organization's governance policies.
Synopsis
uip maestro flow validate [flowFile] [--governance] [--strict-bindings] [--strict-expressions] [--force]
uip maestro flow validate [flowFile] [--governance] [--strict-bindings] [--strict-expressions] [--force]
Honors global options. Exit codes follow the standard contract.
Arguments
[flowFile](optional) — path to the.flowfile, or a project directory containing one. Default: the current directory. For a directory, the command validates the same.flowfile thatuip maestro flow debugruns: theMainFilefromproject.uiproj, then<Name>.flow, then the first.flowfile in the project root,content/, orflow_files/. The command fails when the directory has no.flowfile.
Options
--governance— also validate agent nodes against organization governance policies. Requiresuip login; the CLI fetchesenforcementsand the allowedmodelNamesfrom the platform before running the check. If the fetch fails, the command errors out — omit--governanceto skip policy checks.--strict-bindings— fail validation when a Managed HTTP node (core.action.http.v2) carries a connector-shaped label but no Integration Service binding, or when theconnectionIdof a connector node or aConnectionIdbinding row is not a GUID. Default: warn only — omitting this flag still runs the check, it just doesn't fail the build.--strict-expressions— fail validation when an expression or script body has a type error, per the same expression checker the canvas uses. Default: warn only. This CI-gating check always runs; the flag only controls whether its findings are fatal.--force— refetch the current node manifests that the stale-handle check uses, instead of reading the cached copy. The cache is the oneuip maestro flow registry pullwrites, kept 30 minutes per tenant, and the refetched manifests replace it, asregistry pull --forcedoes.
Behavior
- Schema validation runs locally and does not require login.
- Structural checks ensure references between nodes, edges, bindings, variables, and definitions are consistent.
- The stale-handle check compares each edge handle with the current node manifests, in addition to the definitions embedded in the
.flowfile. Studio Web renders against the current manifests, so a flow built from older definitions can pass the embedded check and still render with missing edges. When the current manifests cannot be loaded, the check is skipped with a warning. - With
--governance, any agent node whose configuration (model, tools, policies) conflicts with the fetched enforcements is flagged. - An ID used in more than one scope of the
.flowfile (the root or any subflow), or by both a node and an edge, is an error. The error names each kind and scope that uses the ID. - A Data Fabric node that names an entity of the solution but carries no Entity binding fails with
INLINE_ENTITY_UNBOUND. The same check stopsuip maestro flow pack,uip maestro flow debug, and evaluation runs. Runuip maestro flow nodes configureon the node to write the binding. - A node that calls an in-solution process key that matches no process resource in the solution is an error.
- A Script node body that is not valid JavaScript is an error, with or without
--strict-bindings. The same check stopsuip maestro flow pack. - A root trigger whose
inputs.entryPointIdis set and is not a GUID is an error, because the packed entry point needs a GUID. - A node ID that is also the ID of an
inorinoutvariable of the same graph is an error. Anoutvariable can share its ID with a node. - A binding ID that is not an identifier, such as
invoice-proc, fails withBINDING_ID_NOT_IDENTIFIER. A reference to it resolves to null at runtime with no error. - Node and edge IDs that start with
previeware errors: the converter that packs the flow leaves those nodes and edges out, souip maestro flow packanduip maestro flow debugfail. Rename the node or edge, and update its edges and$varsreferences. Sticky notes are exempt.
Extract document nodes
These checks apply to Extract document nodes (uipath.ixp.extract-document-builder):
| Finding | Severity |
|---|---|
The node names no processor. The message gives the uip maestro flow nodes provision command that fixes it. | Error |
Two nodes define the same processor (inputs.processorKey) and neither is marked inputs.processorReadOnly. | Error, one for each node |
The extraction schema in inputs.schemaDocument has a fault, for example a field that references a field type that does not exist. | Error |
inputs.schemaDocument is a bare JSON Schema, or its entries have no stable IDs. The message points to uip maestro flow nodes schema set. | Warning |
Warnings
These findings are warnings and do not fail the command:
| Finding | Notes |
|---|---|
CONNECTION_ID_NOT_GUID | The connectionId of a connector node, or the resourceKey or default of a ConnectionId binding row, is not a GUID. This includes an unfilled <...> placeholder. An error with --strict-bindings. |
VARS_REFS_IN_DOUBLE_QUOTES | Every $vars reference of an End node output or of a variable update is between double quotes. The value evaluates to null at runtime with no error. |
UNRESOLVED_BINDING | A binding placeholder has no binding row. The message names the command that writes the rows again. An error with --strict-bindings. |
| Variable type not recognized | An in or out variable in the root of the flow has a type that Flow does not recognize, such as date. It is packaged as a plain string. |
| Quick Form binding to a node on some paths | A Quick Form field binds the output of a node that runs on only some of the paths that reach the form. |
| Shared connection | Nodes of different connectors use the same connection. |
Ignored parentId | The parentId of a node names a node that is not a loop, a do-while, or an error handler. |
| Shared agent source | Two agent nodes have the same inputs.source. |
Examples
# Validate the project in the current directory
uip maestro flow validate
# Structural validation only (no login required)
uip maestro flow validate invoice-flow.flow
# Full validation including governance policy for agent nodes
uip maestro flow validate invoice-flow.flow --governance
# Validate the project's main .flow file
uip maestro flow validate ./my-flow-project
# Fail on expression and script type errors (warnings by default)
uip maestro flow validate invoice-flow.flow --strict-expressions
# Validate against freshly fetched node manifests, bypassing the 30-minute cache
uip maestro flow validate invoice-flow.flow --force
# Validate the project in the current directory
uip maestro flow validate
# Structural validation only (no login required)
uip maestro flow validate invoice-flow.flow
# Full validation including governance policy for agent nodes
uip maestro flow validate invoice-flow.flow --governance
# Validate the project's main .flow file
uip maestro flow validate ./my-flow-project
# Fail on expression and script type errors (warnings by default)
uip maestro flow validate invoice-flow.flow --strict-expressions
# Validate against freshly fetched node manifests, bypassing the 30-minute cache
uip maestro flow validate invoice-flow.flow --force
Data shape (--output json)
On success:
{
"Code": "FlowValidate",
"Data": {
"File": "invoice-flow.flow",
"Status": "Valid"
}
}
{
"Code": "FlowValidate",
"Data": {
"File": "invoice-flow.flow",
"Status": "Valid"
}
}
When the file is valid but has warnings, Data also carries Warnings: a string with the warning count followed by one - [<path>] <message> line per warning.
On validation failure, the command exits with code 1 and returns a Failure result. Message is Validation failed for <file>, and Instructions holds the error count followed by one - [<severity>] [<path>] <message> line per issue.
See also
uip maestro flow debug— dynamic validation via Studio Webuip maestro flow pack— pack a validated project- Flow overview