- 概要
- はじめに
- 概念
- UiPath CLI を使用する
- 使用ガイド
- CI/CD レシピ
- コマンド リファレンス
- 概要
- 終了コード
- グローバル オプション
- uip codedagent
- UIP コーダー
- UIP のコンテキスト グラウンディング
- uip docsai
- uip 関数
- UIP ガードレール
- uip llm - 構成
- uip llm-gateway
- UIP Maestro のオーサリング
- UIP Maestro レジストリ
- uip model-hub
- uip ont
- アクティビティ検索
- アクティビティ get-default-xaml
- 分析
- アナライザー - ルールのリスト
- 開発
- クリーンアップ
- data-fabric-entities をインストールする
- data-fabric-entities リスト
- ファイル差分
- get-library-object-repository
- オブジェクト リポジトリを取得
- Init
- インスタンス リスト
- パッケージ化
- パッケージ検査
- パッケージのインストール
- パッケージ バージョン
- パブリッシュ
- リモート
- 元に戻す
- 実行、デバッグ、実行
- 設定
- Studio での起動
- テンプレートの検索
- test-data add-entity
- test-data add-queue
- test-data add-variation
- TM
- UIA
- 検証
- workflow-examples get
- ワークフロー - 例のリスト
- uip resources
- UIP タスク
- uip traces
- UIP トレースのフィードバック
- 移行
- 参照とサポート
UIP Maestro フローのデバッグ
「uip maestro flow debug」の構文とオプション。ローカルのフロー プロジェクトを Studio Web にアップロードし、サーバー側のデバッグ セッションを実行してステータスの更新をストリーミングします。
uip maestro flow debug は、ローカルの Flow プロジェクトを Studio Web にアップロードし、サーバー側のデバッグ セッションを実行して、要素ごとのステータスの更新をコンソールにストリーミングし、最終ステータスを返します。
概要
uip maestro flow debug <project-path>
[--folder-id <id> | --folder-key <key> | --folder-path <path>]
[--poll-interval <ms>] [--timeout <seconds>]
[-i, --inputs <json>]
[--entry-point <id>]
[--attachment <name=path>]...
[--summary]
[--force]
[--open-in-browser]
[--login-validity <minutes>]
uip maestro flow debug <project-path>
[--folder-id <id> | --folder-key <key> | --folder-path <path>]
[--poll-interval <ms>] [--timeout <seconds>]
[-i, --inputs <json>]
[--entry-point <id>]
[--attachment <name=path>]...
[--summary]
[--force]
[--open-in-browser]
[--login-validity <minutes>]
引数
<project-path>(必須) — Flow プロジェクトディレクトリへのパス。次の文字列を含む必要がありますproject.uiproj。
オプション
| オプション | 既定 (Default) | 説明 |
|---|---|---|
--folder-id <id> | 自動検出 | Orchestrator フォルダー (OrganizationUnitId)、正の整数です。--folder-key/--folder-pathと相互に排他的です。この 3 つの値のいずれも指定しない場合、現在のログイン セッションのフォルダーが使用されます。 |
--folder-key <key> | — | Orchestrator フォルダー キー (UUID) — CLI によってフォルダー ID に解決されます。--folder-id/--folder-pathと相互に排他的です。 |
--folder-path <path> | — | Orchestrator フォルダー パス (例:Shared/Sub — CLI によってフォルダー ID に解決されます。--folder-id/--folder-keyと相互に排他的です。uip or folders list を使用して有効なキー/パスを検出します。 |
--poll-interval <ms> | 2000 | Studio Web がセッションを前進させるのを待機する間のポーリング間隔 (ミリ秒単位)。 |
--timeout <seconds> | 制限なし | デバッグ実行が完了するまで待機する最大秒数です。時間が経過すると、コマンドは ErrorCode: timeout と Retry: RetryLaterで失敗し、Data は 、 jobKeylastStatus、 timeoutSecondsinstanceIdを運びます。実行は停止されません。ポーリングなしでハンドオフされる会話フローには影響しません。 |
-i, --inputs <json> | — | 入力引数は JSON 文字列、またはファイルから読み取る @path/to/file.json です。 |
--entry-point <id> | 既定のトリガー | エントリ ポイント ノード ID — .flow ファイルのトリガー ノード ID です。既定では、 isDefaultEntryPointとマークされたトリガーが使用され、それ以外の場合は最初のトリガーになります。トリガーに一致しない ID は、終了コード 3で失敗します。 |
--attachment <name=path> | — | ローカル ファイルを Orchestrator にアップロードし、ファイル型の入力変数としてバインドします。繰り返し可能 (例:--attachment file1=./resume.pdfです。同じ変数名が にも存在する場合は、上書き --inputsです。 |
--summary | — | すべてのノードの生の出力ではなく、実行ステータス、完了しなかった要素、フローで宣言された出力のみを返します。「 出力の概要」をご覧ください。 |
--force | — | Upload even when the Studio Web copy of the solution changed since this machine last uploaded it. Studio Web keeps the replaced copy as a restorable version. Refer to Studio Web edits. |
--open-in-browser | — | 用意されたら、ブラウザーで Studio Web セッションの URL を開きます。 |
--login-validity <minutes> | 10 | トークンの有効期限の最小時間 (分) 前に自動更新がトリガーされます。 |
動作
- ログインを検証し、組織、テナント、ベース URL、組織名、認証トークンをセッションから取得します。
- ソリューションのリソースを更新します。フローで Orchestrator に存在しないリソース、またはリソース カタログに存在しない接続をバインドする場合、何かがアップロードされる前にコマンドが失敗し、不足しているリソースが一覧表示され、バインド方法が
Instructions指示されます。いずれにせよ、 会話型フロー はアップロードされて引き渡されます。Data Fabric ノードで、エンティティのバインドを行わずにソリューションのエンティティに名前を付けた場合も、アップロード前のコマンド (終了コード3) に失敗し、設定するノードの名前Instructions指定します。 - Uploads the solution that holds the project to Studio Web under the target folder. The solution is the one whose
.uipxfile is in the project folder or in a folder above it. Before the upload, the command checks the Studio Web copy for newer edits. Refer to Studio Web edits. After the upload, it writes the solution ID that Studio Web assigned toSolutionIdin the.uipxfile, when the two differ, and reports the change inData.LocalSolutionIdUpdated. - 最終ステータスをポーリングし、次のような要素ごとのステータス行を出力します。
HTTP 403 または 5xx エラーで失敗するステータス ポーリングは、コマンドが失敗する前に 2 回リトライされます。
Status: InProgress (2/5 elements completed) v Node_1 [Completed] > Node_2 [InProgress] - Node_3 [NotStarted]Status: InProgress (2/5 elements completed) v Node_1 [Completed] > Node_2 [InProgress] - Node_3 [NotStarted] - 実行中のインシデントに対して、警告ラインを発します。
finalStatusがCompletedまたはSuccessfulの場合に0を終了します。1そうでなければ。
The command fails before the upload in these cases:
- The
.uipxfile of the solution has noSolutionIdor no project list. The command fails withResult: "ValidationError"and exit code3. - The target folder is not your Personal Workspace. Studio Web starts a debug session only in the Personal Workspace, so the command fails with HTTP 403 and
Instructionssay to drop--folder-id,--folder-key, and--folder-path. To run in another folder, deploy the solution there and useuip maestro flow process run.
When Orchestrator reports that your user has no personal robot (HTTP 409, error code 1230), the command retries twice. It then fails with Result: "ConfigError", ErrorCode: configuration_error, and Retry: RetryWillNotFix.
例
# Debug a local project, auto-detect folder, default poll interval
uip maestro flow debug ./invoice-flow
# Debug against a specific folder with inline JSON inputs
uip maestro flow debug ./invoice-flow --folder-id 2553016 \
--inputs '{"amount":100,"customer":"Acme"}'
# Debug with inputs from a file
uip maestro flow debug ./invoice-flow --inputs @inputs.json
# Slower polling for long-running flows
uip maestro flow debug ./invoice-flow --poll-interval 5000
# Start from a specific trigger and stop waiting after 10 minutes
uip maestro flow debug ./invoice-flow --entry-point trigger_2 --timeout 600
# Read only the verdict and the declared outputs
uip maestro flow debug ./invoice-flow --summary
# Debug a local project, auto-detect folder, default poll interval
uip maestro flow debug ./invoice-flow
# Debug against a specific folder with inline JSON inputs
uip maestro flow debug ./invoice-flow --folder-id 2553016 \
--inputs '{"amount":100,"customer":"Acme"}'
# Debug with inputs from a file
uip maestro flow debug ./invoice-flow --inputs @inputs.json
# Slower polling for long-running flows
uip maestro flow debug ./invoice-flow --poll-interval 5000
# Start from a specific trigger and stop waiting after 10 minutes
uip maestro flow debug ./invoice-flow --entry-point trigger_2 --timeout 600
# Read only the verdict and the declared outputs
uip maestro flow debug ./invoice-flow --summary
データシェイプ(--output json)
{
"Code": "FlowDebug",
"Data": {
"jobKey": "b2c3d4e5-0000-0000-0000-000000000001",
"instanceId": "c3d4e5f6-0000-0000-0000-000000000001",
"runId": "d4e5f6a7-0000-0000-0000-000000000001",
"finalStatus": "Completed",
"solutionId": "e5f6a7b8-0000-0000-0000-000000000001",
"studioWebUrl": "https://cloud.uipath.com/org/tenant/studio_/debug/e5f6a7b8",
"elementExecutions": [
{ "elementId": "Node_1", "status": "Completed" }
],
"variables": {}
}
}
{
"Code": "FlowDebug",
"Data": {
"jobKey": "b2c3d4e5-0000-0000-0000-000000000001",
"instanceId": "c3d4e5f6-0000-0000-0000-000000000001",
"runId": "d4e5f6a7-0000-0000-0000-000000000001",
"finalStatus": "Completed",
"solutionId": "e5f6a7b8-0000-0000-0000-000000000001",
"studioWebUrl": "https://cloud.uipath.com/org/tenant/studio_/debug/e5f6a7b8",
"elementExecutions": [
{ "elementId": "Node_1", "status": "Completed" }
],
"variables": {}
}
}
ブラウザーで studioWebUrl を開き、対話形式でセッションを検査します。
When the command changed SolutionId in the local .uipx file, Data also carries LocalSolutionIdUpdated: { Path, From, To }. The field is present on a failure that happens after the upload, and with --summary.
Timestamps that the service returns, such as startedTimeUtc and completedTimeUtc, have exactly three fractional digits.
Studio Web edits
Each upload replaces the whole Studio Web copy of the solution with the local files. To protect edits made in Studio Web, the command records each upload in ~/.uipath/flow-debug/<solutionId>.json and compares that record with the time the Studio Web copy last changed.
| ケース (Case) | 結果 |
|---|---|
| The Studio Web copy did not change since the last upload from this machine. | The command uploads. No version is created. |
| The Studio Web copy changed since the last upload from this machine. | The command fails with ErrorCode: confirmation_required and uploads nothing. |
The Studio Web copy changed and --force is passed. | The command uploads, and Studio Web keeps the replaced copy as a restorable version. |
| This machine has no record of an upload, or Studio Web does not report when the copy last changed. | The command writes a warning to stderr and uploads, and Studio Web keeps the replaced copy as a restorable version. A flow with a connection resource takes this path on every run. |
| Studio Web cannot be asked when the copy last changed, for example on HTTP 403 or a timeout. | The command fails and uploads nothing. ErrorCode follows the cause, and Data carries solutionId. --force skips the check. |
The confirmation_required failure carries the details in Data:
{
"Result": "Failure",
"ErrorCode": "confirmation_required",
"Retry": "RetryWillNotFix",
"Data": {
"solutionId": "e5f6a7b8-0000-0000-0000-000000000001",
"studioWebModifiedAt": "2026-11-20T10:15:30.123Z",
"lastUploadedAt": "2026-11-19T08:00:00.000Z"
}
}
{
"Result": "Failure",
"ErrorCode": "confirmation_required",
"Retry": "RetryWillNotFix",
"Data": {
"solutionId": "e5f6a7b8-0000-0000-0000-000000000001",
"studioWebModifiedAt": "2026-11-20T10:15:30.123Z",
"lastUploadedAt": "2026-11-19T08:00:00.000Z"
}
}
To keep the Studio Web edits, download them with uip solution download <solutionId> --extract, merge them into the local files, and run the command again with --force.
An upload from another machine or from uip solution upload writes no record on this machine, so the next uip maestro flow debug treats it as a Studio Web edit.
サマリー出力
完全な結果には、すべてのノードの出力が、HTTP 応答本文全体とヘッダーを含む、フローの宣言された出力の横に保持されます。--summaryDataでは、実行の判断に必要な情報のみが保持されます。
{
"Code": "FlowDebug",
"Data": {
"finalStatus": "Completed",
"instanceId": "c3d4e5f6-0000-0000-0000-000000000001",
"studioWebUrl": "https://cloud.uipath.com/org/tenant/studio_/debug/e5f6a7b8",
"solutionId": "e5f6a7b8-0000-0000-0000-000000000001",
"failed": [],
"outputs": { "weatherVerdict": "warm office today" },
"fullOutputPath": "/path/to/solution/.flow-debug/invoice-flow.json"
}
}
{
"Code": "FlowDebug",
"Data": {
"finalStatus": "Completed",
"instanceId": "c3d4e5f6-0000-0000-0000-000000000001",
"studioWebUrl": "https://cloud.uipath.com/org/tenant/studio_/debug/e5f6a7b8",
"solutionId": "e5f6a7b8-0000-0000-0000-000000000001",
"failed": [],
"outputs": { "weatherVerdict": "warm office today" },
"fullOutputPath": "/path/to/solution/.flow-debug/invoice-flow.json"
}
}
| フィールド | 説明 |
|---|---|
failed | 完了しなかった要素の実行 ( { elementId, status }として)クリーン実行の場合は空です。 |
outputs | フローで宣言された出力変数 (out および inout) を ID 別に指定します。変数を読み取れなかった場合は除外されます。すると、variablesError理由が示されますが、出力は空ではなく不明です。 |
missingOutputs | 実行のレコードが伝送されなかった宣言された出力。 |
incidents | 実行中に発生したインシデントがある場合。 |
fullOutputPath | 完全な結果が書かれた場所。 |
fullOutputError | 完全な結果を書けなかった理由。要約は今でも有効です。 |
完全な結果 (コマンドが --summary なしで出力される内容) は <solution>/.flow-debug/<project>.jsonに書き込まれます。 <solution> は .uipx ファイルを保持するフォルダー、 <project> はそれを基準としたプロジェクト パスです。ファイルは実行のたびに置き換えられます。
このファイルにはテナント データが保持されているため、CLI は *を使用して.flow-debug/.gitignoreも書き込み、フォルダーをuip solution packuip solution uploadスキップします。
会話トリガーによるハンドオフ
エントリ ポイントが core.trigger.conversation のフローは、チャット UI によってのみ駆動できます。CLI はそのフローのデバッグ セッションを開始できません。代わりに、プロジェクトを Studio Web にアップロードしてハンドオフします。
{
"Code": "FlowDebugStudioWebHandoff",
"Data": {
"solutionId": "e5f6a7b8-0000-0000-0000-000000000001",
"studioWebUrl": "https://cloud.uipath.com/org/studio_/designer/a1b2c3d4?solutionId=e5f6a7b8",
"handedOff": true
}
}
{
"Code": "FlowDebugStudioWebHandoff",
"Data": {
"solutionId": "e5f6a7b8-0000-0000-0000-000000000001",
"studioWebUrl": "https://cloud.uipath.com/org/studio_/designer/a1b2c3d4?solutionId=e5f6a7b8",
"handedOff": true
}
}
elementExecutions/finalStatus フィールドが存在しません。何も実行されていないため、ポーリングするものはありません。CLI が自動的に開かれるように--open-in-browserstudioWebUrl渡します。
実行が失敗しました — インラインのインシデント
失敗した実行は、 Result: "Failure" エンベロープ (終了コード 1) として返され、インシデントの詳細はすでに Data.incidents にインラインで表示されています。何が発生したかを確認するためにフォローアップ コマンドは必要ありません。
{
"Code": "FlowDebug",
"Data": {
"jobKey": "b2c3d4e5-0000-0000-0000-000000000001",
"instanceId": "c3d4e5f6-0000-0000-0000-000000000001",
"runId": "d4e5f6a7-0000-0000-0000-000000000001",
"finalStatus": "Faulted",
"incidents": [
{
"incidentId": "inc-1",
"elementId": "Node_3",
"errorCode": "Process.UnhandledException",
"errorMessage": "Object reference not set to an instance of an object."
}
]
}
}
{
"Code": "FlowDebug",
"Data": {
"jobKey": "b2c3d4e5-0000-0000-0000-000000000001",
"instanceId": "c3d4e5f6-0000-0000-0000-000000000001",
"runId": "d4e5f6a7-0000-0000-0000-000000000001",
"finalStatus": "Faulted",
"incidents": [
{
"incidentId": "inc-1",
"elementId": "Node_3",
"errorCode": "Process.UnhandledException",
"errorMessage": "Object reference not set to an instance of an object."
}
]
}
}
実行が失敗した場合、エラーが表示される Instructions 、バックエンドの未加工のペイロードを検査する uip maestro flow debug-instances incidents <instanceId> を示します。下位レベルのコントロール サーフェスについては「 debug-instances 」をご覧ください。
参照
uip maestro flow debug-instances— カスタム ツールを構築するための、デバッグ セッションのステップバイステップの制御uip maestro flow validate— 実行前の静的チェックuip maestro flow process run— パブリッシュ済みのプロセスを実行しますuip maestro flow jobs traces— 開始済みのジョブのストリームトレース- 認証
- フローの概要