Skip to Content

Error in XSLT mapping : SAXParseException: Element type "Attrib" must be followed by either attribute specifications, ">" or "/>"

Dear Experts,

I have made an interface which coverts a xml file into XLS /excel file.

I enhanced a xslt mapping which was working fine and deployed that in PI server.In PI server under imported archives I uploaded the zip file .

But when I run interface it fails.

To ascertain if mapping is correct, I put the content in test tab and tested , there it works fine.

I tested the interface with less content then it produces a file with garbage xml data. By looking at error it looks that problem is with tag >but not sure if this problem is wiht incoming file data or with xslt mapping?

Error:

Mapping "urn:oce:pi:eu1:CCSOC_B2B:DSP004_PriceCatalog_NSO_2_PriceCatalog/DSP004_PriceCatalog_NSO_2_ProdCat4XLSX" failed to execute: MappingException: Mapping failed in runtime204, ApplicationRuntimeException: Runtime Exception when executing application mapping program com/sap/xi/tf/_DSP004_PriceCatalog_NSO_2_ProdCat4XLSX_; Details: com.sap.aii.utilxi.misc.api.BaseRuntimeException; Element type "Attrib" must be followed by either attribute specifications, ">" or "/>"., BaseRuntimeException: Element type "Attrib" must be followed by either attribute specifications, ">" or "/>"., BaseRuntimeException: Element type "Attrib" must be followed by either attribute specifications, ">" or "/>"., org.xml.sax.SAXParseException: Element type "Attrib" must be followed by either attribute specifications, ">" or "/>".

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Posted on Aug 09, 2016 at 12:36 PM

    Hello Dilip,

    This seems to be problem with DATA.

    Ensure all tags are closed and also get the data in the run time and test the same in Operation mapping.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 09, 2016 at 12:53 PM

    Your test data is not valid.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 10, 2016 at 09:47 AM

    Thanks Guys for your response ,

    but I noticed one thing today, that when I test the xml of the source xml file in TEST tab of OperationMapping in ESR it works fine and then I copied xml output of the OM and just created a file with extention .xls and it works fine.I could see excel file with contents properly in excel format.

    That would mean problem is not with xslt mapping and neither with source xml, but not sure why then it gives error in receiver file adapter!!

    Any thoughts?

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.