Enrich CSV data fields against lookup table

Recipe ToolsDeveloper ToolMarketing

What it does

When someone calls this automation, it searches a lookup table for valid data fields. It checks each column in the CSV against the schema and returns whether the data matches or stops the job if no fields are found.

Who it's for

Data and analytics teams who need to validate CSV structure before processing.

How teams use this

Validate incoming CSV before import

Check that a CSV file has all required columns before loading it into a database. The validation runs automatically and blocks bad data from entering the system.

Enforce data quality on uploads

Use this automation in a finance workflow to ensure expense reports or transaction CSVs match the expected schema. Only valid files proceed to the next step.

Add custom field validation rules

Extend the lookup table to include data type checks or value ranges so columns are validated not just by name but also by content. Set conditions to reject columns that fail type validation.

How it works

  1. Receive a validation request. A call arrives in real time to validate CSV data fields using the Workato Service endpoint.
  2. Search for valid field definitions. Search the Lookup Table in batch mode for all valid data fields that the CSV should contain and retrieve matching entries.
  3. Check each column against the schema. Loop through each CSV column using Js Eval and verify it matches a valid field. Accumulate columns that pass validation into a staging list for the next step.
  4. Return validation result. Send back from Workato Service whether all columns are valid or stop the job if no matching fields exist in the lookup table.