Uploaded image for project: 'Confluence Cloud'
  1. Confluence Cloud
  2. CONFCLOUD-80196

Exporting Database to CSV Fails with NotFoundException Error

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Low Low
    • Database
    • None

      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

      1. Create a database example "Test DB 1"
      2. Create another database example "Test DB 2"
      3. 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".
      4. Now, delete the database created in step 1.
      5. Observe that the field in the database from step 2, which referenced the database from step 1, now displays "Can't find link".
      6. Click on this field, update the Field Type to "Text", and select "Change field".
      7. Click on the options menu (dots), choose Export -> CSV, and click Export.
      8. 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.

              Unassigned Unassigned
              c2d78d0f7204 Amin A.
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: