MT940 Parser

Hello,

I have imported MT940 dep into my elixir project, however, when i read the file to have it parsed into more usable data, I get an error:

** (ArgumentError) argument error
(mt940) lib/parser.ex:63: MT940.Parser.parse!/1
(mt940) lib/customer_statement_message.ex:33: MT940.CustomerStatementMessage.parse!/1
(tool) lib/tool.ex:20: anonymous fn/2 in Tool.readFiles/0
(elixir) lib/enum.ex:1940: Enum."-reduce/3-lists^foldl/2-0-"/3
(tool) lib/tool.ex:15: Tool.readFiles/0

1 Like

From a first glance, some error occured while parsing the input data.

Either the input is broken or the parser library.

2 Likes

Reviewing this helped me find what the issue was,
Definitely the input is broken and the library works just fine.

2 Likes