Error rendering macro Attachments
Asked by Enrique:

Hello,

Creating a template I wanted to add a section for Attachments and got the following error

![](https://attachments.office.net/owa/edipasquale%40lpfcec.org/service.svc/s/GetAttachmentThumbnail?id=AQMkADYyODVhYjBjLTRkMTItNDYzMS04MDg2LTMwODYzMTdkZWFkYwBGAAADhNcwqoaEu0u3jtfQ8QCyTwcAUM5W8lqH00ineWo3ayOBxQAAAgEJAAAAUM5W8lqH00ineWo3ayOBxQABB%2BjZIAAAAAESABAA%2BDMP4LJfN0KDWoqo4MiEtg%3D%3D&thumbnailType=2&token=eyJhbGciOiJSUzI1NiIsImtpZCI6IkU1RDJGMEY4REE5M0I2NzA5QzQzQTlFOEE2MTQzQzAzRDYyRjlBODAiLCJ0eXAiOiJKV1QiLCJ4NXQiOiI1ZEx3LU5xVHRuQ2NRNm5vcGhROEE5WXZtb0EifQ.eyJvcmlnaW4iOiJodHRwczovL291dGxvb2sub2ZmaWNlLmNvbSIsInVjIjoiMDEyNDAwMDdiNjE5NDE1Mzg2OWFhODE0OGI0M2Q4ZjMiLCJ2ZXIiOiJFeGNoYW5nZS5DYWxsYmFjay5WMSIsImFwcGN0eHNlbmRlciI6Ik93YURvd25sb2FkQDNiNjhlNGRhLTRhYzYtNGFiNy04OGQ0LTI2ZTQ0MDhkNjE5OSIsImlzc3JpbmciOiJXVyIsImFwcGN0eCI6IntcIm1zZXhjaHByb3RcIjpcIm93YVwiLFwicHVpZFwiOlwiMTE1MzgwMTEyNDg1NzQyNzUyNlwiLFwic2NvcGVcIjpcIk93YURvd25sb2FkXCIsXCJvaWRcIjpcImZmMWEwNjA0LTZiZjctNDBjOC1iOTZmLTRmNDk2NTU3NWIwY1wiLFwicHJpbWFyeXNpZFwiOlwiUy0xLTUtMjEtMjUxNjI4ODc0LTI5MDI5NjUwNjAtMTU4OTcxOTM5My00ODA2MzYzMFwifSIsIm5iZiI6MTcxNDk5NzEzOSwiZXhwIjoxNzE0OTk3NDM5LCJpc3MiOiIwMDAwMDAwMi0wMDAwLTBmZjEtY2UwMC0wMDAwMDAwMDAwMDBAM2I2OGU0ZGEtNGFjNi00YWI3LTg4ZDQtMjZlNDQwOGQ2MTk5IiwiYXVkIjoiMDAwMDAwMDItMDAwMC0wZmYxLWNlMDAtMDAwMDAwMDAwMDAwL2F0dGFjaG1lbnRzLm9mZmljZS5uZXRAM2I2OGU0ZGEtNGFjNi00YWI3LTg4ZDQtMjZlNDQwOGQ2MTk5IiwiaGFwcCI6Im93YSJ9.YuPAXTG6TC0pWKUc2o1cznuXzhnyrg-YmqKpCNSRg5KVMFHfHm9wy79dIP-5sKvovDjulg3wSOJ5F9XAhVnPKOwy0s4rFmF36t2GWhTDfhXgB8qQC1WvyodM-_FO8LDE6UWp2oO0hW8YlbwzagL1aHJRIwfygNvJlhf4cHQ8rrpAKqUeoDjkLfjRHygiUl8GRr61cYItj-ZTFXh-hbPAtS9KWJpvhuY11_OhnBcQYXTLGtLKf3LY9VHsocHq388PZY1qFndhgi806Q6N4gLa1Tdy_iXwUVLdzLqs6eC24tzaFhM0SIrDizdXg7o-aSzFVun_inMDOxumanUol_ME0A&X-OWA-CANARY=X-OWA-CANARY_cookie_is_null_or_empty&owa=outlook.office.com&scriptVer=20240419007.27&clientId=A0E35FA09CD1477EBBDA2D93120BA1C8&animation=true&persistenceId=35b6c83c-c21b-487d-83d3-816442c8d47a)

Can anyone tell me how I can resolve it? I have created other templates adding the attachment macro before in Apr 30th, but I cannot create one since, is that a Confluence in the cloud update? any settings I need to adjust?

Any assistance would help.

Thank you


Answers:
author: Jessica
body: Hi [@Enrique](/t5/user/viewprofilepage/user-id/5214025)

Thank you for providing the context and the screenshot with the error.

I can confirm I'm able to replicate the same issue you are seeing and I have reported it to our development team awareness:

* [Adding attachments macro to a template returns error](https://jira.atlassian.com/browse/CONFCLOUD-78497)

Doing further tests, it seems the error is only displayed in the Template, but if you save the template with the attachments macro in there, even with the error, upon creating a new page based on that template, the attachment's macro will be in the page as expected and working without any issues or errors.

I understand that the error message can be misleading as it seems the macro won't work, but it seems to be only affecting the template edit mode but it should be working.

Please give it a try and let me know if you save the template and try creating a new page, if that is also working properly on your site. :)

Cheers,

Jessica

comments: author: Enrique
body: Thank you, it worked as you indicated.


author: Barbara Szczesniak
body: [@Enrique](/t5/user/viewprofilepage/user-id/5214025) Can you try to post the image of the error again?

In the meantime, I might suggest that you open a template where the macro works side-by-side with the new one and review the settings for the macro in each template to see if you can identify what might be the issue.

If you haven't already, refer to this page for more information: <https://support.atlassian.com/confluence-cloud/docs/insert-the-attachments-macro/>

comments: author: Enrique
body: Hi [@Barbara Szczesniak](/t5/user/viewprofilepage/user-id/5187859)

Thank you for taking the time to answer to me and sorry for the delay in getting back to you

I have inserted the screen capture below.

I did follow the link there is not changed on the impact I am having.

Again thank you for your assistance.

![2024-05-15_10-37-15.png](https://community.atlassian.com/t5/image/serverpage/image-id/323891iEE7800891B1478C9/image-size/large?v=v2&px=999 "2024-05-15_10-37-15.png")![2024-05-15_10-37-24.png](https://community.atlassian.com/t5/image/serverpage/image-id/323892i81942852FD3B4F96/image-size/large?v=v2&px=999 "2024-05-15_10-37-24.png")


Tags: cloud

confluence-cloud