遭遇BizTalk Bug:Unexpected event("document_start") in state "processing_empty_document"
KB:927741
在使用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>
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>
<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.