Convert XML files to CSV format on Sftp

File TransferRecipe ToolsData ParserMarketingUtilities

What it does

When a new or updated file appears in a directory on an Sftp server, this automation downloads and converts it from XML to CSV. The converted file uploads back to Sftp so the team has both formats available.

Who it's for

Data and analytics teams who need to convert data files to CSV without manual processing.

How teams use this

Convert supplier data files automatically

When suppliers upload data files to the Sftp directory, this automation converts them to CSV and stores both versions. The team can then import the CSV into their data warehouse without manual conversion steps.

Process financial reports from external systems

Route data exports from accounting systems to a dedicated Sftp folder where this automation converts them to CSV for reconciliation. Finance teams receive the CSV version in their preferred format.

Add data validation before upload

Extend this automation to check that the CSV contains required columns and no empty rows before uploading to Sftp. Only valid files are sent to the server, preventing downstream errors.

How it works

  1. Monitor Sftp directory for file changes. Watch a directory on the Sftp server for new or updated files that need conversion to a different format.
  2. Download the file from Sftp. Retrieve the file from the Sftp server directory so the Xml Parser can process and extract its data.
  3. Parse the XML document. Extract and structure the data from the XML file using the Xml Parser so it can be transformed into CSV format.
  4. Compose the CSV file. Transform the parsed data into CSV format with proper columns and rows using the Csv Parser for download.
  5. Upload the CSV file to Sftp. Send the converted CSV file back to the Sftp server directory so it is ready for the team to download.