Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add common issues to if node #2586

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
#https://www.notion.so/n8n/Frontmatter-432c2b8dff1f43d4b1c8d20075510fe4
title: If node common issues
description: Documentation for common issues and questions in the If node in n8n, a workflow automation platform. Includes details of the issue and suggested solutions.
contentType: integration
priority: high
---

# If node common issues

Here are some common errors and issues with the [If node](/integrations/builtin/core-nodes/n8n-nodes-base.if/) and steps to resolve or troubleshoot them.

## Can't get data for expression

This error occurs when the If node can't retrieve the data referenced by an expression. This happens when n8n tries to find an item through [item linking](/data/data-mapping/data-item-linking/) but runs into problems.

For example, this JSON references the parameters of the input data. This error will display if you test this step without connecting it to another node:

```javascript
{
"my_field_1": {{ $input.params }}
}
```

To troubleshoot this problem, see the [item linking errors](/data/data-mapping/data-item-linking/item-linking-errors/) page to understand how to reference data from nodes that don't include pairing information.

--8<-- "_snippets/integrations/referenced-node-unexecuted.md"
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
#https://www.notion.so/n8n/Frontmatter-432c2b8dff1f43d4b1c8d20075510fe4
title: If
title: If node
description: Documentation for the If node in n8n, a workflow automation platform. Includes guidance on usage, and links to examples.
priority: critical
tags:
Expand All @@ -12,7 +12,7 @@ hide:
- tags
---

# If
# If node

Use the If node to split a workflow conditionally based on comparison operations.

Expand Down Expand Up @@ -49,3 +49,6 @@ If you need more than two conditional outputs, use the [Switch node](/integratio

--8<-- "_snippets/integrations/builtin/core-nodes/data-types.md"

## Common issues

For common questions or issues and suggested solutions, refer to [Common Issues](/integrations/builtin/core-nodes/n8n-nodes-base.if/common-issues/).
4 changes: 3 additions & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,9 @@ nav:
- HTTP Request:
- HTTP Request: integrations/builtin/core-nodes/n8n-nodes-base.httprequest/index.md
- Common issues: integrations/builtin/core-nodes/n8n-nodes-base.httprequest/common-issues.md
- integrations/builtin/core-nodes/n8n-nodes-base.if.md
- If:
- If: integrations/builtin/core-nodes/n8n-nodes-base.if/index.md
- Common issues: integrations/builtin/core-nodes/n8n-nodes-base.if/common-issues.md
- integrations/builtin/core-nodes/n8n-nodes-base.jwt.md
- integrations/builtin/core-nodes/n8n-nodes-base.ldap.md
- integrations/builtin/core-nodes/n8n-nodes-base.limit.md
Expand Down
Loading