Draw.io saves my drawing as attachment but confluence can't display it in page

Using the draw.io plugin, I can create, edit and save a diagram successfully, however, when I publish my confluence page, I see "Error: Invalid descriptor" in place of my image.

The draw.io .png and .xml files have been successfully added to my page, but confluence seems to be failing to locate them.

When I go back in and edit my page the draw.io macro is still there, but when I edit it it behaves like a 'blank' draw.io drawing.

4 answers

Issue seems to have magically fixed itself, I can add drawings again

Atlassian do a lot of A/B testing in their releases. We often see a specific version of some code go out to a very small % of our users, then be replaced when a serious bug appears. I'm hoping that's the case here.

Hi Andrew,

I'm not associated to draw.io or something but I ran into this problem also and maybe my workaround will get you back on track for the time being.

I also had problems when creating a new diagram, which after saving did not appear on the Confluence page, even though the attachments were there.

What I did was the following:

  1. When on a new page, first add the draw.io macro to the page and save an empty diagram (without drawing anything on it), specify the name and publish the page. The Confluence page will show nothing.
  2. Go back to edit mode and draw your diagram and save, publish. This should show the diagram.

If you already had created a diagram which doesn't even show the macro in page edit mode:

  1. Download your diagram attachment to disk (not the png)
  2. Add a new empty draw.io macro to the page and immediately press save.
  3. Since your attachments already exist, draw.io will not allow you to choose the same name so you have to pick a new one.
  4. Save and publish
  5. Go back in page edit mode, and back to draw.io edit mode
  6. Drop the attachment onto the canvas, this will load the saved diagram into the macro.
  7. Save and publish
  8. Your diagram should show now on the page.

Note that all revisions will now be saved under the new name you chose when you created the empty diagram.



Still seeing this problem today. Same thing shows across Safari, Firefox and Chrome. Not sure if it is related, but all the macro processing seems to be broken today in confluence. The text shortcuts for formatting (headers, bold etc) don't work for us here either.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Mar 12, 2019 in Confluence

Confluence Admin Certification now $150 for Community Members

More and more people are building their careers with Atlassian, and we want you to be at the front of this wave! Important Dates Start the Certification Prep Course by 2 April 2019 Take your e...

1,479 views 4 13
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you