Troubleshooting
Part of n8n v2. Install the skill and your agent reads this page when it needs the depth.
n8n Troubleshooting Guide
Common issues and solutions when working with n8n v2.0 workflows.
Table of Contents
- Execute Sub-Workflow Issues
- Authentication Issues
- Data Issues
- Expression Issues
- Workflow Execution Issues
- Data Quality Issues
- API Integration Issues
- Performance Issues
- Import/Export Issues
- Debug Checklist
Execute Sub-Workflow Issues
See execute-sub-workflow-issues.md for dedicated documentation.
Quick summary:
- Problem: "Node out of date" error after import
- Solution: Delete old Execute Sub-Workflow nodes, add fresh ones from palette
Authentication Issues
LinkedIn unauthorized_scope_error
Symptoms:
- OAuth flow completes successfully
- API calls return 401 or 403 errors
- Error message: "Insufficient permissions" or "unauthorized_scope_error"
Root cause: Organization Support or Legacy toggles are enabled in credentials
Solution:
- Open n8n UI > Home > Credentials
- Find LinkedIn OAuth2 credential
- Edit credential
- Turn OFF both toggles: ❌ Organization Support, ❌ Legacy
- Save and test
API Key Authentication Failing
Symptoms:
- 401 Unauthorized or 403 Forbidden errors
- "Invalid API key" messages
Checklist:
- Header name is exact match (case-sensitive):
X-Api-Keynotx-api-key - Credential type matches node's
nodeCredentialType - API key not expired
- Not hitting rate limits
Data Issues
Field is Undefined
Common causes:
- Typo in field name:
$json.titelvs$json.title - Wrong node referenced
- Field doesn't exist in some items
Solutions:
// Use optional chaining
{{ $json.field?.nestedField ?? 'default' }}
// Fallback chain
{{ $json.field || 'default' }}
Data Lost Between Nodes
Common causes:
- Filter node removed all items
- Code node not returning correct format
- Connection missing
Solution - Correct Code node return:
// Correct
return [{ json: { data } }];
return items.map(item => ({ json: item }));
// Wrong
return { data };
return data;
Merge Node Not Combining Data
Checklist:
- Mode is
appendfor combining lists - All inputs connected
- Upstream nodes executed successfully
Expression Issues
Expression Not Evaluating
Solutions:
- Check syntax:
={{ expression }}not{{ expression }} - Enable expression mode in node parameter (toggle)
- Escape literal braces if needed
Cross-Node Reference Returns Empty
Solutions:
- Node name exact match (case-sensitive)
- Node has executed
- Correct syntax:
$('Node Name').first().json.field
Workflow Execution Issues
Wait Node Not Pausing
Solution: Use Wait node with resume: "form", NOT respondToWebhook or Set nodes.
See wait-nodes-guide.md for details.
Split in Batches Infinite Loop
Solution: Ensure downstream nodes connect back to Split in Batches for loop continuation.
Data Quality Issues
Duplicate Items
Solution: Use Code node for deduplication:
const items = $input.all();
const seen = new Set();
const unique = [];
for (const item of items) {
const key = item.json.url.toLowerCase().replace(/\/$/, '');
if (!seen.has(key)) {
seen.add(key);
unique.push(item);
}
}
return unique;
See code-snippets/deduplication.js
Date/Time Format Mismatch
Solution: Normalize to ISO format:
// Set node
"value": "={{ new Date($json.pubDate).toISOString() }}"
// Unix timestamp (seconds)
"value": "={{ new Date($json.time * 1000).toISOString() }}"
API Integration Issues
Rate Limit Errors
Solutions:
- Use Split in Batches to reduce request frequency
- Add delays between requests
- Cache responses
LinkedIn Member ID Format Error
Solution: Use URN format:
// urn:li:person:{id}
={{ `urn:li:person:${$json.sub}` }}
Performance Issues
Workflow Timeout
Solutions:
- Filter data earlier in workflow
- Use Split in Batches
- Optimize Code nodes (avoid nested loops)
Memory Issues
Solutions:
- Process in batches
- Limit array sizes
- Keep only essential fields
Import/Export Issues
Imported Workflow Shows Errors
Solutions:
- Execute Sub-Workflow nodes: delete and recreate
- Reconfigure credentials
- Verify all connections
Debug Checklist
- Execute nodes individually and check output
- Trace data flow through workflow
- Verify expressions in isolation
- Inspect connections visually
- Review credentials configuration
- Check n8n logs
- Test APIs externally (curl/Postman)
See Also
references/execute-sub-workflow-issues.mdreferences/wait-nodes-guide.mdreferences/api-credentials.mdreferences/expression-syntax.mdreferences/node-library.md