Skip to main content

file_validator

1. Description

File Validator program reads input files in TXT, CSV, XLS, or XLSX formats. It performs a comprehensive set of structural, content, and business validations before the file is allowed to proceed for downstream processing.

2. Program location

<installation_path>/file_validator

3.Screen Configuration

3.1 Process Config Fields

pfv_config_image Here enter the base input file and additional inputs required for the setup.

3.2 Process Derivations

Here select the validation types. Based on validation type a required filed section will come which needs to be filled with required values for validations.

3.2.1 Derivations desc
#ParametersDescriptionDerivationType
1FileTypeVerifies whether the input file extension is correct, it exists and can be opened.FileType
2AmtFieldField is used for calculating health check amount.AmtField
3FooterCountValidates footer record count matches actual row count.FooterCount
4ColumnCountEnsures each line/row has the expected number of columns.ColumnCount
5DuplicationChecks for duplicate entries in specified duplication key columns.Duplication
6ValuesINEnsures values belong to the allowed set.ValuesIN
7ValuesNOTINEnsures forbidden values are not present.ValuesNOTIN
8DataTypeValidates data type of specified columns.DataType
9DateFormatValidates date format and parseability.DateFormat
10NullValidationValidates specified columns for non-empty values.NullValidation
11RangeCheckVerifies value is within allowed range.RangeCheck
12MatDateCheckEnsures maturity date is not earlier than As-On-Date.MatDateCheck

3.3 Process Arguments

balm_aggr_m_pa_image

Here enter the process arguments to be passed to the program. The mandatory and non-mandatory fields are given below.

3.3.1 Mandatory Parameters
#ParametersDescriptionExample
1log-fileContains the detailed logs of the program showing the validations that are failing along with the column and row level details.log.txt
2diagnostics-log-fileContains the concise logs of the program showing the the number of failures for each validations.diag-log.txt
3.3.2 Non Mandatory Parameters
#ParametersDescriptionDefault valueExample
1log_levelLevel of diagnostics written to the log file.infoerror/warn/info/debug/trace/none
2is_perf_diagnostics_enabledThe flag that decides whether performance diagnostics will be written to the diagnostics log file.falsetrue or false

Click ⬇️ to download the sample data.

4. Output

This program generates a detailed log file that captures the complete validation trace of the input file. The log provides row-level and column-level visibility into validation failures, clearly indicating which validation rule failed, for which record, and for which field or column.

Each log entry includes the validation category, error type, priority level, and a descriptive message, enabling quick identification and root-cause analysis of data issues.

In addition to the detailed log file, the program generates a concise diagnostic summary log when the is_perf_diagnostics_enabled parameter is set to true. This summary log provides a high-level view of validation outcomes, listing each validation that failed along with the corresponding number of failure occurrences.