How to remove duplicate rows from the Page Properties Report macro
Asked by Gunasekaran Subramanian:

I came up with a simple page properties report where I ended up with multiple duplicate rows where only one row has actual data and others are just a link to the confluence page. How to fix this one? Any help is greatly appreciated!!

![page-prop-rpt.PNG](/t5/image/serverpage/image-id/53055i878C83DAFA4D0620/image-dimensions/953x369?v=v2 "page-prop-rpt.PNG")


Answers:
author: Thomas Bowskill
body: Late to the party here, but this page is what I found when tearing my hair out with duplicate rows in a page properties report.

My use-case is a little bit more detailed, but essentially I have pages with *multiple* page properties macros, which I aggregate together in several different places. (screenshot below)

Turns out the problem was blindingly obvious -- **I had table headers with the same name**. Once I realised it, I just changed the name of the duplicated headers.

Hopefully this helps some other poor soul who has no creativity with table header names :)

![ppr.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/82259i1B68B53878A417EB/image-size/large?v=v2&px=999 "ppr.PNG")

comments: author: Caroline C
body: Hello [@Thomas Bowskill](/t5/user/viewprofilepage/user-id/1252132)

Thanks a lot for the tip ! I had a similar problem and thanks to you, I fixed it rapidly.

Thanks !

Caroline


author: Carl Jakob Schmidt
body: Thanks for the input!  

I had a similar issue where I had two different page property sections and both included table headers with two merged rows.  
I.e., the header column was merged, but the value column was still present as two separate rows and in either page property section the second value row was empty.

As a result, I got multiple duplicate entries in the report macro.

I was able to solve this issue, by entering some text in the second row in one of the page property section.

I guess that merged table headers are not a very good idea to use with the page property macros (the second value row will no be displayed in the report anyway).


author: Roelof Jan Vreeling
body: Hi Guys,

I have a similar problem with a page property report (since this week). I followed all your tips and tricks but it does not work.

* What did you get from the *Preview* in the "**Page properties report**" macro?
* How do you collect the page properties? The same way as I do with labels or with other filters?
* Do you search the page properties in other spaces to?
* Did you tried to change the labelname?

In the preview page the whole page property report is visible;

I collect the page properties by label and unique ID;

No, i renamed all the labels + ID's to specify;

I changed the label name + ID name

I tried It in different confluence pages from different companies (some are ok, some are not oke)

If I make a export to pdf, the property report is complete, but the view in confluence is not complete with all the information.

Anyone any ideas? Is this a confluence update that I missed? Or just a BUG?

Thanks!


author: Dominic Lagger
body: Hi [@Gunasekaran Subramanian](/t5/user/viewprofilepage/user-id/2531680)

Is there a possibility, that there are pages with the exact same "DPG GF Migration #" ? Can you rule it out?

Do you have the same issue, if you create the page properties macro in another page?

Could it be some caching issues? --\> There I do not have deep know how.

comments: author: Gunasekaran Subramanian
body: Hi [@Dominic Lagger](/t5/user/viewprofilepage/user-id/601600)

Thank you for the suggestion. I just mentioned 'DPG GF Migration #' as the title name. I do not have any other pages having it.

I tried it in IE and Firefox as well and have the same result - after clearing the browser cache as well. Found the same result in my colleague's machines as well.

I tried changing the name of the page and tried the page properties report in a new page as well. Everywhere I got the same result. Please refer the screen shot which i tried on another page - below.

Appreciate your help!

![page_prop_rpt_new.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/53267iCEEABCF2A1BCACB9/image-size/large?v=v2&px=999 "page_prop_rpt_new.PNG")

Thanks,

Guna


author: Dominic Lagger
body: Hi Guna

This is very very strange.

I built everything up the way you described it to me. This is the result:

**This is the page with the "Page properties" macro**

![page1.png](https://community.atlassian.com/t5/image/serverpage/image-id/53349i47E0D99F919C3B57/image-dimensions/346x255?v=v2 "page1.png")

**This is the page with the "Page properties report" macro** ![page2.png](https://community.atlassian.com/t5/image/serverpage/image-id/53350i0E9B7D945B4AFC4D/image-dimensions/748x143?v=v2 "page2.png")

**And this is the preview of the "Page properties report" macro** ![page3.png](https://community.atlassian.com/t5/image/serverpage/image-id/53351i6A270E9B85B304B0/image-dimensions/549x335?v=v2 "page3.png")

**Possible next steps**

* What did you get from the *Preview* in the "**Page properties report**" macro?
* How do you collect the page properties? The same way as I do with labels or with other filters?
* Do you search the page properties in other spaces to?
* Did you tried to change the labelname?

Perhaps the answer of these questions may help and takes us further.


author: Gunasekaran Subramanian
body: Hi [@Dominic Lagger](/t5/user/viewprofilepage/user-id/601600) :

Thanks much for the details. From the beginning i missed to mention one point. Apologies for that. I have manually added the section on a page and it worked as a charm! The problem I am facing is on the templates.

I have created the page via 'create from template'.

![create from template.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/53548iC997C7134243CABC/image-size/large?v=v2&px=999 "create from template.PNG")

Upon saving the page and adding the label, the page properties macro gave me the below:

![page_prop_macro.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/53546iE009885C5C0509DD/image-size/large?v=v2&px=999 "page_prop_macro.PNG")

I have around 5 sections on the template and around 10 page properties, section and column macros used within them. Please refer the sample below.

![template sample.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/53552i8180E8B9C3D7A93F/image-size/large?v=v2&px=999 "template sample.PNG")

Hope this helps to drill down the issue.

Appreciate your help!

Thanks,

Guna


author: Gunasekaran Subramanian
body: Hi [@Dominic Lagger](/t5/user/viewprofilepage/user-id/601600) :

I have fixed the issue.

Earlier I tried without any property id or added property id of all page properties.

Now I just kept the property id of the summary section which I wanted to have it in the page property macro and it fixed the issue.

A very simple thing which I kept missed out.

Your inputs are very much valuable and it helped me to dig the issue. Appreciate your help!!

Thanks,

Guna


author: Dominic Lagger
body: Hi Guna

That are are news! I'm happy it worked out now.

You are welcome!

Dominic


Tags: confluence-server

server