Can't parse the sample 834 Transaction or a standard 997

Sep 4, 2013 at 8:35 PM
So I download the latest binaries and source.
I copied the sample 834 text directly from the "Parsing an 834 Transaction" help screen.
(https://x12parser.codeplex.com/wikipage?title=Parsing%20an%20834%20Transaction&referringTitle=Documentation)
I then ran sample C# code.
But I get error "0 is not a valid subelement separator in position 105 of the file"
When I run the file through the source it breaks at line 40 in OopFactory.X12.Parsing.X12DelimiterSet
The problem is that isaSegmentAndTerminator[105] is invalid.
Basically it combined the ISA which is only 87 characters and the GS together and then read the 105 position which is the "0" from GS02 901234572000

I have tried changesets 26069 - 28968 and they are all broken.
Sep 11, 2013 at 3:42 PM
Edited Sep 11, 2013 at 3:43 PM
I'm sure I am missing something simple here. I can't parse the sample 834 from this site.
I also can't seem to parse any of the EDI files I have such as a simple 997.
They all fail with error "0 is not a valid subelement separator in position 105 of the file".
I know these files are in good format and our BizTalk server is parsing these same files just fine.
What am I doing wrong?

here is the simple 997
ISA*00* *00* *01*9012345720000 *01*9088877320000 *020816*1144*U*00401*000000031*1*T*:~
GS*BE*901234572000*908887732000*20070816*1615*31*X*004010X096A1~
ST*997*0004~ 
AK1*HC*5~ 
AK2*837*0008~ 
AK5*A~ 
AK9*A*1*1*1~ 
SE*6*0004~
GE*1*31~
IEA*1*000000031~
Coordinator
Sep 11, 2013 at 5:52 PM
The first 106 characters are fixed width. If you copied and pasted this from another location, sometimes some of the password fields get shrunk as it seems to be case from your sample. You may need to lookup up the spec for ISA to see where you need to put some spaces back in, or look at some of the test files here and see if your ISA segment lines up with the one in the example.
Sep 11, 2013 at 9:19 PM
You were right. The spacing was incorrect on the ISA.
After fixing the ISA to the standard X12 00401 spacing the file parsed fine.
Thanks for the help.