> 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/en/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).

# Invalid Steps

Sometimes steps become invalid when creating or editing scenarios.

This document will explain:

* How the UI warns about invalid steps
* How invalid steps can be created
* What happens when you try to save a scenario with invalid steps
* What happens when you try to run a scenario with invalid steps

## UI warnings for invalid steps

Steps that are invalid are highlighted in the scenario editor UI in a few places.

### At the time of creating the step

When creating a new step, in an unsaved scenario, a warning will be displayed only within the step itself.

![](https://1964297753-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVdZPTgwISYb3LhjgKnw6%2Fuploads%2Fgit-blob-5ac4c40e9b26ef1cd73f27067f2183f6bca56a5a%2F10.png?alt=media)

Even if the step contains invalid details, no external warnings will be displayed.

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

Be careful — if you click **Save**, the scenario will save and the UI will not show any warnings or alerts.

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

However, upon page reload or re-visit, additional warnings will be displayed in two places:

* At the top of the scenario editing pane
* On the step itself

#### Invalid step alert at the top of the scenario editing pane

An alert banner will appear at the top of the page with a list of invalid steps.

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

Clicking on the step name will open the invalid step.

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

#### Invalid step alert on the step itself

Invalid steps will be bordered in red and flagged as invalid. Click the invalid step to fix any issues.

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

The video below shows a full example of saving a scenario with invalid steps and reloading the page to show the warnings in the UI.

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

Step groups have the same behavior.

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

A scenario using a step group containing invalid steps will also behave similarly.

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

{% hint style="warning" %}
Test plans will not show any warnings about scenarios containing invalid steps.
{% endhint %}

![](https://1964297753-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVdZPTgwISYb3LhjgKnw6%2Fuploads%2Fgit-blob-460314376a48f819bfc5071d7eea6b4161e03cc1%2F09.png?alt=media)

## Invalid steps caused by user input

Steps that require user input can become invalid if the wrong data is entered.

![](https://1964297753-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVdZPTgwISYb3LhjgKnw6%2Fuploads%2Fgit-blob-5ac4c40e9b26ef1cd73f27067f2183f6bca56a5a%2F10.png?alt=media)

## Invalid steps caused by deleted reference

Steps can also become invalid due to deleted references.

The following are some examples of references that will cause steps to become invalid:

* Reference to a deleted JS step
* Reference to a deleted “Open Window” step
* Reference to a deleted data table

### Reference to a deleted JS step

When a JS step that is referenced by other steps is deleted, an error will be displayed on the steps that reference this JS step.

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

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

### Reference to a deleted “Open Window” step

When an “Open Window” step that is referenced by other steps is deleted, an error will be displayed on the steps that reference the now-deleted “Open Window” step. The step will refer to “Unknown Window”.

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

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

### Deleted data table reference

When a step uses data that has been uploaded via the “Data” tab, that step will become invalid if the data is deleted.

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

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

## Invalid steps can be saved

In some situations you may not be ready to complete your scenario and want to keep the invalid step. In this instance, you can save the invalid steps and continue working on your scenario at a later time.

{% hint style="warning" %}
We strongly recommend that you only save your scenario when all steps are in a valid state. Otherwise, you might encounter unexpected passing or failing steps during test execution.
{% endhint %}

### Saving a scenario or step group that has not been marked as invalid

When saving a scenario that doesn’t display an alert banner or has red borders around invalid steps, you will not see any error message or warning when saving.

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

### Saving a scenario or step group that has been marked as invalid

When saving a scenario that displays an alert banner and has red borders around invalid steps, you will see an alert when saving. You can still save the scenario by clicking “OK” on the alert.

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

## Invalid steps can be run

Even if your scenario contains invalid steps, it can still be run.

{% hint style="warning" %}
We strongly recommend that you only save and run your scenarios when all steps are in a valid state. Otherwise, you might encounter unexpected passing or failing steps during test execution.
{% endhint %}

### Running from the scenario editor page

Running a scenario containing invalid steps will not show any additional alert.

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

### Running from the test plan page

Running a test plan containing scenarios with invalid steps will not show any warnings.

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

### Unexpected behavior when running scenarios with invalid steps

If you are experiencing unexpected failing or passing steps during test execution, make sure to check your scenarios for any invalid steps and fix them before continuing.

For example, this scenario passes even though 2-1 is an invalid step.

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

![](https://1964297753-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVdZPTgwISYb3LhjgKnw6%2Fuploads%2Fgit-blob-e8f387d5dee9d38da26c6cff57abf4d536ec0242%2FStep%20should%20fail.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/en/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.
