> For the complete documentation index, see [llms.txt](https://help.autify.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.autify.com/nocode-web/faq/faq-create-scenario/faq-recording/during-local-replay-an-error-occurred-why.md). Agents can also search and read this documentation through its [MCP server](https://help.autify.com/~gitbook/mcp).

# ローカルリプレイ中にエラーになりました。なぜですか？

「ローカルリプレイ」操作を進めている途中で何らかのエラーが発生し、処理が止まってしまうことがあります。\
以下はエラーが発生した際に表示されるダイアログです。

![](https://50135409-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fof7cb8AGXhWvWThq3R0w%2Fuploads%2Fgit-blob-b8e6b942acb2100478abf209d8478507581136ef%2Fzndsk-ss_localreplry_playground.jpg.png?alt=media)

## 1.エラーの原因とその対処方法

「ローカルリプレイ」でエラーが発生する主な原因はリプレイに対応していない操作ステップやテスト実行でも起こりうるエラー、テスト実行では成功するがリプレイは失敗する場合などがあります。

### 1-1.ローカルリプレイに対応していない操作

#### ・ファイルアップロードステップ

ファイルアップロードステップで失敗した場合は、手動でアップロード操作後、リプレイを続行してください。

![](https://50135409-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fof7cb8AGXhWvWThq3R0w%2Fuploads%2Fgit-blob-0325dd4c25a92f0a46baae1f78a93d094d328292%2Freplay_file_upload\(1\).png?alt=media)

### 1-2.テスト実行でも起こりうるエラー

#### ・操作ステップ（クリックや入力）で対象としている要素がみつからなかった

この場合、テスト実行時と同様エラーになります。もし、エラーが発生した画面に対象要素が表示されている場合は、手動でその要素に対して操作後、リプレイを続行してください。

#### ・JSステップに記述された内容が不適切であった

この場合、テスト実行時も同様エラーになります。記述されているJSステップの内容を見直ししてください。

### 1-3.テスト実行は成功するが、「ローカルリプレイ」では失敗する

「ローカルリプレイ」と「テスト実行」は別物ですので、**「ローカルリプレイ」でエラーが発生してしまう場合でも、テストは問題なく実行できることがあります。** 詳しくは、[こちらの記事](https://help.autify.com/nocode-web/faq/faq-create-scenario/faq-recording/what-can-i-do-with-record-here.md#differences-between-local-replay-and-test-execution) もご確認ください。

リプレイは高速で実行されるため、ページ遷移などの処理が完了する前に次の処理が開始されてしまいリプレイがエラー (途中で止まる) になることがあります。そのようなときは、処理に時間がかかるステップの後に待機ステップを追加することで、リプレイを止めることなく進めることができる場合がありますので、状況に応じてお試しください。

関連記事：[ローカルリプレイの基本的な使い方](https://help.autify.com/nocode-web/faq/faq-create-scenario/faq-recording/what-can-i-do-with-record-here.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.autify.com/nocode-web/faq/faq-create-scenario/faq-recording/during-local-replay-an-error-occurred-why.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
