SEPA schema error parser
If you encounter a SEPA schema validation error when SEPA validation is performed using the maps in sepa_validation.mms, you will be presented with a SEP0300E or SEP0301 error message in the error log. If the data being passed in is a CORE or CORE plus AOS message, there will also be error messages that will allow you to determine what the schema error was. If, however, you are using the ISO 20022 UNIFI schemas, there are many elements in these schemas that SEPA does not use. In this event, only the SEP0300E or SEP0301E errors will appear in the error log. To help to determine what these errors are, you can use the utility map called sepa_error_parser.mms.
The sepa_error_parser.mms will run the SEPA data file through schema type tree validation with the TX trace option turned on. In order to expedite diagnosis of errors, this map will create a subset data file containing only the bad transactions. The XML trace log will be parsed, which will then be used by this framework to retrieve the error data information for the input data. The list of data errors will be presented as the output to the framework, which will show the line numbers of the data that is in error, as well as the element that failed validation. After the framework completes the process, refer to the subset bad data file which will be presented as card 4 in the utility map (errordat.xml) and the error log to correct schema errors in the data.