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.
Here are the characters that are allowed & not allowed in the filename:
Characters allowed | Characters NOT allowed |
---|---|
! @ # $ % ^ & ( ) - _ = + [ ] { } . , ` ~ | \ / : * ? " < > | ' |
Solution
To resolve the issue:
- If the file name contains an apostrophe ( ' ), remove it and save the file.
- Upload the file by using 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.