Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content
Announcements
WEBINAR April 23, 2025: Iceberg Ahead: The Future of Open Lakehouses - REGISTER TODAY
cancel
Showing results for 
Search instead for 
Did you mean: 
fldc2500
Partner - Contributor III
Partner - Contributor III

Moving Apps with Data Between Tenants

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,

Labels (3)
1 Solution

Accepted Solutions
DaveChannon
Employee
Employee

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?

View solution in original post

8 Replies
DaveChannon
Employee
Employee

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.

fldc2500
Partner - Contributor III
Partner - Contributor III
Author

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

DaveChannon
Employee
Employee

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?

fldc2500
Partner - Contributor III
Partner - Contributor III
Author

I will play around with this using the the automations, I can make that work. Thank you for your suggestion!

DanielleW1
Contributor III
Contributor III

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

fldc2500
Partner - Contributor III
Partner - Contributor III
Author

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.

DanielleW1
Contributor III
Contributor III

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

 

 
fldc2500
Partner - Contributor III
Partner - Contributor III
Author

You can put this option to true. Github will take care of the data in the app.