Cinchoo / ChoETL.NACHA

A NACHA library for .NET / c#
MIT License
37 stars 32 forks source link

Addenda record - Entry Detail Sequence Number must be greater than 0 #52

Open jbb3141afs opened 1 year ago

jbb3141afs commented 1 year ago

I've used this library for 2 years on NACHA files then suddenly it stops parsing because of an Addenda (type 7) record has '0000000' for the Entry Detail Sequence Number. The ChoNACHAAddendaRecord is defined as:

[ChoFixedLengthRecordField(87, 7)] [Range(1, 1.8446744073709552E+19, ErrorMessage = "Entry Detail Sequence Number must be > 0.")] public ulong EntryDetailSequenceNumber { get; set; }

However, the NACHA file is sending '0000000' and nowhere can I find in the NACHA specs where the Entry Detail Sequence Number must be > 0. The Addenda Sequence Number always starts with 1 but nothing about the Entry Detail Sequence Number. The Trace Number to which it's referencing the last 7 digits in the type 6 detail records does have seven zeroes for the last seven digits.

Is this a bug or am I missing something in the NACHA specs?

Cinchoo commented 1 year ago

well, can u pls add some context (package version) and sample to share?

Cinchoo commented 1 year ago

try with latest v1.0.2.6, let me know