Ctrl-Q

Bulk export/import of reload tasks in client-managed Qlik Sense

The open source tool Ctrl-Q can be used to do bulk export/import of reload tasks in client-managed Qlik Sense Enterprise on Windows.

Bulk export/import of reload tasks in client-managed Qlik Sense
Photo by Nikola Johnny Mirkovic / Unsplash

The latest version of the open source tool Ctrl-Q can both export full reload task definitions to a CSV or Excel file, as well as import tasks from such files.

Might seem like a trivial thing but it's really a game-changing enabler for lots of interesting use cases:

  • Backup all tasks to a file once per day. Makes it trivial to recover accidentally deleted reload tasks.
  • Ensure DEV, TEST and PROD Qlik Sense servers have the same ETL chains set up.
  • Deploy the same set of tasks to multiple Sense environments.
  • Define ETL chains in a Git controlled definition file that is automatically sent to Sense whenever updated. Something like DevOps for reload tasks.

Ctrl-Q tries to be as opaque as possible, while at the same time offer a lot of flexibility. A single command should perform some high-value task that would be difficult and/or time consuming to do manually.

Exporting all reload tasks to a CSV file (Excel also possible) looks like this (using PowerShell, Sense server is found at 192.168.100.109):

.\ctrl-q.exe task-get `
--auth-type cert `
--host 192.168.100.109 `
--auth-user-dir Internal `
--auth-user-id sa_api `
--output-format table `
--output-dest file `
--output-file-name tasks.csv `
--output-file-format csv

Great, with a complete definition of all reload tasks now available in tasks.csv, we can create new tasks based on the info in that file:

.\ctrl-q.exe task-import `
--auth-type cert `
--host 192.168.100.109 `
--auth-cert-file ./cert/client.pem `
--auth-cert-key-file ./cert/client_key.pem `
--auth-user-dir Internal `
--auth-user-id sa_api `
--file-type csv `
--file-name tasks.csv

Ctrl-Q supports anything you can do with respect to reload tasks in the QMC, plus some more. It's for example possible to link a newly created reload task to either some other newly created reload task, or to an already existing reload task.

Does it work? Yep, check out this video:

Reload task export/import using Ctrl-Q
Göran Sander Stockholm, Sweden

Qlik Sense consultant and toolmaker at Ptarmigan Labs. Ten years at Spotify, Qlik Luminary and Partner Ambassador, author of the open source Butler tools.

All posts by Göran Sander
Keep reading

More about

Qlik Sense

Profiling Qlik QVD files in VS Code

Analyze QVD field distributions directly in VS Code with Ctrl-Q QVD Viewer's new profiling feature. Get interactive charts, statistical analysis, histograms for numeric fields, and export results as Qlik .qvs scripts

5 min read
Ctrl-Q

Viewing QVD Files in VS Code

When you're developing Qlik Sense applications, QVD files are often used as part of your data architecture. Historically it's been hard to view the data in them outside of Sense or QlikView - that changes now with a new extension for VS Code!

4 min read
Ctrl-Q

Manage Qlik Sense user sessions in style

Managing user sessions in client-managed Qlik Sense can be tricky or even outright difficult in large Sense environments. Ctrl-Q includes powerful tools that makes this work easier!

10 min read