Error when replicating dashboards with images via boto3

Good night!

I have a logic using boto3 client to replicate my dashboards for different customers using different datasets.

But when i try to use create_analysis() or update_analysis() over a dashboard with an image in it, it returns me this error:

An error occurred (InvalidParameterValueException) when calling the CreateAnalysis operation: LayoutElement doesn’t exist. at LayoutElement: f0d976cf-9f33-4583-b410-8b892a1762fc of type: IMAGE, at Sheet fbb011d1-2535-4e63-acec-da0521225eef.

I looked into the definition of the dahsboard, and the layout does exist, but we dont have any visual linked to it. I assume that this causes the error. But does this mean that i cannot replicate a dashboard with a image on it?

1 Like

Hello @marcelon10, welcome to the QuickSight community!

I have seen a few questions recently regarding issues with images in dashboard when migrating or updating them programmatically. Is the image something that is being imported from someone’s local file storage? This appears to be the common denominator and it seems there is not a way to handle these when managing dashboards programmatically.

I would recommend switching the way you are importing an image to avoid the error. If you store the image publicly in an S3 bucket, you can then host that image in a custom content visual inside of the dashboard. This should provide a link to the image that will resolve the error in QuickSight.

Alternatively, since I know hosting an image publicly on S3 may be problematic, I will also include some documentation that describes the process of sharing the image privately.

Since I have seen a few questions on this topic, I will also tag this question appropriately. Please let me know if you have any further questions, otherwise I will archive the topic for our support team. Thank you!

Hello, Dylan!

Yes, I am aware that importing the image from an S3 bucket is a viable solution to my problem.

The other problem is: the custom content visual in quicksight don’t have the property to set a tooltip.

My final objective was to upload a tiny icon that displayed a tooltip that could serve as a information guide when hovering on it. With a normal image, i can’t replicate it. With a custom content visual, i cant set the tooltip.

If i create an html snippet that could serve as a tooltip, it need a huge box to fully display the tooltip.

I can’t see a solution to my problem here. Could you help me?

Hello @marcelon10, I understand, that does create a bit of an issue. I have 2 ideas in order to create a work-around solution to the issue. Both will require to change your sheet layout to free form so we can access the conditional rules functionality or to be able to hide part of a visual behind the image.

I’ll include an Arena analysis that has the examples displayed:
Error when replicating dashboards with images via boto3

Either you use a filter control that could display the tooltip when you hover over the icon. You can add text to that so it can display what you are wanting. Alternatively, you could create a type of button that could show or hide a textbox with the information you are wanting to display. I know these are not perfect, but those are the best options I can think of.

I will also tag this topic as a feature request to add the tooltip option to Custom Content visuals.