I'm getting this error, the 4th field is situational and does not appear in my test file, I was under the impression that by default all fields set to required = false so i thought it would not throw an exception. What am I doing wrong, this is my first test with Cozyroc.
[835 [2]] Error: CozyRoc.EDI.EDIParseException: EDI message processing failed [PD 835][1.0]. Segment [TRN] expected to contain 4 fields. Actually contains 3 fields (not including segment code). Currently at segment number 5 - TRN*1*914044556504552*1066044592~
.
at CozyRoc.EDI.EDIParser.assertFieldsOK(String[] currentSegmentFields, segment segment)
at CozyRoc.EDI.EDIParser.mapFields(String[] currentSegmentFields, segment segment)
at CozyRoc.EDI.EDIParser.mapSegment(String[] currentSegmentFields, segment expectedSegment)
at CozyRoc.EDI.EDIParser.mapSegments(segment[] expectedSegments)
at CozyRoc.EDI.EDIParser.mapSegment(String[] currentSegmentFields, segment expectedSegment)
at CozyRoc.EDI.EDIParser.mapSegments(segment[] expectedSegments)
at CozyRoc.EDI.EDIParser.parse(Stream ediInputSource)
at CozyRoc.SqlServer.SSIS.EDISource.PrimeOutput(Int32 outputs, Int32[] outputIDs, PipelineBuffer[] buffers)
at Microsoft.SqlServer.Dts.Pipeline.ManagedComponentHost.HostPrimeOutput(IDTSManagedComponentWrapper100 wrapper, Int32 outputs, Int32[] outputIDs, IDTSBuffer100[] buffers, IntPtr ppBufferWirePacket)