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
Stefan CuypersSubject: EDIFACT code list problem
Author: Stefan Cuypers
Date: 01 Nov 2006 05:03 AM
I'm currently evaluating Stylus Studio Developer for processing of EDIFACT messages. When opening an EDI file I experience a problem however. The file is an ORDERS D96A message and contains the segment:
PIA+1+46-59-783:SA+46-59-783:GU+46-59-783:IN'
When loading this file using the EDI adapter, we get a Java exception stating the value 'GU' cannot be decoded and the load fails.
The code 'GU' is not part of the EDIFACT standard, but the code list in the standard contains the value 'ZZZ' to indicate other mutually agreed on codes are allowed.
Any idea how we can solve this?



Postnext
Tony LavinioSubject: EDIFACT code list problem
Author: Tony Lavinio
Date: 01 Nov 2006 07:17 AM
There are two ways.

The easiest is that you can disable the option that validates that
each codelist value appear in the standard. In the dialog that comes
up, set "Force error if value not in code list" to "no", which has
the same effect as adding :tbl=no to the url.

The second is there is an extensibility mechanism for codelists.
You can create a file called EDIFACT.properties and put into the
same directory as the EDIFACT.jar file (in the .\bin directory
under where Stylus Studio is installed). In that file you could put
a line like this (assuming the value comes from EANCOM):
*.7143.GU=Supplier's internal article group number/product classification code (EAN Code)

Hope this helps.

Posttop
Stefan CuypersSubject: EDIFACT code list problem
Author: Stefan Cuypers
Date: 01 Nov 2006 11:18 AM
Yes, both solutions work fine.
Thanks.

 
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.