Renaming an analysis

Hi Team,

I am trying to rename a QuickSight analysis using the AWS CLI with the following command:

aws quicksight update-analysis --aws-account-id ********* --analysis-id fa26e42f-91c7-4031-b655-3a63af6ca2fa --name user_rename_analysis_renamed --source-entity file://fa26e42f-91c7-4031-b655-3a63af6ca2fa_source_entity.json

Here is the content of my fa26e42f-91c7-4031-b655-3a63af6ca2fa_source_entity.json file:

{
    "SourceTemplate": {
        "DataSetReferences": [
            {
                "DataSetPlaceholder": "user_rename",
                "DataSetArn": "arn:aws:quicksight:us-west-2:*********:data-set/9f9f39fd-082a-44e8-9c93-64657e6d3aa0"
            }
        ],
        "Arn": "arn:aws:quicksight:us-west-2:*********:analysis/fa26e42f-91c7-4031-b655-3a63af6ca2fa"
    }
}

However, when I run the command, I receive the following error:

An error occurred (ValidationException) when calling the UpdateAnalysis operation: 1 validation error detected: Value 'arn:aws:quicksight:us-west-2:*********:data-set/9f9f39fd-082a-44e8-9c93-64657e6d3aa0' at 'sourceEntity.sourceTemplate.dataSetReferences.1.member.dataSetArn' failed to satisfy constraint: Specified resource is not reachable in this region ('us-west-2'). Please check the arn format and region information.

I have verified that the region is correct (us-west-2). I am unsure why this issue occurs since both the DataSetArn and Arn use the same region.

Could you help me understand how to resolve this and successfully rename the analysis?

Thanks in advance!

1 Like

Hello @tsenguun, after some testing I was able to figure out the issue you are facing. The update-analysis cli command is expecting a template ARN rather than an analysis ARN. If you create a template of your analysis, and then replace the ARN in the update-analysis command, you will be able to successfully change the name.

I’ll mark this as the solution, but please let me know if you have any questions. Thank you!