如何处理EDI文件中的垃圾数据 [英] how to handle the junk data in EDI File

查看:100
本文介绍了如何处理EDI文件中的垃圾数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我们的方案是源是EDI架构,Destination是Oracle表插入。我们在oracle中插入记录时收到错误。在阅读UNB细分时,我们将
特殊字符)作为垃圾数据)如何处理BizTalk中的垃圾数据或如何使用任何软件删除垃圾数据

our scenario is that source is EDI schema,Destination is Oracle table insert. We are getting the error while inserting the records in oracle . while reading the UNB segment we are getting the special character (#) as junk data()how to handle the junk data in BizTalk or how to delete the junk data by using any software

示例输入:

UNB + UNOA:1 + XXX + YYY + 1111:2100+ 12334'

UNB+UNOA:1+XXX+YYY+1111:2100+12334'

实际输出:

< Request>< table1>

< column1> UNOA< / column1>

< column2> XXX< / column2>

< column3> 1111< / column3>

< column4> 2100< / column4>


< column5> 12334 '

################ < / column5>

<Request><table1>
<column1>UNOA</column1>
<column2>XXX</column2>
<column3>1111</column3>
<column4>2100</column4>
<column5>12334'
################</column5>

< / table1>< / Request>

</table1></Request>

预期输出:

< Request>< table1>

< column1> UNOA< / column1>

< column2> XXX< / column2>

< column3> 1111< / column3>

< column4> 2100< / column4>

< column5> 12334 < / column5>< / table1>< / Request>

<Request><table1>
<column1>UNOA</column1>
<column2>XXX</column2>
<column3>1111</column3>
<column4>2100</column4>
<column5>12334</column5></table1></Request>

以及垃圾数据(  )位于输出的最开头发送到oracle的文件。

and also junk data's( ) are placed at the very beginning of the output file sent to oracle.

任何人都可以指导我如何处理BizTalk中的垃圾数据吗?

can anyone please guide me how to handle the junk datas in BizTalk?

谢谢, Archana

Thanks, Archana

推荐答案

嗨Archarna,

你可以阅读这篇文章关于字节顺序 标记以及如何删除它:

http://mindovermessaging.com/2013/08/06/removing-the-bom-from-outgoing-biztalk-files /

您可以使用自定义管道替换您不想要的字符:

http://eebiztalkpipelinecom.codeplex.com/

BizTalk自定义管道组件示例 - 查找和替换字符串


如何在BizTalk Server处理之前从XML文件中删除特殊字符


这篇关于如何处理EDI文件中的垃圾数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆