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,