Now inviting automation leaders: publish your playbook as a skill, under your own name. Publish yours →
Automation Skills
All skills/Uipath troubleshoot/Investigation_guide
Reference · Uipath troubleshoot

Investigation_guide

Part of Uipath troubleshoot. Install the skill and your agent reads this page when it needs the depth.

Generic Investigation Guide

Always apply these rules. If a product-specific investigation_guide.md exists, apply it in addition to these.

Data Correlation

Before using any fetched data, verify it matches the user's reported problem:

If the data doesn't match: discard it. Do NOT use unrelated data as a proxy. Report the mismatch and ask for clarification.

Output Capture

Every uip data-gathering command follows two patterns — lean context AND an audit trail:

  1. Filter at the source with --output-filter — pull only the fields you need. Do NOT fetch the full response and slice it ([:3000] etc.); that silently drops information.

    • A filtered list always carries an explicit --limit. The filter runs client-side over only the rows that call fetched, so on any command whose --limit has a default (most list commands, and uip or jobs logs) the CLI refuses --output-filter without one: ValidationError, exit 3, "--output-filter requires an explicit --limit". Passing --limit is also harmless where the option has no default, so pass it every time you filter a command that has a --limit option. A command with no --limit option (most get commands, traces spans get, is connections list) takes none; adding one fails with unknown option '--limit'. To search the whole set, use the command's maximum (uip or lists accept at most --limit 1000, and uip or queue-items list at most 100; for other tools, a value out of range is refused with the accepted range in the message, so retry with that maximum). Then read the envelope's Pagination.HasMore: while it is true, repeat with --offset raised by the limit. An empty filtered Data proves nothing while more pages remain.
  2. Capture to raw/, matching the tool to the payload size:

    • Small / filtered result → | tee .local/investigations/raw/<command>.json: saves the file AND echoes the (already-small) result for immediate use the same turn.
    • Heavy or unfilterable result (dense traces, full logs/stacks, errorDetails, or the fallback below) → > .local/investigations/raw/<command>.json, then read back only the fields/lines you need. Do NOT tee a full unfiltered response — it loads the whole body into context.

    Run mkdir -p .local/investigations/raw once before the first fetch — neither tee nor > creates the directory and will otherwise drop the file silently.

Filter-failure fallback. If --output-filter returns empty, an error, or an uninterpretable shape (usually a field name that drifted from the current CLI schema), retry the SAME command ONCE without --output-filter to see the actual shape. Capture that unfiltered retry with > (not tee) and read back only the fields you need; note the stale filter in your evidence summary. Do NOT silently swallow filter errors.

Anti-patterns: tee-ing a full unfiltered response (dumps the whole body into context — use > + selective read-back); | head -c N or byte/character slicing (drops required fields); fetching the unfiltered full response when 2–3 fields suffice (bloats context); inventing JSONpath field names (use only documented filters; on failure apply the fallback above).

Signal-Extraction Cheatsheet

Where each signal kind lives (fetch per the domain's investigation_guide.md; exact commands are documented there and in playbook ## Investigation sections):

Signal kind Where to find it
exception (class/FQN) Job record Info field; error-level job logs; trace span error attributes; Maestro incident body. Unwrap System.AggregateException / ---> chains — the INNER exception is the routable signal
message / message-key Verbatim friendly message in job Info / logs; localization resource keys quoted in UIA exception details
error-code Message text (DAP-*, #NNNN, AADSTS*, HRESULTs like 0x8004027D); Maestro incident code (e.g. 170002); job PendingReasons.ErrorCodes
http-status Message text ("Bad Gateway", "429"); trace span attributes
state Job State + PendingReasons; Maestro instance status + incident open/closed; connection status
faulting activity + package [Name] prefix in error log message bodies; span names; exception FQN prefix maps to the owning package (see references/summary.md domain namespaces)
package versions project.json dependencies (source-required); job record package version fields

Locating Project Source & Resource Files

A UiPath project ships in one of two layouts, and a named source or resource file (workflow, code, manifest, or a connection/asset/queue/bucket resource) may sit in either. Resolve BOTH before concluding a file is absent — this applies to every product, not just the one that named the file:

Search from the working-directory root, not only under a named project subdir. When the user points you at a project dir (e.g. ./MyProject/), the solution resources live beside it — one level up — at ./resources/solution_folder/.... So look both inside the named project (standalone layout) AND in the working-directory root / one level up from the project (solution layout).

When a playbook names a file at one layout's path and it is not there, check the other layout — including the solution root above the project dir — before treating it as missing. If neither resolves: data gap — ask the user for the correct path. Absence from one layout is NOT absence.

Interpreting Query Results

Testing Prerequisites

Gather and verify these before drawing conclusions on any hypothesis:

  1. Reproduce the scope — confirm you're looking at the same entity, environment, and time window the user reported
  2. Execution path — trace what actually happened step by step (don't infer from final status alone)
  3. Error message — read the full error, not just the type; details in the message often point to the root cause
  4. Configuration state — check relevant settings/configuration at the time of failure; don't assume defaults
  5. Recent changes — ask whether anything changed recently (deployments, config updates, infrastructure) that correlates with when the issue started
  6. Dependencies — check upstream and downstream systems; a failure in one layer often manifests as symptoms in another

Expected Outcome — Establish Before Investigating

Before starting any investigation, establish what the user expects from the troubleshooting — do they want to understand the root cause, get a fix, confirm a suspicion, or something else?

  1. Try to infer the expected outcome from the user's problem description and how they framed the request
  2. If you cannot infer, present the user with the options you identified (e.g., "Are you looking for the root cause, a quick fix, or help understanding why this happens intermittently?") and let them choose
  3. If you have no options, ask the user directly what outcome they need from this investigation

Do NOT begin the investigation until the expected outcome is clear. It determines what depth of investigation is appropriate and what a useful resolution looks like.

Tool Boundary — uip CLI Only

All platform interaction MUST go through uip CLI commands. Do NOT work around CLI limitations by:

If the uip CLI does not provide a command for the data you need, that data is unavailable. Report the gap to the user and continue the investigation with what you have. Do NOT attempt to bypass the CLI, and do NOT suggest or mention internal API endpoints, OData URLs, auth token locations, or any other workaround to the user — even as a "for your information" or "if you want to do it yourself" suggestion.

Scope Boundary — Internal Platform Issues

This troubleshooting tool operates from the client perspective. Do NOT attempt to investigate internal platform issues (implementation bugs, server-side defects, infrastructure internals). You have no visibility into them and testing hypotheses about them wastes the user's time.

Publish your skill

Copy this prompt into Claude Code, Codex or any agent. It walks you through your first skill in about 20 minutes, with you as the author.

Click to copy.