Problem Statement
This article explains how to handle the error mentioned in the succeeding section. When a file is uploaded through Attachment Table macro to display its contents by using the app: Advanced Tables for Confluence, an error occurs if filename is having an apostrophe.
Error Message
com.ctc.wstx.exc.WstxLazyException Unexpected character '=' (code 61); expected a semi-colon after the reference for entity 'modificationDate'.
See the below image for the above-mentioned error.
Environment
Environment | Cloud |
---|---|
Application | Confluence |
Cause
A special character apostrophe (') is placed in the filename causing the issue.
Characters that are allowed | Characters that are not allowed |
---|---|
! @ # $ % ^ & ( ) - _ = + [ ] { } . , ` ~ | \ / : * ? " < > | ' |
Solution
Please follow the below steps to overcome the issue.
- If the file name contains a special character i.e. apostrophe( ' ) remove the character and save the file.
- Upload the file using the macro, Attachment table macro.
- You can view the File contents on the confluence page.
This issue is escalated as a bug and the ticket TBL-1128 is with our development team.