XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Stijn PatrouilleSubject: EDI to XML using adapter
Author: Stijn Patrouille
Date: 14 Jun 2006 05:47 AM
Hi,

Just downloaded a trial-version of Stylus Studio.

I want to convert EDI-files to XML. I have a correct-formed EDI (testfile).

When i select the the EDI file and convert to XML using adapter the standard EDI adapter, i have following error:

java.io.IOException: Segment IMD, Element 7009: Cannot decode value "09" (file:///f:/telecom/WP_20060428120000_FIRMNAME.EDI:9,8) {close}


Please help


--
part of the EDI file:
UNB+UNOA:4+BELC0006+Rainbow+20060428:1137+P1000/0001+++A+1++1'
UNH+P1000/0001+PRICAT:D:99B:UN+++ETEB04:3:B00'
BGM+9+COMPANY PRODUCTS:01'
DTM+137:20062804:102'
NAD+SE+BELC0006++N.V. COMPANY S.A.+dsfdsfsdfdsfdsf 37+Brussel++1040+BEL'
NAD+BY+107395++MY COMPANY ESV+street 192+BRUSSEL++1000+BEL'
PGI+3'
LIN+1'
IMD+C++09:004:193:ETEB_CN'
FTX+IND+++[-] Dummy product for ETEB credit note that refers to an invoice+ENG'
--

Stijn

Posttop
Tony LavinioSubject: EDI to XML using adapter
Author: Tony Lavinio
Date: 14 Jun 2006 10:28 AM
The error message is correct.
There are actually two problems.
1) Numeric values are not supposed to have leading zeros
2) The value 9 is not valid for a D99B 7009 element.
See http://www.stylusstudio.com/edifact/D99B/7009.htm or
http://www.unece.org/trade/untdid/d05b/tred/tred7009.htm

That '09' you have should be the first component of the third
element in the segment.
That is a C273 composite element, the first component of which is a
7009 - "Item description identification" and whose valid values are
1, 2, 3, 4 and 5.

>java.io.IOException: Segment IMD, Element 7009: Cannot decode value "09"

>UNH+P1000/0001+PRICAT:D:99B:UN>+++ETEB04:3:B00'
>IMD+C++09:004:193:ETEB_CN'

Here is the description of the IMD segment:
http://www.stylusstudio.com/edifact/D99B/IMD_.htm

 
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.