An error occurred (ConflictException) when calling the UpdateDashboard operation: Cannot use a template when it is in CREATION_IN_PROGRESS state

Hi!

I have created a template from an analysis, created a dashboard, and checked in the CLI that the status is ‘CREATION_SUCCESSFUL’.

When make a change in the template, and run update_template and later update_dashboard, I get the following error message.

‘An error occurred (ConflictException) when calling the UpdateDashboard operation: Cannot use a template when it is in CREATION_IN_PROGRESS state’

Any idea how to fix this?

Thanks!

Hi @ipolakovic
Are you calling the update dashboard immediately after update_template. Sometimes it could take few seconds for the template to be ready. You can wait for 5 to 10 seconds before calling update_dashboard and see if this resolves the issue. Also, its best to check the status of the template using template using describe_template to ensure you do not encounter exception.

Hi @n_vetri , thank you for taking the time.

Yes I have separated the calls and now working. My issue now is that when updating the dashboard I do not know what version number to use. Should it be +1 of the one already published? I tried this and didn’t work. it works when I do +2 or +3 vs current dashboard version

And another question :slight_smile:
I generate outputs that are loaded in s3 that get updated quite regularly. Is it possible to somehow connect a dashboard to this and visualize in real time whenever a new file is uploaded to s3? Should the new files replace the existing ones for it to work?

Thank you!!

1 Like

The version number is autogenerated and it will be available in the response of the Update Dashboard API call as VersionArn.

You can extract the version number and then call UpdateDashboardPublishedVersion call to publish the latest version.

Again, please wait 5 to 10 seconds before calling the UpdateDashboardPublishedVersion API call.

For the data update question, please raise it as a separate question so that it helps others in the community to search and find answer to it easily.

Regards
Vetri

2 Likes

Hi @ipolakovic
I am marking the above as solution as it resolved your issue. Please let us know if yo still face issue.

1 Like