Skip to main content
Announcements
UPGRADE ADVISORY for Qlik Replicate 2024.5: Read More
cancel
Showing results for 
Search instead for 
Did you mean: 
Benkku
Partner - Contributor III
Partner - Contributor III

How to duplicate a task in Qlik Replicate

Hi!

I am new to Qlik Replicate and I would like to know if there is any way I can duplicate a task.

I tried it by using the export/import method but it did not work. I managed to export the task into a json file, then I imported the file but I cannot see it in my workspace. I think the reason is that there is already the original file there, even though with a different name. In fact, if a delete the original file before importing the clone, I can see the imported file in my workspace.

So, is there any other way I can copy an existing flow to develop it further while maintaining the old task in my workspace?

I would appreciate any hint.

Thanks,

Bernardo

Labels (1)
1 Solution

Accepted Solutions
Pierretim
Contributor III
Contributor III

I would like a duplicate function as well, but it is indeed missing

I am pretty sure that you can export the task, edit the json file and change the task name, then import it and you should have a new task with the new name. Note that for exporting/importing tasks you can use the command line (repctl).

Pierre

View solution in original post

5 Replies
Pierretim
Contributor III
Contributor III

I would like a duplicate function as well, but it is indeed missing

I am pretty sure that you can export the task, edit the json file and change the task name, then import it and you should have a new task with the new name. Note that for exporting/importing tasks you can use the command line (repctl).

Pierre

Benkku
Partner - Contributor III
Partner - Contributor III
Author

Hi Pierre!

Thanks for your hint! It works. By editing the exported json file by changing the name, then you are able to rename a task and to duplicate it by importing it back into your work space.

Bets regards,

Bernardo

Aghore
Contributor
Contributor

Hi I am trying same thing but some how I am not able to import task again

Heinvandenheuvel
Specialist III
Specialist III

Well my friend, let us asure you that it can work just fine, so therefor you must have made an operational error.

We are not physics here, so you need to tell in detail what was tried, and what errors were reported.

What exactly did you try? Export ? GUI? REPCTL? Edit JSON with a decent language sensitive tool like NOTEPAD++ ? Change the task-name to be unique ( see code)?  Optionally remote 'databases' section. Saved under a new file-name? Optionally validate new JSON? Import pointing to the edited JSON ? Which tool:  repctl? Replicate console UI? Enterprise Manager?  Optionally refresh Tasks display? Any error messages in any of the steps above?

 

	"cmd.replication_definition":	{
		"tasks":	[{
				"task":	{
					"name":	"Change This To be unique",

 

My preference is to remove the databases section - assuming the new task uses the same endpoints. 

If you do so, remove the comma after the task array closing square bracket.

 

			}],       <-- remove comma
		"databases":	[{      x
:                                       x 
:                                       x
			}]              x
	},
	"_version":	{
:
:

 

Good luck!

 

Hein

Aghore
Contributor
Contributor

Thanks a lot, I was able to export and  open json file and edit the name of task inside json file and it let me import . Thanks for all the help