Re: Passing strings directly to a pipeline

Home Page Forums BizTalk 2004 – BizTalk 2010 Passing strings directly to a pipeline Re: Passing strings directly to a pipeline

#18681

It seems that executing the receive pipeline with a RawString message fails, it gives me the following error: 

“System.IO.Stream” —> System.InvalidCastException: System.IO.Stream

at Microsoft.XLANGs.Core.CustomFormattedPart.ProtectedRetrieveAs(Type t)

at Microsoft.XLANGs.Core.Part.RetrieveAs(Type t)

at Microsoft.XLANGs.Pipeline.PipelineXPart.ToBaseMessagePart()

at Microsoft.XLANGs.Pipeline.PipelineXMessage.ToBaseMessage()

at Microsoft.XLANGs.Pipeline.XLANGPipelineManager.ExecutePipeline(ReceivePipeline p, XLANGMessage inMsg)

— End of inner exception stack trace —

at Microsoft.XLANGs.Pipeline.XLANGPipelineManager.ExecutePipeline(ReceivePipeline p, XLANGMessage inMsg)

at Microsoft.XLANGs.Pipeline.XLANGPipelineManager.ExecuteReceivePipeline(Type receivePipelineType, XLANGMessage inMsg)

at HP.MotorEAI_HL7.Orquestaciones.EnviarMensajeHL7.segment4(StopConditions stopOn)

at Microsoft.XLANGs.Core.SegmentScheduler.RunASegment(Segment s, StopConditions stopCond, Exception& exp)

Nevertheless when i use a System.String or a XmlDocument it works fine.