# Mismatch in localId of Confluence macro

**URL:** <https://community.developer.atlassian.com/t/mismatch-in-localid-of-confluence-macro/102293>\
**Category:** Confluence Cloud\
**Tags:** rest-api, confluence-cloud, forge\
**Created:** [August 24, 2026, 9:34am UTC](https://community.developer.atlassian.com/t/mismatch-in-localid-of-confluence-macro/102293 "2026-08-24T09:34:19Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![remie](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/remie/32/34985_2.png) [@remie](https://community.developer.atlassian.com/u/remie)\
**Post date:** [August 24, 2026, 9:53am UTC](https://community.developer.atlassian.com/t/mismatch-in-localid-of-confluence-macro/102293/2 "2026-08-24T09:53:19Z")

</div>

Ah yes, the macro ID conundrum!

Unfortunately, over the course of the years, the relevant documentation for this has disappeared from the official sources, but fortunately there is still some information left to be found here on the forums:

> [@What is the purpose of macro-id in the source XML?](https://community.developer.atlassian.com/t/what-is-the-purpose-of-macro-id-in-the-source-xml/18590/4):
>
> As this question is a couple of months old, this is probably no longer of interest for mike4. But since I searched for references myself and found this question first, the following may save some minutes for others having the same question. As far as I know the macro ID is only unique within a page. If the macro has no ID, one will be created. The purpose is to make a macro identifiable, but the ID may change at any time. Here are some sources for references: Source: [Preparing for Confluence…](https://developer.atlassian.com/server/confluence/preparing-for-confluence-5-8/)

In short, the macro ID is replaced by an auto generated UUID with ever new version. This is not a reliable identifier!

---

_[View the full topic](https://community.developer.atlassian.com/t/mismatch-in-localid-of-confluence-macro/102293)._
