元素根据其数据类型具有无效值。为什么验证可选字段? [英] Element has an invalid value according to its data type. Why validate an optional field?
问题描述
我正在尝试处理X12-4010海洋状态消息315.
在其中一条R4线上,R404和R405在标准中列为可选项。
我的贸易伙伴正在发送给我以下信息。注意R404和R405是空白的。
~R4 * D * UN * GBMNC ** ~DTM * 139 * 20080410 * 1159 * LT~R
R4 01 | 端口功能代码 | M | | ID | 1/1 | Y,见下文。 |
R4 02 | | C | < span style ="font-size:8pt"> 0309 | ID | 1/2 | Y K =人口普查时间表K代码 D =人口普查计划D代码 |
R4 03 | 位置标识符 | C | 0310 | < font face ="Times New Roman"> AN | 1/30 |
|
R4 04 | 端口名称 离岸承运人发起或终止的地方的自由格式名称(通过转运或其他)它实际的海洋运输财产。 | O | 0114 | AN | 2/24 | 使用官方邮寄地点拼写。 |
R4 05 | 国家代码 | O | 0026 | ID | 2/3 | ISO国家代码 |
R4 06 | 终端名称 | < font face ="Times New Roman"> O | 0174 | AN | < span style ="font-size:8pt"> 2/30 | 不需要。 |
R4 07 | 码头号 | O | 0113 | AN | 不需要。 | |
R4 08 | 州或省代码 | O | 0156 | ID | 2/2 | 使用邮政编码(缩写)。 |
然而,当接收管道处理混乱时,我得到以下错误:
Transation Set Errors
序号:1
TS Id code:315
Control number:595400001
错误:1(其他错误)
5: X12_00401_315 \R4Loop1 \ R4 \'R404'元素根据其数据类型具有无效值。
错误:2(其他错误)
5:X12_00401_315 \ R4Loop1 \ R4 \ R404 \'R405'元素根据其数据类型具有无效值。
为什么工具会尝试验证文档中不存在的OPTIONAL元素?
除了联系我的贸易伙伴并让他在那里放东西之外,我该如何解决这个问题?在我看来,Biztalk正试图验证它不应该的东西。
欢迎任何帮助。
先谢谢Jim Wood AIT Worldwide Logistics。
你可以试试以下......
1。设置"EDIValidation" EDIReceiving管道中的错误
2。设置" AllowTrailingDelimiters"真正在EDIReceive管道结果3。如果您为此合作伙伴配置了一方,请设置"允许引导和尾随零和空格"。在"真实的;党作为发件人" > " ACK生成和验证"结果
I am attempting to process an X12-4010 Ocean Status message 315.
On one of the R4 line the R404 and R405 are listed as optional in the standards.
My trading partner is sending me this below. Note R404 and R405 are blank.
~R4*D*UN*GBMNC**~DTM*139*20080410*1159*LT~R
R4 01 |
Port Function Code |
M |
0115 |
ID |
1/1 |
Y, See below. |
R4 02 |
Location Qualifier (P0203) |
C |
0309 |
ID |
1/2 |
Y K = Census Schedule K Code D = Census Schedule D Code |
R4 03 |
Location Identifier |
C |
0310 |
AN |
1/30 |
|
R4 04 |
Port Name Free-form name for the place at which an offshore carrier originates or terminates (by transshipment or otherwise) it actual ocean carriage of property. |
O |
0114 |
AN |
2/24 |
Use official postal spellings of locations. |
R4 05 |
Country Code |
O |
0026 |
ID |
2/3 |
ISO Country Code |
R4 06 |
Terminal Name |
O |
0174 |
AN |
2/30 |
Not Required. |
R4 07 |
Pier Number |
O |
0113 |
AN |
1/4 |
Not Required. |
R4 08 |
State Or Province Code |
O |
0156 |
ID |
2/2 |
Use Postal Code (abbreviation). |
Yet when the receive pipeline processes the messae I obtain the following errors:
Transation Set Errors
Sequence No: 1
TS Id code: 315
Control Number: 595400001
Error: 1 (Miscellaneous error)
5: X12_00401_315\R4Loop1\R4\ The 'R404' element has an invalid value according to its data type.
Error: 2 (Miscellaneous error)
5: X12_00401_315\R4Loop1\R4\R404\ The 'R405' element has an invalid value according to its data type.
Why would the tool be trying to validate an OPTIONAL element that is not present in the document?
How do I resolve this issue other than contacting my trading partner and having him put something there? It seems to me that Biztalk is trying to validate something that it should not.
Any help would be welcomed.
Thanks in Advance Jim Wood AIT Worldwide Logistics.
you could try following...
1. Set "EDIValidation" false in EDIReceiving pipeline
2. Set "AllowTrailingDelimiters" true in EDIReceive pipeline
3. If you have a party configured for this partner, set "Allow leadin and trailing zeros and spaces" true under "Party As a Sender" > "Ack Generation and Validation"
这篇关于元素根据其数据类型具有无效值。为什么验证可选字段?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!