Viewfile Macro is Unable to Locate the Attachment
Platform Notice: Cloud and Data Center - This article applies equally to both cloud and data center platforms.
Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Symptoms
When viewing a {viewfile} (including {viewdoc}, {viewxls}, {viewppt} and {viewpdf}) macro, Confluence displays this error message on the page:
The viewfile macro is unable to locate the attachment "test.doc" on the page "Test Page" in space "Test Space"
Cause
Confluence is unable to find attachment specified in the macro.
Resolution
- Verify that the attachment exists in the specified page and space
- Verify that the attachment name is matching
- Verify that the attachment extension is included e.g.
.doc
,.ppt
or.pdf
- Verify if the attachment name has any special characters