on 05-22-2013 11:31 AM
Hi All
I am using BODS 4.0 for creating a sales order from source as XML file and target is ECC6. The source XML file is the exact structure of ORDERS05 message type. I am using this XML file(ORDERS05) as input to IDOC in BODS. I am getting the error as XML parser failed: See previously displayed error message.
Actually XML(ORDERS05) is a XML document i have converted the XML document into XML schema through google. I have also convert this into DTD file also but still the error is same. I don't know how to fix this error. i have also check the syntax of XML through google there is no syntax error.
i have tried all possibilities but nothing is work out. So experts kindly give me a solution.
Regards
Vijay Mukunthan
Hi Everybody,
I am getting the same error.
Can someone please help me?
I tried to validate the xml using external validator and it said the xml is valid.
can some one please help me?
I am using SAP BODS 4.1.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI Vijay ,
Can u recheck the following steps one more time for generating correct XML schema using BODS itself
1) Right click on IDOCs and select “Import By Name…”
2) Provide Type and Name as you configured in SAP and click on “Import” to import IDOC in datastore
3) Generating input XML schema as below:
To create the input XML structure with the correct datatypes quickly drop the IDOC as message source on designer in one of the dataflow, double click on this message to open and rightclick the schema node There, you can ask the Designer by clicking on the option "Generate XML Schema" to generate the entire structure as XML schema, thus you get all columns, schemas including the datatypes
4) Go to File formats create XML file source using generated schema with format name , filename& root element name.
5) Drag it as source in your dataflow , and Double click on do the require configuration
Regards
Ahalya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vijay,
I had a similar issue and got an error message See previously displayed error message. it was resolved by removing the invalid schema reference in the XML Document. In my case i had to remove the invalid schema reference(xsi:schemaLocation) given schema tag of xml document. Hope this may help you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Titto
I am not aware of XML coding. Moreover i also find with the statement XSI i couldn't find any text. I don't know what to remove. I have pasted the XML code below.
<?xml version="1.0" encoding="UTF-8" ?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="ACTION">
<xs:complexType mixed="true" />
</xs:element>
<xs:element name="ARCKEY" type="xs:string" />
<xs:element name="CIMTYP" type="xs:string" />
<xs:element name="CREDAT" type="xs:string" />
<xs:element name="CRETIM" type="xs:string" />
<xs:element name="DIRECT">
<xs:complexType mixed="true" />
</xs:element>
<xs:element name="DOCNUM" type="xs:string" />
<xs:element name="DOCREL" type="xs:string" />
<xs:element name="E1EDK01">
<xs:complexType>
<xs:sequence>
<xs:element ref="ACTION" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="E1EDK14">
<xs:complexType>
<xs:sequence>
<xs:element ref="QUALF" />
<xs:element ref="ORGID" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="E1EDKA1">
<xs:complexType>
<xs:sequence>
<xs:element ref="PARVW" />
<xs:element ref="PARTN" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="E1EDP01">
<xs:complexType>
<xs:sequence>
<xs:element ref="POSEX" />
<xs:element ref="E1EDP19" maxOccurs="unbounded" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="E1EDP19">
<xs:complexType>
<xs:sequence>
<xs:element ref="QUALF" />
<xs:element ref="IDTNR" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="EDI_DC40">
<xs:complexType>
<xs:sequence>
<xs:element ref="TABNAM" />
<xs:element ref="MANDT" />
<xs:element ref="DOCNUM" />
<xs:element ref="DOCREL" />
<xs:element ref="STATUS" />
<xs:element ref="DIRECT" />
<xs:element ref="OUTMOD" />
<xs:element ref="EXPRSS" />
<xs:element ref="TEST" />
<xs:element ref="IDOCTYP" />
<xs:element ref="CIMTYP" />
<xs:element ref="MESTYP" />
<xs:element ref="MESCOD" />
<xs:element ref="MESFCT" />
<xs:element ref="STD" />
<xs:element ref="STDVRS" />
<xs:element ref="STDMES" />
<xs:element ref="SNDPOR" />
<xs:element ref="SNDPRT" />
<xs:element ref="SNDPFC" />
<xs:element ref="SNDPRN" />
<xs:element ref="SNDSAD" />
<xs:element ref="SNDLAD" />
<xs:element ref="RCVPOR" />
<xs:element ref="RCVPRT" />
<xs:element ref="RCVPFC" />
<xs:element ref="RCVPRN" />
<xs:element ref="RCVSAD" />
<xs:element ref="RCVLAD" />
<xs:element ref="CREDAT" />
<xs:element ref="CRETIM" />
<xs:element ref="REFINT" />
<xs:element ref="REFGRP" />
<xs:element ref="REFMES" />
<xs:element ref="ARCKEY" />
<xs:element ref="SERIAL" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="EXPRSS" type="xs:string" />
<xs:element name="IDOCTYP">
<xs:complexType mixed="true" />
</xs:element>
<xs:element name="IDTNR">
<xs:complexType mixed="true" />
</xs:element>
<xs:element name="MANDT">
<xs:complexType mixed="true" />
</xs:element>
<xs:element name="MESCOD" type="xs:string" />
<xs:element name="MESFCT" type="xs:string" />
<xs:element name="MESTYP">
<xs:complexType mixed="true" />
</xs:element>
<xs:element name="orders">
<xs:complexType>
<xs:choice>
<xs:element ref="E1EDK01" />
<xs:element ref="E1EDK14" />
<xs:element ref="E1EDKA1" />
<xs:element ref="E1EDP01" />
<xs:element ref="EDI_DC40" />
</xs:choice>
</xs:complexType>
</xs:element>
<xs:element name="ORGID">
<xs:complexType mixed="true" />
</xs:element>
<xs:element name="OUTMOD">
<xs:complexType mixed="true" />
</xs:element>
<xs:element name="PARTN">
<xs:complexType mixed="true" />
</xs:element>
<xs:element name="PARVW">
<xs:complexType mixed="true" />
</xs:element>
<xs:element name="POSEX">
<xs:complexType mixed="true" />
</xs:element>
<xs:element name="QUALF">
<xs:complexType mixed="true" />
</xs:element>
<xs:element name="RCVLAD" type="xs:string" />
<xs:element name="RCVPFC" type="xs:string" />
<xs:element name="RCVPOR" type="xs:string" />
<xs:element name="RCVPRN" type="xs:string" />
<xs:element name="RCVPRT" type="xs:string" />
<xs:element name="RCVSAD" type="xs:string" />
<xs:element name="REFGRP" type="xs:string" />
<xs:element name="REFINT" type="xs:string" />
<xs:element name="REFMES" type="xs:string" />
<xs:element name="SERIAL" type="xs:string" />
<xs:element name="SNDLAD" type="xs:string" />
<xs:element name="SNDPFC" type="xs:string" />
<xs:element name="SNDPOR">
<xs:complexType mixed="true" />
</xs:element>
<xs:element name="SNDPRN">
<xs:complexType mixed="true" />
</xs:element>
<xs:element name="SNDPRT">
<xs:complexType mixed="true" />
</xs:element>
<xs:element name="SNDSAD" type="xs:string" />
<xs:element name="STATUS">
<xs:complexType mixed="true" />
</xs:element>
<xs:element name="STD" type="xs:string" />
<xs:element name="STDMES" type="xs:string" />
<xs:element name="STDVRS" type="xs:string" />
<xs:element name="TABNAM">
<xs:complexType mixed="true" />
</xs:element>
<xs:element name="TEST" type="xs:string" />
</xs:schema>
Let me know what to remove.
Regards
Vijay Mukunthan
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.