Overview
This node processes text data in various ways, making it useful for text transformation tasks within an n8n workflow. It supports operations such as converting text to uppercase or lowercase, reversing the order of characters, and counting the number of characters in a given text field.
Practical examples include:
- Normalizing user input by converting all text to uppercase.
- Preparing text for case-insensitive comparisons by converting to lowercase.
- Reversing strings for encoding or formatting purposes.
- Counting characters to validate input length or generate statistics.
Properties
| Name | Meaning |
|---|---|
| Operation | The type of text processing to perform. Options: Uppercase, Lowercase, Reverse, Count Characters |
| Text Field | The name of the input field containing the text to be processed |
| Output Field | The name of the output field where the processed result will be stored |
Output
The node outputs an array of items where each item contains a JSON object. This JSON object includes all original fields plus a new field (as specified by the "Output Field" property) holding the processed text or character count.
- For Uppercase, Lowercase, and Reverse operations, the output field contains a string with the transformed text.
- For the Count Characters operation, the output field contains a number representing the length of the input text.
No binary data is produced by this node.
Dependencies
- No external services or APIs are required.
- No special credentials or environment variables are needed.
- The node relies solely on built-in JavaScript string methods.
Troubleshooting
Error: The field 'X' must contain text, but contains: Y
This error occurs if the specified input field does not contain a string or is undefined. Ensure that the input data has the correct field with a valid string value.Error: Unknown operation: Z
This indicates an invalid operation was selected. Verify that the operation property is set to one of the supported options: Uppercase, Lowercase, Reverse, or Count Characters.If the node fails on some items but continues on others, check the "Continue On Fail" setting to control error handling behavior.