XML Parser Error

Oct 28, 2014 at 6:26 PM
I wrote a script to simply batch convert a directory of x12 files to XML but I receive a general fault error.

The weird thing is it works fine when I run the command on the files one at a time, but when I put them into a looping script they error out. I have tried adding a 5 second delay between each execution but the error still persists. Here is the debug information:

Source
OopFactory.X12.AcknowledgeX12

Summary
Stopped working

Date
‎10/‎28/‎2014 7:36 AM

Status
Not reported

Description
Faulting Application Path: C:\Users\ThatGuy\Downloads\Release 3.0.8 binaries\Release\OopFactory.X12.AcknowledgeX12.exe

Problem signature
Problem Event Name: CLR20r3
Problem Signature 01: oopfactory.x12.acknowledgex12
Problem Signature 02: 3.0.8.0
Problem Signature 03: 52f823b0
Problem Signature 04: OopFactory.X12.AcknowledgeX12
Problem Signature 05: 3.0.8.0
Problem Signature 06: 52f823b0
Problem Signature 07: 1
Problem Signature 08: 0
Problem Signature 09: System.IndexOutOfRangeException
OS Version: 6.1.7601.2.1.0.256.48
Locale ID: 1033
Additional Information 1: 0a9e
Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
Additional Information 3: 0a9e
Additional Information 4: 0a9e372d3b4ad19135b953a78882e789
Oct 28, 2014 at 7:55 PM
Figured it out.
Marked as answer by codeone on 10/28/2014 at 12:56 PM