When a NACHA file is read using "ChoNACHAReader", the record of type "ChoETL.NACHA.ChoNACHAEntryDetailRecord" and field ReceivingDFIID is removing any leading zeros from the number.
The following code should show you what I am talking about with any file that has a routing number with a leading zero in the Entry Detail record.
using (ChoNACHAReader fr = new ChoNACHAReader(fileName))
{
foreach (var r in fr)
{
if (r.ToString() == "ChoETL.NACHA.ChoNACHAEntryDetailRecord")
{
ChoNACHAEntryDetailRecord detail = (ChoNACHAEntryDetailRecord)r;
Console.WriteLine(detail.ReceivingDFIID.ToString());
}
}
}
When a NACHA file is read using "ChoNACHAReader", the record of type "ChoETL.NACHA.ChoNACHAEntryDetailRecord" and field ReceivingDFIID is removing any leading zeros from the number.
The following code should show you what I am talking about with any file that has a routing number with a leading zero in the Entry Detail record.
using (ChoNACHAReader fr = new ChoNACHAReader(fileName)) { foreach (var r in fr) { if (r.ToString() == "ChoETL.NACHA.ChoNACHAEntryDetailRecord") { ChoNACHAEntryDetailRecord detail = (ChoNACHAEntryDetailRecord)r; Console.WriteLine(detail.ReceivingDFIID.ToString()); } } }