[ https://issues.apache.org/jira/browse/OFBIZ-10743?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16797132#comment-16797132 ]
Pawan Verma commented on OFBIZ-10743: ------------------------------------- I looked into this issue and below is my findings: Reason for the error is Underscore in productId which was not escaping during the barcode generation. I also did some more findings around the barcode API and found that it uses Code 39 pattern in which underscore is not a valid character. I communicated with barcode4j developers mailing list and below is the response: {code:java} Hello, underscore is not a valid character in Code 39! Only if all of your barcode scanners support "Full ASCII Code 39" (or "Extended Code 39") you can write the following two characters instead: %O So your example would be message="123%O456" https://www.barcodefaq.com/1d/code-39/ https://en.wikipedia.org/wiki/Code_39 If you can not program your scanners to use "Full ASCII Code 39" you will see '%O' and not '_'. {code} I think it is not a valid issue in case of barcode generation and just an issue of demo XML data and won't be generated for OFBiz generated primaryKeys. If we still want to fix this issue I can think of two possible options: # Replace underscore with any other character(probably dash) in products XML data. # Write a helper method to replace the underscore with any other character(probably dash) while rendering barcode. Everyone, please feel free to add your comments and thoughts. Thanks! > Error message is populating while clicking on product barcode > ------------------------------------------------------------- > > Key: OFBIZ-10743 > URL: https://issues.apache.org/jira/browse/OFBIZ-10743 > Project: OFBiz > Issue Type: Bug > Affects Versions: Trunk, Release Branch 16.11, Release Branch 17.12 > Reporter: Ashish Sharma > Assignee: Pawan Verma > Priority: Major > Attachments: Screen Shot 2018-12-22 at 4.01.34 PM.png > > > *Step to reproduce* > Login with valid username and password. > Navigate to Catalog->Product. > Search for product (Please enter ‘a’ alphabet) > Click on barcode > > *Expected result:* Product barcode details should be displayed. > *Actual result:* Error message is populating while clicking on product > barcode. > > Note:- Issue exist for some product (Forklift - Propane, Forklift - Battery, > Company Vehicle, Heating/Cooling Unit, Demo Product for Costing, Demo > Material A for Costing and Demo Material B for Costing) > Screen-print attached. -- This message was sent by Atlassian JIRA (v7.6.3#76005)