IBM Support

Unable to print pick ticket for a Polish user when item description contains an accented character

Troubleshooting


Problem

Attempts to print pick ticket for a Polish user in IBM Sterling Store Web leads to the error "org.xml.sax.SAXParseException.

Symptom

Steps to reproduce:

  1. Perform the localization for Polish language.

  2. Create an order with an item having Short Description & Description="Item with oacute ó character".

  3. Schedule, Release the order & create a shipment.
    Order Status: Included In Shipment.
    Shipment Status: Ready For Backroom Pick.

  4. Login to Web Store with a Polish user.

  5. From Customer Pick Up-Advanced Search screen, search for this order.

  6. Open the order & click on Print Pick Ticket.

Actual Result:
An error 'Error description not available' appears on UI.

As per the log:
ErrorCode: "org.xml.sax.SAXParseException"
ErrorRelatedMoreInfo: "The entity "oacute" was referenced but not declared."

Cause

There is a problem with the XSL implementation in this SearchPickTicket_94 service.

Diagnosing The Problem

The OOTB service SearchPickTicket_94 is used to print pick ticket. The error is seen when an order contains an item with description having an accented character (e.g. ó).

Resolving The Problem

The XSLs provided OOTB for the service SearchPickTicket_94 are just sample XSLs.
They may not cover all scenarios for all kinds of data but they are meant to give an idea
to the implementation team on how they can implement this service.

Steps to resolve:

  1. Open the XSL file.
    <Sterling_InstallDir>\repository\xapi\template\merged\prints\ycd\xsl\StorePickTicket_94_output.xsl.sample


  2. Change the output format of the XSL from 'html' to 'xml'.
    Old:
    <xsl:output method="html" encoding="UTF-8" indent="yes" />

    New:
    <xsl:output method="xml" encoding="UTF-8" indent="yes" />


  3. Rebuild the resources.jar. Rebuild the EAR & redeploy it.


  4. Retest the issue. No error appears & an accented character (e.g. ó) is displayed correctly in the pick ticket.

[{"Product":{"code":"SS6PEW","label":"Sterling Order Management"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"Sterling Store","Platform":[{"code":"PF033","label":"Windows"}],"Version":"9.5;9.4","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Document Information

Modified date:
16 June 2018

UID

swg22006070