Question
· Nov 25

Using EnsLib.RecordMap.Service.FTPService and validation within the RecordMap

I am trying to add validation to a RecordMap, because the source of the data sent file sent us bad data within the file. So, I am using PATTERN to verify certain fields start with Numeric, and Alpha where applicable. When the EnsLib.RecordMap.Service.FTPService runs into an issue it doesn't seem like it continues onto the next record if the record does not meet the validation requirements. 

How can I tell EnsLib.RecordMap.Service.FTPService to log the error and continue onto the next record, so those records that fail are not processed?

Product version: IRIS 2024.2
$ZV: HealthShare Provider Directory 2024.2.0 Build: 1009 [HealthShare Modules: Core:28.0 + Provider Directory:28.0] - IRIS for UNIX (Red Hat Enterprise Linux 8 for x86-64) 2024.1 (Build 267_2_24113U) Wed Jul 2 2025 16:36:55 EDT [Core:28.0|Provider Directory:28
Discussion (1)2
Log in or sign up to continue

To make the EnsLib.RecordMap.Service.FTPService log validation errors and continue processing subsequent records, you can adjust the behavior through error handling settings within the RecordMap configuration. Specifically:

  1. Error Handling Options in RecordMap Services:
    EnsLib.RecordMap.Service classes include error handling configurations:

    • You can define how errors are managed, including whether they should stop processing or be logged without interruption. Adjusting this configuration ensures invalid records are logged while allowing the system to continue processing the next ones [1].
  2. Validation Using Patterns:
    The RecordMap allows you to utilize patterns for field validation, ensuring fields adhere to the expected format or type. When using PATTERN, you can specify the format requirements in your RecordMap fields, such as numeric or alphabetic criteria, for validating input records [2].

  3. Using the Record Mapper:
    Ensure you configure your RecordMap correctly by enabling the settings for error management, such as defining error handling modes and validation methods. The "Allow Complex Batching" and "Error Handling" features should be configured to better control how validation errors are treated during processing [3].

References:
[1][2][3]

Sources: