Data Table To CSV
Converts a data table to a CSV file format.
Common Properties
- Name - The custom name of the node.
- Color - The custom color of the node.
- Delay Before (sec) - Waits in seconds before executing the node.
- Delay After (sec) - Waits in seconds after executing node.
- Continue On Error - Automation will continue regardless of any error. The default value is false.
info
If the ContinueOnError property is true, no error is caught when the project is executed, even if a Catch node is used.
Inputs
- Table - The input data table to be converted to CSV format.
- CSV Path - The file path where the CSV file will be saved.
Options
- Overwrite If Exists - Specifies whether to overwrite an existing file at the specified path. Options are:
- True
- False
Output
This node does not produce a direct output but saves the data to a CSV file.
How It Works
The Data Table To CSV node converts a data table to a CSV file format. When executed, the node:
- Validates that the input table is not empty and is valid
- Checks if the table is a reference table and handles it appropriately
- Validates that the CSV file path is not empty
- Checks if a file already exists at the specified path and handles overwrite settings
- Converts the data table to a pandas DataFrame
- Saves the DataFrame as a CSV file at the specified path
Requirements
- A valid input data table
- A valid file path for saving the CSV file
- Proper file system permissions to write to the specified location
Error Handling
The node will return specific errors in the following cases:
- Empty or invalid input table
- Empty CSV file path
- File already exists at the specified path when Overwrite If Exists is set to False
- Invalid table structure
- Insufficient permissions to write to the file
Usage Notes
- The CSV file will be saved at the specified path
- If Overwrite If Exists is set to False, the node will not overwrite existing files
- The first row of the CSV file will contain the column headers from the data table
- The node supports standard CSV format with comma separators