Viewfile Macro is Unable to Locate the Attachment

Still need help?

The Atlassian Community is here for you.

Ask the community

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

  1. Verify that the attachment exists in the specified page and space
  2. Verify that the attachment name is matching
  3. Verify that the attachment extension is included e.g. .doc, .ppt or .pdf
  4. Verify if the attachment name has any special characters

 


Last modified on Jan 6, 2025

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.