Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Table filter on Excerpt include stopped working

Janno Schouwenburg
March 27, 2020

I noticed today that all my Table filters based on "Excerpt includes" don't work anymore. Depending on the settings within the table filter I either get no output, or the following error message is displayed:

"Oops, it seems that you need to place a table or a macro generating a table within the Table Filter macro."

2 answers

1 accepted

4 votes
Answer accepted
Peter Van de Voorde
Community Champion
December 5, 2013

Hi Siddheshwar,

You can easily deduct the SQL you need from the SQL on that page.

You'll need to do the following :

  1. select * into temp_conf from CONTENT where CONTENTTYPE='DRAFT' (maybe change this to how it works in you DB)
  2. DELETE FROM BODYCONTENT where CONTENTID IN (select CONTENTID from temp_conf);
  3. DELETE from ATTACHMENTS where PAGEID in (select CONTENTID from temp_conf);
  4. DELETE from CONTENT where CONTENTID in (select CONTENTID from temp_conf);

Keep in mind that doing stuff in your database is not something you should consider doing lightly and is completely at your own risk.

Best regards,

Peter

Davin Studer
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
December 5, 2013

I would say if you are going to delete the data then backup your instance and create a test environment out of it. Then do it in the test environment and validate that you didn't mess anything up. Once you are confident in the process then apply to production.

Siddheshwar mhetre
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
December 11, 2013

Hello,

Yes I have taken the backup first and test it in dummy database. With the help of above SQL query I can delete the Draft from my confluence.

Thanks for the help...:)

Best Regards,

Siddheshwar.

Peter Binney
July 3, 2015

Not sure which version of Confluence this is for. With 5.4.4 the above fails if any draft has an attachment. So I extended the initial query with _and CONTENTID not in (select PAGEID from ATTACHMENTS)_

0 votes
Peter Van de Voorde
Community Champion
December 5, 2013

Hi Siddheshwar

The information in this knowledge base article should help you out : https://confluence.atlassian.com/display/CONFKB/Removing+Orphaned+Draft

Best regards,

Peter

Siddheshwar mhetre
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
December 5, 2013

Hi peter,

I have already tried these steps, but this is only for the Orphaned Pages. But I want all the pages or spaces to be remove from the Draft.

Thanks,

Siddheshwar

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events