When using CozyRoc EDI source to load an EDI file the following error message is encountered.
Example: '[EDI Source [2]] Error: CozyRoc.EDI.EDIParseException: EDI message processing failed [PD 834][1.0]. Must be a minimum of 1 instances of segment [HD].Currently at segment number 19 - NM1*31*1*******BLANK.at #=ze9zMAbH0RPXatSL_$IGIkfQIUqq5.#=zBtcIlJk3unqz(segment[] #=zQSdFNI1BE$Ul)at #=ze9zMAbH0RPXatSL_$IGIkfQIUqq5.parse(Stream #=zPfMBIXbhrRv$)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)'
Define minOccurs="0" on the HD segment if you are not going to provide an HD segment in the input file.
The definition for minOccurs is specified here as: