This tutorial walks through extracting data from a file in one format, transforming it, and writing it out as a file in another format — for example, JSON to CSV or XML to JSON.
How do I set this up?
Set up the connections
See Creating and managing connections for background.
- Create a source connection for the file storage and test it. Etlworks supports a wide range of storage connectors:
- Create the destination file-storage connection and test it.
-
Create a format for the source file — for example, CSV.
- Create a format for the destination file.
Optional: test the source in Explorer
You can preview the source data in the Etlworks Explorer. For nested source or destination files, see how to work with nested datasets.
Create the flow
- Create a new File to file flow.
- Add a transformation. Set FROM to the source connection, format, and filename, and TO to the destination connection, format, and filename.
- Click MAPPING and configure Source SQL if needed.
- Test the transformation.
- Add per-field mapping if needed.
- If FROM is a wildcard filename, enable processing of all files that match the wildcard.
- Save the flow and execute it manually.
-
Schedule the flow to run periodically.