Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi all,
I am currently working on a solution to transfer applications, including their data, between tenants. Initially, I automated the process for apps smaller than 20MB. However, I am now seeking a method to handle larger applications effectively.
I followed the documentation for moving apps using GitHub, as outlined here: Move Apps Between Tenants.
Thus far, I have successfully exported and imported an application into a new tenant. My understanding was that this method would also transfer the app's associated data. Unfortunately, when I open the app in the target tenant, the data is not present.
The only deviation I made from the provided instructions was using tenant-level OAuth clients instead of region-level OAuth clients. To accommodate this, I created additional variables in GitHub and made minor edits to the moveApp.yml
file.
I would appreciate any insights or suggestions on what might be causing this issue or how to ensure the data is included in the transfer.
Thank you for your assistance.
Kind regards,
Very good! Probably worth adding a check on that for the migrator, I'll add a note.
On the duplicates, that block uses the normal endpoints to do a list apps, filter on matching file names, then delete any matches. The only way to implement this is to do that same series of calls in either automations or the importer - your choice. Would that be acceptable?
Hi @fldc2500
The one thing I can think of is perhaps you're trying to export the apps from a managed space? Unlike personal/shared spaces, the export will not include the data even with the nodata flag set to false.
Thank you for your suggestion. I double checked to make sure and this was not the case. While checking I realised that the app I was trying to export was in a space where my OAuth client bot user did not have any rights. A silly mistake. When I changed that everything worked as expected!
I have one follow up question now. Can I achieve the same result in this method that works like the block "Import and Replace Base 64 Encoded App.." to clean up my shared space with the old apps since everytime I run the automation a new app is imported in the shared space. You suggested this in a previous topic I started when I was working with the automation to move smaller apps. https://community.qlik.com/t5/Qlik-Application-Automation/Maintaining-a-Single-App-Across-Tenants/m-...
Thanks in advance!
Kind regards
Very good! Probably worth adding a check on that for the migrator, I'll add a note.
On the duplicates, that block uses the normal endpoints to do a list apps, filter on matching file names, then delete any matches. The only way to implement this is to do that same series of calls in either automations or the importer - your choice. Would that be acceptable?
I will play around with this using the the automations, I can make that work. Thank you for your suggestion!
Hi,
I am facing similar issues with moving larger apps with their data to the new tenant.
I also follow the automation workflow attached, and my apps are being exported from shared workspaces so the data should also transfer.
As the automation has the Export to Base64 Code block, when data is to be exported with it, the block states it only allows apps up to 20MB - therefore it fails with larger apps.
Can I ask how you got around this?
Thanks
Hi,
Can you confirm you followed the tutorial on moving apps with the help of Github? If so, using that automation should also transfer the data in the case of larger apps.
Another thing that could be a problem is that the bot user the OAuth client creates has not sufficient rights in the shared space you are transfering the apps from.
Yes it is using the link you have attached in the initial post.
The deployment automation refers to the "Export App to Base 64 Encoded File" which has an option to Exclude Data = false (but this states that only apps up to 20MB are supported in that block).
I have attached the section that it states this. It fails for me on the automation when I have chosen an app larger than this so I'm not sure how to get around it using this method.
Thanks
You can put this option to true. Github will take care of the data in the app.