> ## Documentation Index
> Fetch the complete documentation index at: https://auth0-chore-management-api-autoupdate.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# 実行とデバッガー

> フロー実行の確認方法と、フォーム実行のデバッグ方法について説明します。

フローが実行されるたびに、Auth0は実行をデバッグするために使用できるエントリを保存します。これはフロー実行のエラーが発生した理由を理解するのに役立ちます。たとえば、プロパティが欠落している、タイプミス、APIキーが正しくない等の理由でフローが失敗する可能性があります。

## フロー実行を確認する

フローの実行エントリを確認するには、以下の手順に従ってください。

1. **［Auth0 Dashboard］>［Actions（アクション）］>［Forms（フォーム）］** に移動してから、 **［Flows（フロー）］** を選択します。
2. リストからフローを選択します。
3. **［Executions（実行）］** を選択します。

<Frame>
  <img src="https://mintlify.s3.us-west-1.amazonaws.com/auth0-chore-management-api-autoupdate/docs/images/ja-jp/cdy7uua7fh8z/448jfjHtgCxfIeDOakuHyd/fba64deda0cf920f399de2190e94bdc9/Flows-execution.png" alt="Dashboard > Actions > Forms > Flows > Execution" />
</Frame>

すべての実行エントリに4つのプロパティがあります。

* **Execution date（実行日）** ：フロー実行の日付です。
* **Execution ID（実行ID）** ：フロー実行の一意のIDです。
* **Status（ステータス）** ：フロー実行の現在の段階です。4つの可能な実行ステータスがあります。

  * **Running（実行中）** ：実行が現在進行中です。
  * **Failed（失敗）** ：実行は内部エラー（フローアクションで必要な設定がないなど）のため失敗しました。
  * **Completed（完了）** ：実行は内部エラーなしで完了しました。
* **View Details（詳細を表示）** ：実行のデバッグウィンドウを開きます。

<Frame>
  <img src="https://mintlify.s3.us-west-1.amazonaws.com/auth0-chore-management-api-autoupdate/docs/images/ja-jp/cdy7uua7fh8z/1VqWEaVZg5lrXatXe9dbFB/dbcf7edca5aabdfc544f04cb18be4149/Flow-execution-details.png" alt="Dashboard > Actions >  Forms > Flows > Executions" />
</Frame>

<Callout icon="file-lines" color="#0EA5E9" iconType="regular">
  Completed（完了）とFailed（失敗）は最終ステータスです。実行がどちらかのステータスになった場合は、フローが完全に処理されたことを示します。
</Callout>

## フロー実行をデバッグする

フローのデバッグやトラブルシューティングを行うために、実行について **［View Details（詳細を表示）］** にアクセスして、フローの入力、出力、およびエラーデータを確認できます。

<Frame>
  <img src="https://mintlify.s3.us-west-1.amazonaws.com/auth0-chore-management-api-autoupdate/docs/images/ja-jp/cdy7uua7fh8z/5aeniTfHXplDyZfwCKBcgK/a2098a476edde76da10a527b0a606e95/Flow-error.png" alt="Dashboard > Actions > Forms > Form" />
</Frame>

フロー実行を中断するエラーをデバッグするには、以下の手順に従ってください。

1. **［Auth0 Dashboard］>［Actions（アクション）］>［Forms（フォーム）］** に移動します

2. ステップノードにリンクされたフローを見つけます。

   <Frame>
     <img src="https://mintlify.s3.us-west-1.amazonaws.com/auth0-chore-management-api-autoupdate/docs/images/ja-jp/cdy7uua7fh8z/4LjULYyo0nhtNowm7J5okz/27ea3f8386bb5015d447c48facf6b90f/flow-error-linked.png" alt="Dashboard > Actions > Forms > Form" />
   </Frame>

3. **［Edit Flow（フローを編集）］** を選択します。

4. **［Executions（実行）］** を選択します。

5. 失敗した実行の **［View Details（詳細を表示）］** を選択します。

以下の例では、`Update user Input（ユーザー` **入力の更新）** ビューは`user_id`プロパティに対してnull値を示します。

<Frame>
  <img src="https://mintlify.s3.us-west-1.amazonaws.com/auth0-chore-management-api-autoupdate/docs/images/ja-jp/cdy7uua7fh8z/6QNYKDqG9AIOEzQkP6Fnnr/db885e146179a0490eddd5ad6cb518dc/Flow-execution-failed.png" alt="Dashboard > Actions > Forms > Flow > Execution" />
</Frame>

**Error（エラー）** ビューは、必要な`user_id`がないため、アクションのスキーマ検証が失敗したことを示しています。フローは、フロー実行を中断する内部エラーを返します。

<Frame>
  <img src="https://mintlify.s3.us-west-1.amazonaws.com/auth0-chore-management-api-autoupdate/docs/images/ja-jp/cdy7uua7fh8z/1kaKihtJtv8VvNAyTkW4cC/6b34bcecc8642d7d97aaf2c8dec51ebc/flow-execution-error-view.png" alt="Dashboard > Actions > Forms > Flow > Execution > Error" />
</Frame>

**ユーザーを更新する** アクションを確認すると、`ユーザーID`パラメータに構文エラーが示されます。正しい構文は`{{context.user.user_id}}`です。構文が修正されたら、フローをテストして確認します。変数の構文について詳細は、「[変数](/docs/ja-jp/customize/forms/variables)」をお読みください。

<Frame>
  <img src="https://mintlify.s3.us-west-1.amazonaws.com/auth0-chore-management-api-autoupdate/docs/images/ja-jp/cdy7uua7fh8z/4YLRVNbzK5LjJEQjFXIJXM/5003833784ce5b0d9f63730ed46ff047/Action-typo-error.png" alt="Dashboard > Actions > Forms > Flows" />
</Frame>

<Callout icon="file-lines" color="#0EA5E9" iconType="regular">
  フィールドが非定常として構成されているか、値が[ヘルパー関数](/docs/ja-jp/customize/forms/variables#helper-functions)を使ってマスクされている場合は、値をデバッグで使用できません。

  <Frame>
    <img src="https://mintlify.s3.us-west-1.amazonaws.com/auth0-chore-management-api-autoupdate/docs/images/ja-jp/cdy7uua7fh8z/4MVtjnVD50cG63ocN5a458/c0337a94d1f4c21f28d06e28ec59121e/masked-information.png" alt="［Dashboard］>［Actions（アクション）］>［Forms（フォーム）］>［Flows（フロー）］>［Execution（実行）］" />
  </Frame>
</Callout>
