Deleting a project while copying the data to a sandbox may result in a timeout

XMLWordPrintable

    • 1
    • Severity 3 - Minor

      Issue Summary

      When copying specific projects from production to a sandbox site, the project being copied must not already exist in the Sandbox site for the copy to be allowed.

      For this reason, the "Validate data" step verifies if the project exists in the Sandbox, and if it detects a project with the same Key, it offers the option to delete it.

      However, using this option may result in the following error:

      "Something went wrong

      We couldn't delete the projects. Try again later"

      By generating a HAR file, we can see that the process fails with an HTTP 504 - Gateway Timeout, suggesting that the project deletion took longer than the page allows.

      Steps to Reproduce

      1. Copy a large project from production to a Sandbox site.
      2. Wait for the data copy to finish.
      3. Select to copy specific projects, and choose the same large project you just copied.
      4. At the "Validate data" step, the wizard will inform you that the project already exists and give you the option to delete it.
      5. Select 'Delete projects'.

      Expected Results

      • The project deletion succeeds, and the user is allowed to move forward with the data copy without running into errors.

      Actual Results

      • If the project is large enough, you may encounter the error/timeout.
        Checking the sandbox audit logs, you can see that the project is eventually deleted, which reinforces that this is an issue with the page timeout, not with the delete feature.

      Workaround

      If you need to delete a large project from your sandbox before being able to copy it from production again, rather than deleting it from the Sandbox Data Copy tool, access your sandbox site directly and manually delete it.

      References:

              Assignee:
              Rishikesh .
              Reporter:
              Armando Neto
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: