1 is not a valid subelement separator in position 105 of the file.

Apr 5, 2012 at 3:07 PM
Edited Apr 5, 2012 at 3:07 PM

I am trying to Parse stream Response using OopFactory X12 Parse
here is my Code

var parser = new X12Parser();
            var _response = response.GetResponseStream();
 Interchange interchange = parser.Parse(_response);
            string value = interchange.Serialize();
            response.Close();

it throws an error here parser.Parse(_response); 

Error:
1 is not a valid subelement separator in position 105 of the file.

My Response File:

ISA*00*          *01*NOPASS    *ZZ*S00000000000001*ZZ**120405*1000**00501*021539342*0*T*>~TA1*17049371*120405*1000*R*018~IEA*0*021539342~

Note:

This only happens in my dev server, if i run my application on local this will work with no problem.

I wonder if response on dev is same as on local. How can capture stream response on dev and compare to my local?

 

I have also posted this question at stackoverflow

Apr 9, 2012 at 5:56 PM

ISA08 should contain 15 characters. In your response file, ISA08 does not have any data. Because of this, part of the TA1 segment is being parsed as part of the fixed-width ISA segment.