-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Medium
-
Component/s: Organize - Sidebar (Content Tree)
-
None
-
3
-
Severity 3 - Minor
-
1
Problem
When attempting to export a page tree to PDF, the process fails with the error: "Something went wrong / We had a problem exporting your space. Try again."
When there are inaccessible drafts or pages with specific restrictions within the first page fetch of the tree, it can cause pages to appear duplicated in the export selection menu. When a user selects these duplicated entries, the PDF service fails with a Duplicate key error because it attempts to process the same Content ID multiple times.
This issue is also observed when using the Admin Key to override restrictions; while the Admin Key allows viewing, the underlying query edge case still triggers the duplication and subsequent export failure.
Environment
- Product: Confluence Cloud
- Feature: PDF Export (Custom Space aExport)
Steps to Reproduce
- Navigate to Space Settings > General > Export Space.
- Select PDF export and choose the Custom Export option.
- Expand the page tree to locate a section containing pages with restrictions or inaccessible drafts.
- Observe if any page titles appear duplicated in the selection list.
- Select the tree containing the duplicated entries and click Export.
Expected Results
The page tree should display correctly without duplicates, and the export should complete successfully, respecting the user's permissions (or Admin Key override).
Actual Results
- The export selection menu shows duplicated entries for certain pages.
- The export fails with "Something went wrong".
- Internal logs show: Duplicate key <Page_ID> (attempted merging values BulkExportRequestContent[...] and BulkExportRequestContent[...]).
Workaround
- Change Page Position: Moving the affected parent page to a different location in the hierarchy (and then back, if desired) can sometimes refresh the ptpage query results and clear the duplication.
- Remove Restrictions: Temporarily removing restrictions or deleting inaccessible drafts within that specific branch of the tree may allow the export to proceed.