Skip to Content
avatar image
Former Member

External Definition: Name contains invalid characters: -

When I try to import an XSD file as external definition in PI 7.1 I get the error:

Name contains invalid characters: -

Only a(A)-z(Z), 0-9, and "_" are permitted

The XSD file describes a standard XML format, which is required for the project. I get the same error when I try to manually define a data type with a - in the name. Is there a way to get PI running with data types with a - in the name or have I made a mistake when I was importing the definition? As far as I know "-" is quite common in xml tags (e.g. http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd)

Thanks and regards,

Tarik

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Sep 30, 2008 at 09:20 AM

    Hi,

    As per my understanding, first you copy your external definition on notepad then remove the "-" (dash) save the changes and then import it as External definitions in XI.

    Regards,

    Sarvesh

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Thanks alot. This answer was very helpful. I found the problem in the other definition. The xmlns in the XSD contained a - which made, that it could not be imported. It was not actually the data type itself. The import worked after renaming all namespaces which contained a - and the file name (respectively the name of the external definition). E.g. <xs:schema xmlns:eCH-0007="http:... had to be renamed to <xs:schema xmlns:eCH0007="http:...

      Regards,

      Tarik

  • avatar image
    Former Member
    Sep 30, 2008 at 09:29 AM

    Hi,

    >>I get the same error when I try to manually define a data type with a - in the name. Is there a way to get PI running with data types with a - in the name or have I made a mistake

    -(dash) will not allow us to declare it in data type creations.

    So Replace all - dashes with _ Underscore in the XSD file and Import the same

    REgards

    Seshagiri

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      I can not change the XML structure, because it is a standard format. Again with the web.xml replacing all - characters by a _ would mean to rename the web-app tag to web_app, which would no longer represent a valid web.xml. Please correct me if I misunderstood...