Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
hairongg
Contributor II
Contributor II

Qlik Replica Task Tags export and import

Tags are available for tasks.  We can manually assign the tags to each task, which will be cumbersome and can be mistakenly updated.  Unfortunately assigned_tags are not in the exportTask and importTask API (I read some forum and also confirmed with experiment.  The exported task json has no section of assigned/tags).   Therefore our task generator cannot automate and assign specific list of tags to each task.  Is it possible to enable including assigned_tags while exporting and exporting tasks?  Thank you!

Labels (4)
1 Solution

Accepted Solutions
DesmondWOO
Support
Support

Hi @hairongg ,

Please verify if following commands meet your requirements.

Export Tag definitions:

aemctl repository export -r <rtdata.sqlite location> -w -f <export json file location>



Import Tag definitions:

aemctl repository import -r <rtdata.sqlite location> -w -f <import json file location>


For example:

Export:
D:\Attunity\Enterprise Manager\bin>aemctl repository export -r "D:\Attunity\Enterprise Manager\data\rtdata.sqlite" -w -f "E:\rtdata.json"
Executing ExportRepositoryCommand command.
All relevant items were exported to 'E:\rtdata.json'
EnterpriseManager Control Program completed successfully.

Import:
D:\Attunity\Enterprise Manager\bin>aemctl repository import -r "D:\Attunity\Enterprise Manager\data\rtdata.sqlite" -w -f "E:\rtdata.json"
Executing ImportRepositoryCommand command.
All relevant items were imported to repository (from file 'E:\rtdata.json')
EnterpriseManager Control Program completed successfully.


Please note that the command mentioned above is not documented in the user guide. The command may not be officially supported. 

Regards,
Desmond

 

Help users find answers! Do not forget to mark a solution that worked for you! If already marked, give it a thumbs up!

View solution in original post

2 Replies
DesmondWOO
Support
Support

Hi @hairongg ,

Please verify if following commands meet your requirements.

Export Tag definitions:

aemctl repository export -r <rtdata.sqlite location> -w -f <export json file location>



Import Tag definitions:

aemctl repository import -r <rtdata.sqlite location> -w -f <import json file location>


For example:

Export:
D:\Attunity\Enterprise Manager\bin>aemctl repository export -r "D:\Attunity\Enterprise Manager\data\rtdata.sqlite" -w -f "E:\rtdata.json"
Executing ExportRepositoryCommand command.
All relevant items were exported to 'E:\rtdata.json'
EnterpriseManager Control Program completed successfully.

Import:
D:\Attunity\Enterprise Manager\bin>aemctl repository import -r "D:\Attunity\Enterprise Manager\data\rtdata.sqlite" -w -f "E:\rtdata.json"
Executing ImportRepositoryCommand command.
All relevant items were imported to repository (from file 'E:\rtdata.json')
EnterpriseManager Control Program completed successfully.


Please note that the command mentioned above is not documented in the user guide. The command may not be officially supported. 

Regards,
Desmond

 

Help users find answers! Do not forget to mark a solution that worked for you! If already marked, give it a thumbs up!
sureshkumar
Support
Support

Hello @hairongg 


Unfortunately, it's not possible to export the task with the tag assigned. The tag information resides within QEM and that can only be accessed via QEM UI. Therefore, creating or deleting tags is not supported via QEM API.

Please raise a Feature Request for this.
https://community.qlik.com/t5/Suggest-an-Idea/idb-p/qlik-ideas

 

Regards,

Suresh