An error occurred (InvalidParameterValueException) when calling the UpdateDashboard operation: LayoutElement doesn't exist

Hi,

I have two sets of Quick Sight resources(DataSet/Analysis/Dashboard) for dashboard a and b. They are exactly the same. Now, inside dashboard a, I created a new sheet with a text box inside. Now I want to update dashboard b with that using the update-dashboard api but got error.

I have the following definition for the new sheet from dashboard a(updated the dashboard id with b’s):

            {
                "SheetId": "dashboard-b-guid_sheet-guid",
                "Name": "Sheet 2",
                "Visuals": [],
                "TextBoxes": [
                    {
                        "SheetTextBoxId": "f49902c1-706c-43ba-a684-82a7a6be3308",
                        "Content": "<text-box>Test</text-box>"
                    }
                ],
                "Layouts": [
                    {
                        "Configuration": {
                            "GridLayout": {
                                "Elements": [
                                    {
                                        "ElementId": "f49902c1-706c-43ba-a684-82a7a6be3308",
                                        "ElementType": "VISUAL",
                                        "ColumnSpan": 9,
                                        "RowSpan": 6
                                    }
                                ],
                                "CanvasSizeOptions": {
                                    "ScreenCanvasSizeOptions": {
                                        "ResizeOption": "FIXED",
                                        "OptimizedViewPortWidth": "1600px"
                                    }
                                }
                            }
                        }
                    }
                ],
                "ContentType": "INTERACTIVE"
            }

when I tried to update-dashboard with above to dashboard b. I got error:

“An error occurred (InvalidParameterValueException) when calling the UpdateDashboard operation: LayoutElement doesn’t exist.
at LayoutElement: f49902c1-706c-43ba-a684-82a7a6be3308 of type: VISUAL,
at Sheet afd63f2b-0f0c-4665-a127-d7bb98617937_3d1b7caa-c8f4-40a5-bf45-7fcf1bbc8932.”

I couldn’t figure out the reason why the error as the text box resource is there.

Thanks,

Hello @Leon !

Have you tried the guidelines listed for the common causes of the InvalidParameterValueException error?

I’m also curious if you would run into this issue if you tried UpdateAnalysis.

Strange, when I created a new visual other than Text in an existing sheet and then update the other dashboard, it works.

@Leon that’s something to note! Did you try to recreate the issue on other visual types or just saw that it worked when you weren’t using a Text visualization?

Hi @Leon !

I encountered the same error with ‘create-template.’ In my environment, I have retained a JSON obtained in the past through ‘describe-template.’ When I look at the JSON from the past, the ElementType was TEXT_BOX instead of VISUAL . After modifying the JSON with the error to use TEXT_BOX , it worked successfully. This is probably a bug in Quick Sight. I believe it should be fixed to avoid any discrepancies with the ElementType . I have raised a support case from my AWS account to address this issue.

I have the same issue when running an asset-bundle-import/export-job.

AWS Support has responded and the issue has been fixed. The problem was also fixed in my environment.