moov-io / ach

ACH implements a reader, writer, and validator for Automated Clearing House (ACH) files. The HTTP server is available in a Docker image and the Go package is available.
https://moov-io.github.io/ach/
Apache License 2.0
447 stars 150 forks source link

IAT Corrections shouldn't require Addenda records #1385

Closed adamdecaf closed 4 months ago

adamdecaf commented 4 months ago

ACH Version

v1.34.4

What were you trying to do?

When parsing an IAT correction the following error is returned.

Error: Exception: line:1 record:Batches *ach.BatchError batch #5 (COR) FieldError Addenda10 ‹nil > is al mandatory field and has a default value none or more than one file control exists

What did you expect to see?

Per Nacha, IAT Corrections do not need to have the addenda records.

IMG_2303

What did you see?

Slack thread: https://moov-io.slack.com/archives/CD9J8EJKX/p1709138864590699

How can we reproduce the problem?

Create an IAT Correction without addenda records and see the parsing/validation fail.