Overview
This node, named "Example Node," is a basic transformation node designed to add or overwrite a string property in each input item’s JSON data. It takes an input string and assigns it to the myString field of every incoming data item. This node is useful when you want to inject or modify a specific string value across multiple items in a workflow.
Practical examples:
- Adding a constant tag or label to all items before further processing.
- Overwriting or setting a default string value for downstream nodes.
- Testing or debugging workflows by inserting known values into data items.
Properties
| Name | Meaning |
|---|---|
| My String | The description text; a string value to assign to each item's myString field. |
Output
The node outputs the same number of items as it receives, with each item’s JSON data augmented or overwritten to include the property myString set to the input string value provided.
Output structure example:
{
"json": {
"myString": "value set by user",
// ... other original properties remain unchanged
}
}
No binary data output is produced by this node.
Dependencies
- No external services or API keys are required.
- The node relies solely on n8n's internal framework and standard input/output handling.
Troubleshooting
Common issues:
- If the input data is empty or missing, the node will simply return an empty array without modification.
- Errors during execution typically relate to invalid input types or unexpected data structures.
Error messages:
- If an error occurs on a particular item, and the node is configured to continue on failure, the error details will be attached to that item under an
errorproperty. - Otherwise, the node throws an error indicating the item index where the failure happened.
- If an error occurs on a particular item, and the node is configured to continue on failure, the error details will be attached to that item under an
To resolve errors:
- Ensure the input data is correctly formatted.
- Verify that the "My String" property is set appropriately.
- Use the "Continue On Fail" option if partial processing is acceptable.