I am constructing an HL7 message and sending it through MLLP port, however I want the HL7 flat file message to be logged into database so I am calling the BTAHL72XSendPipeline and passing this message. This throws an error
Inner exception: There was a failure executing pipeline "BTAHL72XPipelines.BTAHL72XSendPipeline". Error details: "Body schema is missing". Exception type: XLANGPipelineManagerException
However this is the same message that I am sending through MLLP port which works fine (so it means the multipart message type is created in proper order). only when calling the pipeline to convert this message it is failing.
here is the pipeline calling code
InputMessages.Add(MDM);Microsoft.XLANGs.Pipeline.XLANGPipelineManager.ExecuteSendPipeline(typeof(BTAHL72XPipelines.BTAHL72XSendPipeline), InputMessages, MDM_After);
InputMessages2.Add(ACK);Microsoft.XLANGs.Pipeline.XLANGPipelineManager.ExecuteSendPipeline(typeof(BTAHL72XPipelines.BTAHL72XSendPipeline), objACKInputMessageCollection, ACK_After);
HL7RawString = MDM_After;ACKRawString = ACK_After;
any ideas how to solve this PLEASE HELP
Thanks in advance
Did you ever manage to solve this problem?
I am having the same error 'Body schema is missing' when I use the 'Microsoft.XLANGs.Pipeline.XLANGPipelineManager.ExecuteSendPipeline'.
Kieran / Surya - did you guys find any solution? I am having very similar problem. Thanks,
The HL7 assembler cannot determine the messagetype or is missing a required HL7 context property. I went ahead and wrote up a blog article on how I solve this. Hopefully it can point you in the right direction: esgraham.blogspot.com/.../hl7-message-missing-body-schema.html.