Validate 271 response before calling X12Writer
I am building a 271 and i would like to Validate the Transactions prior to serializing it using the X12Writer.
The problem is that I am not explicitly creating / assigning an SE Transaction Set Trailer segment, based on the understanding that the X12Writer creates that for you. The Validate fails stating :
[271 with control nmbr 'xxxxx'] MessageTrailerMissing
You should use the IsValid() overload like this:
The second parameter, "true", tells the validator to skip over the trailers check.
Please sign in to leave a comment.