Retrieve A Deleted Analysis

Hello @Experts,

Recently, an analysis was inadvertently deleted from my account. I am now in need of its retrieval. Unfortunately, the analysis was deleted a while ago, making the use of the “restore_analysis” API ineffective, as it has already been attempted and failed.

I do possess a JSON file containing the data from the “describe_analysis” response, and I attempted to recreate the analysis using this JSON data. However, this endeavor was unsuccessful. My approach involved template creation, and the template itself has also been deleted, rendering the creation of the analysis from the template unfeasible.

As of now, I find myself in a situation where the analysis and dashboard are not available, and I am unable to proceed. Is there any alternative method to recover my analysis?

Thank you.

did you try to create the analyis without template?
I’m pretty sure I’ve done it before without a template.

Hi @ErikG
But in create analysis api needs analysis arn for creation I guess.

So the api will fail by resource not found exception.

Can you please describe the process, if you did it already ,Thanks in advance.

Please check:

There Definition and SourceEntityare marked as Required: No.

I did just a simple test:

result = client.create_analysis(

with def_data:

        "DataSetIdentifierDeclarations": [
                "Identifier": "xxxxxx",
                "DataSetArn": "arn:aws:quicksight:eu-central-1:*************:dataset/66f1cd2d-a3af-4c59-9d71-7eeda41e218f"
        "Sheets": [
                "SheetId": "fd0298cf-070f-407b-8624-b46a4d45ec22",
				"Name": "Sheet 1"
        "CalculatedFields": [],
        "ParameterDeclarations": [],
        "FilterGroups": [],
        "AnalysisDefaults": {
            "DefaultNewSheetConfiguration": {
                "InteractiveLayoutConfiguration": {
                    "Grid": {
                        "CanvasSizeOptions": {
                            "ScreenCanvasSizeOptions": {
                                "ResizeOption": "FIXED",
                                "OptimizedViewPortWidth": "1600px"
                "SheetContentType": "INTERACTIVE"

Just give it a try without template :wink:

1 Like

Thanks for the info @ErikG , But I don’t have the definition data of the deleted one , because the describe analysis api will give only few data.

but my objective is to retrieve the old one with all filters and controllers, etc…


If you don’t have the full definition I’m out of options.

Hi @ErikG , is it possible to contact with Amazon support and get the template for the deleted one

Hey @SAI_BROTHERS. Thanks for your questions. I would recommend filing a case with AWS Support to see if this is something they can provide. They will also be able to dive into the details so that we can help you further. Here are the steps to open a support case. If your company has someone who manages your AWS account, you might not have direct access to AWS Support and will need to raise an internal ticket to your IT team or whomever manages your AWS account. They should be able to open an AWS Support case on your behalf. Hope this helps!

Thanks @ErikG for your great recommendations!