UiPath Documentation
uipath-cli
2026.10
false
UiPath CLI user guide

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 .flow file, or a project directory containing one. Default: the current directory. For a directory, the command validates the same .flow file that uip maestro flow debug runs: the MainFile from project.uiproj, then <Name>.flow, then the first .flow file in the project root, content/, or flow_files/. The command fails when the directory has no .flow file.

Options​

  • --governance — also validate agent nodes against organization governance policies. Requires uip login; the CLI fetches enforcements and the allowed modelNames from the platform before running the check. If the fetch fails, the command errors out — omit --governance to 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 the connectionId of a connector node or a ConnectionId binding 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 one uip maestro flow registry pull writes, kept 30 minutes per tenant, and the refetched manifests replace it, as registry pull --force does.

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 .flow file. 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 .flow file (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 stops uip maestro flow pack, uip maestro flow debug, and evaluation runs. Run uip maestro flow nodes configure on 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 stops uip maestro flow pack.
  • A root trigger whose inputs.entryPointId is 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 in or inout variable of the same graph is an error. An out variable can share its ID with a node.
  • A binding ID that is not an identifier, such as invoice-proc, fails with BINDING_ID_NOT_IDENTIFIER. A reference to it resolves to null at runtime with no error.
  • Node and edge IDs that start with preview are errors: the converter that packs the flow leaves those nodes and edges out, so uip maestro flow pack and uip maestro flow debug fail. Rename the node or edge, and update its edges and $vars references. Sticky notes are exempt.

Extract document nodes​

These checks apply to Extract document nodes (uipath.ixp.extract-document-builder):

FindingSeverity
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:

FindingNotes
CONNECTION_ID_NOT_GUIDThe 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_QUOTESEvery $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_BINDINGA binding placeholder has no binding row. The message names the command that writes the rows again. An error with --strict-bindings.
Variable type not recognizedAn 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 pathsA Quick Form field binds the output of a node that runs on only some of the paths that reach the form.
Shared connectionNodes of different connectors use the same connection.
Ignored parentIdThe parentId of a node names a node that is not a loop, a do-while, or an error handler.
Shared agent sourceTwo 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​

  • Synopsis​
  • Arguments​
  • Options​
  • Behavior​
  • Extract document nodes​
  • Warnings​
  • Examples​
  • Data shape (--output json)​
  • See also​

Was this page helpful?

Connect

Need help? Support(opens in new window)

Want to learn? UiPath Academy(opens in new window)

Have questions? UiPath Forum(opens in new window)

Stay updated