CSV
Using the CSV Connector in DBSync Cloud Workflow
Overview
The CSV Connector in DBSync Cloud Workflow allows users to perform operations on CSV files, such as parsing (reading CSV content by rows) and composing (creating a CSV file from a data stream). This functionality enables seamless integration and manipulation of CSV data within workflows.
Operations
Parse CSV: This operation reads and interprets the content of a CSV file.
Compose CSV: This operation creates or generates a CSV file from the provided data stream.
Steps to Use the CSV Connector
Configure the CSV Action
Select Operation: Choose either Parse or Compose.
Parse CSV
Parse From: Select the CSV data stream variable that contains the CSV content you want to parse. This can be a hardcoded file path, a data-stream variable, or a regular expression to match file patterns.
Delimiter: Choose the delimiter used in your CSV file from the dropdown list (e.g., Comma, Semicolon, Tab, Pipe, Space). You can also select Custom to specify a different separator.
Include Header Row: Select Yes if the first row of the CSV file contains header information (column names). If selected, the column names will be displayed in the Header Layout section.
Header Layout: If the header row is included, enter the column names that need to be processed. This field is user-editable.
File Encoding: Specify the character encoding for the CSV file (e.g., UTF-8, ASCII) to ensure proper data handling.
Row Batch Size: Set the number of rows to read per batch. This improves performance by processing multiple rows at once.
Compose CSV
Compose To: Define a variable that will store the composed CSV content. The variable name follows the pattern fileContent_Step{actionRowNumber} (e.g., $file_content_step2).
Select Separator: Choose the delimiter for the composed CSV file. You can select from common delimiters or specify a custom one.
Include Header Row: Check this option if you want to include a header row in the composed CSV. If checked, enter the column names in the Header Layout section.
Map: If the header row is included, map the fields from the data stream to the corresponding columns in the CSV. If not included, the columns will be labeled as Column<1>, Column<2>, etc.
CSV Output: This variable will save the CSV data stream after composing, which can be used for further processing or uploading to a target.
Example Workflow
Login to DBSync Cloud Workflow.
Create a new project and add a task for CSV operations.
Add the CSV Connector and configure it for either parsing or composing CSV files.
Run the workflow to execute the CSV operations and monitor the results.
PRO TIP
When working with large CSV files, use the Row Batch Size setting to process multiple rows at once. This can significantly improve performance and reduce processing time.
Related Content
DBSync Query Documentation : Learn how to add and configure queries to retrieve data from various sources, enabling you to pull in the necessary information for your workflows.
Last updated