遭遇BizTalk Bug:Unexpected event("document_start") in state "processing_empty_document"

KB:927741

FIX: You receive an Event ID 5719 error message when you process a message that contains consecutive empty elements in BizTalk Server 2006

在使用Envelop 拆封数据时候,如果数据element 是如下格式,即存在空的element

1  < OMSDB2  xmlns ="http://sungard.com/omsdb2file" >
2       < Table1  SERIAL_NO ="123" />
3       < Table1  SERIAL_NO ="456" />
4       < Table1  SERIAL_NO ="789" />
5  </ OMSDB2 >

则会出现解析错误,There was a failure executing the receive pipeline: "pipelinename.Details" Reason: Unexpected event ("document_start") in state "processing_empty_document".

解决方案

1.补齐empty element

< OMSDB2  xmlns ="http://sungard.com/omsdb2file" >
    
< Table1  SERIAL_NO ="123" ></ Table1 >
    
< Table1  SERIAL_NO ="456" ></ Table1 >
    
< Table1  SERIAL_NO ="789" ></ Table1 >
</ OMSDB2 >

2. 或者参见KB:927741 打补丁

File name File version File size Date Time
Microsoft.biztalk.pipeline.components.dll 3.5.1637.0 289,608 30-Nov-2006 20:42

3.If you experience this problem when you use the SQL adapter, use the ELEMENTS option in the FOR XML clause.

你可能感兴趣的:(document)