Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
dineshkumarl
Partner - Creator
Partner - Creator

Reload QEM task using Python API with filters

Hi,

 

I am trying to reload a Qlik Replicate task using QEM Python API. 

I am using reload_table method to achieve my goal.

However, I do not see any option to define filters using the above method. 

I have tried the below:

reload_table(server, table, filters:{col1:value1,value2})

but that doesn't work.

Is there any way to achieve my said requirement using the above method or is there any other method which I can use to reload the task with table filters. 

Kindly assist. 

Labels (3)
3 Replies
Shai_E
Support
Support

Hi @dineshkumarl ,

Checking the API documents for this method i do not see a method parameter named "filter" mentioned.

So, i assume there isn't any.

Source:

reload_table | Qlik Enterprise Manager Help

Would also add that the code for the method in aem_client.py doesn't include such a parameter.

 

Best Regards

Heinvandenheuvel
Specialist III
Specialist III

Are you referring the the Qlik Enterprise ManagerTM Python API?

The topic tittle reads >> Reload QEM task using Python API with filters  ?

The topic body reads >> I am using reload_table method to achieve my goal.

Do you want to reload a task (definition) or a table in a task?

You then go on with "I have tried the below: reload_table(server, table, filters:{col1:value1,value2})

But the API Userguide indicates the argments are; def reload_table(self,server,task,schema,table)

There is no Filter argument for reload_table. Reload_table is an action initiator, not a defintion method

If you want to define a new filter for a table in a task, then you have to re-defined the whole task with that the new filter (values) in the update task json through the import_task Api.

Hein

 

dineshkumarl
Partner - Creator
Partner - Creator
Author

Thank you for the update, I will check on import_task API.