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
Conferences Close Tree View
+ Stylus Studio Feature Requests (1192)
- Stylus Studio Technical Forum (14621)
-> - Stylus Studio - Registrar en o... (1)
-> + Stylus Studio - Registrar en o... (2)
-> + Can a pipeline send a file by ... (2)
-> + After Updateing WIN10 to WIN11... (12)
-> + Where do I add the custom java... (3)
-> + Where is the Diagram tab? (5)
-> + Applying XSLT to Word DOCX/XML (2)
-> - CSV conversion via ConvertToXM... (1)
-> + Text symbols in SS not same as... (4)
-> + Exposing xquery as webservice ... (6)
-> + Syntax Identifier (2)
-> + Saving a Converted XML as an X... (5)
-> + Output document cannot be pars... (4)
-> - Archiving output from conversi... (1)
-> + EDIFACT guideline from Stylus ... (3)
-> + CSV file putting all the data ... (5)
-> + Can't install Home version 64b... (5)
-> + presale - Can I covers this sc... (5)
-> + Problem with UNB (5)
-> + Splitting EDIFACT files pipeli... (4)
-- [1-20] [21-40] [41-60] Next
+ Website Feedback (249)
+ XSLT Help and Discussion (7625)
+ XQuery Help and Discussion (2016)
+ Stylus Studio FAQs (159)
+ Stylus Studio Code Samples & Utilities (364)
+ Stylus Studio Announcements (113)
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

   
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.