Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,364,702
Community Members
 
Community Events
168
Community Groups

Search for "unknown macro" errors

Edited

Our confluence system will be migrated to another instance soon. I've been asked to test my pages on a test-system. There some plugins seem not to be installed. On my pages (using those not installed macros) that is indicated by "unknown macro: '<macroname>'".

As there are hundreds of pages I would like to automate my search and get the pages containing this error displayed directly.

 

Con you help me?

2 answers

1 vote

You can't search for "unknown macro", as there's nothing to search for.  The display of "unknown macro" really is just a display meaning "you've removed the macro functions so I don't know what to do with this directive"

You will need to open up the source view of a page showing this error, find the bit naming the macro and then search for that.  That still may not work, you usually have to have the plugin that provided it installed (even if it's unlicenced), or you can cheat a little and create a user macro with that name.  You'll then be able to search for it.

Hi, I have a kind of a solution for you. 

You need to install the Search And Replace plugin (it work on our 7.13.7 version). It's not expensive (and very usefull by the way).

With that you can search content in the Storage Format directly. So when you find an "unknown macro", go to the Storage Format of the page, get its "ac name" parameter. Then go in the plugin and search for that, it will find all the occurence of this macro.

You can search in a Space or in the whole instance (for you case the space is sufficent).

And you can replace the macro name if you want with this plugin or exceprt its content to put it in simple text. (plugin is very usefull as i told you).

So with that you can find all the occurence of an already find Unknown macro.

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events