Empty ACH file
Closed this issue · 3 comments
kgverner commented
I'm running your test code but it produces an empty ach.txt file. What am I doing wrong?
ChoNACHAConfiguration config = new ChoNACHAConfiguration();
config.DestinationBankRoutingNumber = "123456789";
config.DestinationBankName = "PNC Bank";
config.OriginatingCompanyId = "123456789";
config.OriginatingCompanyName = "Microsoft Inc.";
config.ReferenceCode = "Internal Use Only.";
//config.BlockCount = 10;
using (var nachaWriter = new ChoNACHAWriter(@"C:\Temp\ACH.txt", config))
{
using (var bw1 = nachaWriter.CreateBatch(200))
{
using (var entry2 = bw1.CreateCreditEntryDetail(22, "123456789", "1313131313", 10M, null, "ID Name", "Desc Data"))
{
}
using (var entry2 = bw1.CreateCreditEntryDetail(22, "123456789", "1313131313", 20M, null, "ID Name", "Desc Data"))
{
}
}
using (var bw2 = nachaWriter.CreateBatch(200))
{
}
}
Cinchoo commented
Found the issue in ChoETL library, fixed it. Please take the latest nuget package, try it again. Let me know. Thanks
kgverner commented
Thank you!
… On Jun 4, 2018, at 7:49 PM, Cinchoo ***@***.***> wrote:
Found the issue in ChoETL library, fixed it. Please take the latest nuget package, try it again. Let me know. Thanks
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
Cinchoo commented
Pls close it, if worked.