-
Bug
-
Resolution: Unresolved
-
Low
-
None
-
1
-
Minor
-
Issue Summary
Attempting to export a database to a CSV file results in a NotFoundException error. This occurs when a field in the database references a deleted database entry, leading to a failure in the export process.
Steps to Reproduce
- Create a database example "Test DB 1"
- Create another database example "Test DB 2"
- In the database created in step 2 example "Test DB 2", add a new column and select any option from "Other Databases".
- Enter a Field name and select the database created in step 1 as the reference. For example "Test DB 1".
- Now, delete the database created in step 1.
- Observe that the field in the database from step 2, which referenced the database from step 1, now displays "Can't find link".
- Click on this field, update the Field Type to "Text", and select "Change field".
- Click on the options menu (dots), choose Export -> CSV, and click Export.
- Observe the error.
Expected Results
- Once the database is deleted and the field type is updated, the database reference should be removed.
- The database should export successfully to a CSV file without throwing any errors.
Actual Results
The export process fails, and an error message is displayed indicating that no content was found with the content ID.
com.atlassian.confluence.api.service.exceptions.NotFoundException: No content found with id : <CONTENTID> and status [archived, current] (404, https://<sitename>.atlassian.net/wiki/rest/api/content/<CONTENTID>?status=current&status=archived&expand=body.storage%2Cspace%2Chistory.lastUpdated%2Cversion%2Cchildren.attachment%2Coperations%2Ccontainer)All entries
Workaround
- Delete the column that references the deleted database.
If you wish to retain the content, follow these steps:
- Add a new column next to the column that is referencing deleted database.
- Copy all the items from the broken field to the new column.
- Delete the old column.
- Attempt the export again, and it should now work successfully.