> 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/autify-university/foundation/creating-a-scenario/invalid-steps.md). Agents can also search and read this documentation through its [MCP server](https://help.autify.com/~gitbook/mcp).

# 無効なステップ

シナリオの作成時や編集時にステップが無効になることがあります。

このドキュメントでは、以下のことを説明します：

* 無効なステップに対するUIの警告
* 無効なステップの作成方法
* 無効なステップを含むシナリオを保存しようとするとどうなるか
* 無効なステップを含むシナリオを実行するとどうなるか

## 無効なステップに対するUIの警告

無効なステップは、シナリオ詳細画面のUIでハイライト表示されます。

### ステップ作成時

新しいステップを作成する際、未保存のシナリオでは、ステップの中だけに警告が表示されます。

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

ステップに無効な詳細が含まれていても、外部からの警告は表示されません。

{% embed url="<https://drive.google.com/file/d/1tARy2PwcMGOyXCPzrUkrPPmMrBw4INTt/preview>" %}

注意 - "保存 "をクリックすると、シナリオは保存され、UIには警告やアラートは表示されません。

{% embed url="<https://drive.google.com/file/d/1yFAyUmupezn22njO7aaf5VLeHonHXOQu/preview>" %}

しかし、ページのリロード時や再閲覧時には、2箇所に警告が表示されます：

* シナリオ詳細画面の上部
* ステップ自体

#### シナリオ編集ペインの上部

ページ上部に、無効なステップのリストと共に警告バナーが表示されます。

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

ステップ名をクリックすると、無効なステップが表示されます。

{% embed url="<https://drive.google.com/file/d/1h_N9Lds25H8N_90txHkmEmQWIkhtzn1H/preview>" %}

#### ステップ自体

無効なステップは赤枠で囲われ、無効のフラグが立てられます。無効なステップをクリックして問題を修正してください。

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

以下の動画は、無効なステップを含むシナリオを保存し、ページをリロードしてUIに警告が表示された例です。

{% embed url="<https://drive.google.com/file/d/145Rt-SN5inMB_XY4V8Oe04ISHP-S3FLF/preview>" %}

ステップグループも同じ動作をします。

{% embed url="<https://drive.google.com/file/d/1JIaofiMN0yZjT5yN3Te6E66rMfqe58oD/preview>" %}

無効なステップを含むステップグループを使用したシナリオも同様の動作をします。

{% embed url="<https://drive.google.com/file/d/1zAUoBDTKqK4GjRJr7S4PkfepcNLnjVWK/preview>" %}

{% hint style="warning" %}
テストプランでは、無効なステップを含むシナリオに関する警告は表示されません。
{% endhint %}

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

## ユーザー入力による無効なステップ

ユーザー入力を必要とするステップは、間違ったデータ型が入力されると無効になることがあります。

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

## 参照しているステップを削除したことによる無効なステップ

参照しているステップを削除したことによってステップが無効になることもあります。

以下は、参照しているステップを削除したことに起因する無効なステップの例です：

* 削除されたJSステップを参照している
* 削除されたウィンドウを開くステップを参照している
* 削除されたデータを参照している

### 削除されたJSステップを参照

他のステップから参照されているJSステップを削除すると、そのJSステップを参照しているステップにエラーが表示されます。

{% embed url="<https://drive.google.com/file/d/1R-sxymJmT-GHYps-mZlTL_o5NYA9tbq4/preview>" %}

![](https://50135409-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fof7cb8AGXhWvWThq3R0w%2Fuploads%2Fgit-blob-33dbb554d84b603611c5b0115e041d77c7ff11ea%2Finvalid%20js%20step%20ui.png?alt=media)

### 削除されたウィンドウを開くステップを参照

他のステップから参照されている「ウィンドウを開く」ステップが削除されると、削除された「ウィンドウを開く」ステップを参照しているステップにエラーが表示されます。そのステップは「不明なウィンドウ」を参照します。

{% embed url="<https://drive.google.com/file/d/1mzsyHKSs0lRa5DPM0LYnHJ4-rT9tf653/preview>" %}

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

### 削除されたデータを参照している

「データ」タブでアップロードされたデータを使用するステップでは、データが削除されるとそのステップは無効になります。

{% embed url="<https://drive.google.com/file/d/14bn50lSlOl5WAqcLFM3ifsWPu1lyoOsc/preview>" %}

![](https://50135409-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fof7cb8AGXhWvWThq3R0w%2Fuploads%2Fgit-blob-171b229a6b2fff436fbcff65708d4a2c439e8e6b%2Finvalid%20data%20reference%20ui.png?alt=media)

## 無効なステップは保存できる

状況によっては、シナリオを完成させる準備ができておらず、無効なステップを残しておきたい場合があります。このような場合、無効なステップを保存しておき、後でシナリオの作業を続けることができます。

{% hint style="warning" %}
シナリオの保存は、全てのステップが有効な状態になってから行うことを強くお勧めします。そうしないと、テスト実行中に予期せぬステップの成功や失敗に遭遇する可能性があります。
{% endhint %}

### 無効とマークされていないシナリオまたはステップグループの保存

警告バナーが表示されないシナリオや、無効なステップの周囲に赤枠があるシナリオを保存する場合、保存時にエラーメッセージや警告は表示されません。

{% embed url="<https://drive.google.com/file/d/1yFAyUmupezn22njO7aaf5VLeHonHXOQu/preview>" %}

### 無効と表示されたシナリオまたはステップグループの保存

警告バナーが表示され、無効なステップの周囲に赤い枠線があるシナリオを保存する場合、保存時に警告が表示されます。アラートの "OK "をクリックすることで、シナリオを保存することができます。

{% embed url="<https://drive.google.com/file/d/1LTVbs9WzjbaQIMtPgbgL90nUi54YzexK/preview>" %}

## 無効なステップは実行可能

シナリオに無効なステップが含まれていても、実行は可能です。

{% hint style="warning" %}
シナリオの保存と実行は、全てのステップが有効な状態になってから行うことを強くお勧めします。そうしないと、テスト実行中に予期しないステップの合格や不合格に遭遇する可能性があります。
{% endhint %}

### シナリオエディターページからの実行

無効なステップを含むシナリオを実行しても、追加のアラートは表示されません。

{% embed url="<https://drive.google.com/file/d/1pCRWgqWO5THH69_in0T4MJh4K6HYw2en/preview>" %}

### テストプランページからの実行

無効なステップを含むシナリオを含むテストプランを実行しても、警告は表示されません。

{% embed url="<https://drive.google.com/file/d/1sQOVeNX8DSVFCYQY14YGBTw8KYkR4_Gu/preview>" %}

### 無効なステップを含むシナリオを実行したときの予期しない動作

テスト実行中に予期しないステップの失敗または成功が発生した場合は、シナリオに無効なステップがないか確認し、続行する前に修正してください。

例えば、2-1 が無効なステップであるにもかかわらず、このシナリオは成功しています。

![](https://50135409-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fof7cb8AGXhWvWThq3R0w%2Fuploads%2Fgit-blob-775f0a190c74a2424e17f93cc2b105a5f7840774%2Finvalid%20scenario%20run%20screenshot.png?alt=media)

![](https://50135409-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fof7cb8AGXhWvWThq3R0w%2Fuploads%2Fgit-blob-b6ba5975b79e31295475327ce514db0e47e0a461%2Fshould%20be%20failing.png?alt=media)


---

# 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/autify-university/foundation/creating-a-scenario/invalid-steps.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.
