Forum Discussion
how do I duplicate a workspace
Hi Anonymous,
I think that it will need some debugging from your side. The problem seems to be arised from the request in this line of the script. You could probably add some debug messages in order to see what's going on.
I also quote some of the limitations of the script as mentioned in the step-by-step guide:
"Note that as-is, this script has some limitations.
- Since we use the export and import PBIX APIs to copy datasets, we can only copy the datasets that were built in Power BI Desktop – i.e. streaming datasets, samples, etc., cannot be copied
- You must have edit permissions on the source workspace, since edit permissions are required for export PBIX
- This script won’t copy over refresh schedules, alerts, subscriptions, or workspace memberships – those will have to be manually recreated on the target workspace"
Additionally, this comment from Gregory Turner in the tutorial may be useful to you:
"Unfortunately, the piece that clones Tiles only works for pinned tiles from reports. Tiles with links do not get cloned right and the API seems to have no option for resetting properties".
Regards,
Thanos
Hi Anonymous
Thank you for comprehensive feedback. I have checked all the limitations that you have paste to the post. I have to say, that all my tiles are pinned from the report that exists. I also have tried to copy different workspaces. For example: small model, small report and dashboard, but without success.
Line you have marked in the code. I will check it, create some messages in order to get that line out printed and posted here.
Challenge ;)
Thanks
Borut