Support Article
Unknown attribute error- linked with CSS file
SA-17269
Summary
User's SystemErr.log is filled with a set of warning messages, whenever functionality related to the Section (HTML) to PDF byte array creation, using CSS file.
Error Messages
[9/30/15 6:17:11:437 EDT] 000054dd SystemErr R line 3 column 3 - Warning: unknown attribute "classname"
[9/30/15 6:17:11:437 EDT] 000054dd SystemErr R line 3 column 3 - Warning: unknown attribute "objclass"
[9/30/15 6:17:11:437 EDT] 000054dd SystemErr R line 3 column 3 - Warning: unknown attribute "node_name"
[9/30/15 6:17:11:438 EDT] 000054dd SystemErr R line 3 column 3 - Warning: unknown attribute "node_type"
[9/30/15 6:17:11:438 EDT] 000054dd SystemErr R line 3 column 3 - Warning: unknown attribute "expandrl"
Steps to Reproduce
1. Create an activity that calls the HTMLTOPDF activity to generate the PDF.
2. Ensure that the HTML rule containing the markup data should contain CSS style.
3. Run the activity to see if the PDF is generated, also ensure if the following conditions are met:
* CSS classes has been added at the top of html.
* Classes has been mentioned inside the html tags.
HTML to PDF is working as intended, but it results in warning messages logged in SystemErr.log file
Root Cause
A defect in Pegasystems’ code or rules, these messages are being generated by HTML tidy and It is normal to see them during HTML to PDF.
In modern versions of PRPC there is a parameter for HTML to PDF called "pyHTMLDisableProcessing" which avoids Tidy and other HTML pre-processing.
Resolution
Perform the following local-change steps:
1. Apply HFix-24518 properly and place pd4ml.jar (Version: 380fx9) from HFix-6526 file in JAVA_HOME/jre (ex: C:\Program Files\Java\JDK1.7.0_51\jre\lib\ext) of your application server.
2. After you install the HFix-24518, one must add the parameter ‘pyHTMLDisableProcessing’ as by adding a step in your activity above the one, where you call ‘HTMLToPDF’ activity and set the parameter ‘pyHTMLDisableProcessing’ to “true”.
Published January 31, 2016 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.