Migrating dashboard fails with conflicting info from analysis

There is one dashboard. A BI developer is updating an Analysis at the moment. He added another dataset in the analysis to add a tab in the Analysis and still working on it.
This updated version of the analysis is not yet published to Dashboard. This is from DEV account.

But, I still want to migrate what we have in DEV to STG account.
When I create a template based on DEV account, the template shows the current non-published analysis which is linked to 2 datasets.

Thus, this conflicts with the published dashboard template as it is linked to published status where there is only ONE dataset. Therefore, I face the following error message.

An error occurred (InvalidParameterValueException) when calling the CreateTemplate operation: Expected 2 placeholders. <<

Can I create a template of analysis that takes only published dashboard snapshot?
If I can’t, how to avoid this conflict ?

Thanks for your question @tbdori.

@DylanM and @duncan could you look at this Monday morning?

Hello @tbdori, what are you using to create the template for the analysis to migrate this to your STG environment? I am pretty sure all that error means is that you need to include the ids for both datasets that are included in the analysis when you create the template. That should resolve the error you are facing while also bringing in the most recent updates that were made.

Hello @tbdori, since we have not heard back from you in awhile, I will mark my last response as the solution. If you have further questions on this issue, please let me know and I will help guide you further. Thank you!