# Troubleshoot

> Diagnose RPA, Orchestrator, Maestro, Agents, and Integration Service failures with your coding agent from the terminal.

Describe a failure. The agent ranks likely causes, tests each against live platform data through `uip`, and proposes a fix.

## Investigation stages

1. Finds the failing entity from your description, identifier, or error message. If none is named, it asks. It does not scan your tenant.
2. Matches the exception, error code, and faulting activity to a playbook of known causes.
3. Tests causes against logs, traces, queue items, healing data, configuration, and audit events. It presents a cause only when runtime evidence singles it out. Otherwise, it investigates the remaining candidates in parallel.
4. Presents the root cause, chain of events, and a fix:
   - Source file (`.xaml`, `project.json`): you approve the change before the owning skill applies it.
   - Tenant configuration (Orchestrator setting, Integration Service connection): the skill prints the `uip` command or UI path for you to run.

## Supported failures

| Domain | Failures |
|---|---|
| RPA | Failed jobs (`SelectorNotFoundException`, `TimeoutException`), selector mismatches, queue item failures, Healing Agent data |
| Orchestrator | Stuck or faulted jobs, permissions, deployment and publishing errors, queue configuration |
| Maestro | Faulted instances, step failures, incidents, failure chains across agents or RPA |
| Agents | LLM step, context grounding, resource, input schema, guardrail, and Integration Service tool-call failures |
| Integration Service | Authentication, token refresh, connector activity, missing inputs, triggers that don't fire |

## Prerequisites

1. UiPath skills installed with `uip skills install`. See [Install and set up](install-and-set-up.md).
2. A logged-in session (`uip login`). See [Authenticate](install-and-set-up.md#authenticate).

## Diagnose a failure

1. Launch your coding agent from any terminal, including the UiPath Studio terminal.
2. Name the `uipath-troubleshoot` skill or describe the problem: "My job abc-123 failed, what happened?"
3. Answer follow-up questions and share requested files.
4. Review the root cause and its evidence.
5. Approve or reject the fix.

![A diagnostic session in the UiPath Studio terminal, from the request to a root cause and proposed fix.](https://dev-assets.cms.uipath.com/assets/images/uipath-cli/troubleshoot-coding-agents-studio-terminal-0132146b.png)

## Session tips

- Include job IDs, process names, queue names, and exact error messages.
- Push back when a recommendation misses: "that's not it", "I already checked that", or "dig deeper".
- The skill inherits the signed-in `uip` identity's permissions. It cannot view a log or folder the identity cannot.

## See also

- [Skills overview](skills-overview.md)
- [Keeping up to date](keeping-up-to-date.md)
