# uip rpa-legacy validate

> `uip rpa-legacy validate` checks a XAML workflow or an entire project for compilation errors — missing arguments, broken references, type mismatches. Use it as a fast pre-package gate when the cross-platform [`uip rpa build`](./uip-rpa-build.md) is not an option (for example, on a Windows-Legacy project).

`uip rpa-legacy validate` checks a XAML workflow or an entire project for compilation errors — missing arguments, broken references, type mismatches. Use it as a fast pre-package gate when the cross-platform [`uip rpa build`](./uip-rpa-build.md) is not an option (for example, on a Windows-Legacy project).

Windows-only — see the [overview](./uip-rpa-legacy.md) warning.

## Synopsis

```
uip rpa-legacy validate <path> [options]
```

- `<path>` *(required)* — Path to a XAML file, `project.json`, or project folder to validate.

## Options

| Flag | Description |
|---|---|
| `--result-path <path>` | Write validation results to a JSON file instead of stdout. |
| `--timeout <seconds>` | Timeout in seconds for the operation. |

## Examples

```bash
# Validate an entire project
uip rpa-legacy validate ./MyProject/project.json

# Validate a single XAML, write results to a file for the next CI step
uip rpa-legacy validate ./MyProject/Main.xaml --result-path ./validation.json

# Allow up to 10 minutes for a large project
uip rpa-legacy validate ./MyProject --timeout 600
```

## Related

- [`uip rpa-legacy debug`](./uip-rpa-legacy-debug.md) — run a workflow once it validates.
- [`uip rpa-legacy package`](./uip-rpa-legacy-package.md) — pack the project after validation passes.
- [`uip rpa analyze`](./uip-rpa-analyze.md) — run the workflow analyzer on cross-platform projects.
- [`uip rpa build`](./uip-rpa-build.md) — cross-platform compile gate; prefer it for non-legacy projects.
- [`uip rpa-legacy`](./uip-rpa-legacy.md) — tool overview.

## See also

- [Global options](./global-options.md)
- [Exit codes](./exit-codes.md)
