# get\_task\_table\_selection

Retrieves the list of tables selected for inclusion (either explicitly or using pattern) in a specific Replicate task.

## Required user role

See [Required Enterprise Manager permissions](https://help.qlik.com/en-US/enterprise-manager/November2024/Content/EnterpriseManager/EnterpriseManager_APIGuide/Introduction/AEMPermissions.htm).

## Syntax

`def get_task_table_selection(` ` self,  ` ` server,  ` `task` `)`

## Call parameters

Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| server | string | The Replicate Server name as defined on Qlik Enterprise Manager.<br><br>Example: myrepsrv1 |
| task | string | The Replicate task for which to retrieve the list of tables. |

## Errors

All of the [general errors](https://help.qlik.com/en-US/enterprise-manager/November2024/Content/EnterpriseManager/EnterpriseManager_APIGuide/PythonAPI/error_handling.htm) as well as the errors listed in the table below.

Error responses

| HTTP Code | Enterprise Manager Code | Text | Description |
| --- | --- | --- | --- |
| 500 | AEM\_TABLE\_LIST\_INNER\_ERR | Failed to retrieve table list for replication task "{task}" on server "{server}". Error: "{message}" | Returned when the table list cannot be retrieved. |
| 500 | AEM\_TASK\_NOT\_FOUND | Replicate task {task} on server {server} could not be found. | The task name is unknown to Enterprise Manager. |

## Errors

All of the [general errors](https://help.qlik.com/en-US/enterprise-manager/November2024/Content/EnterpriseManager/EnterpriseManager_APIGuide/PythonAPI/error_handling.htm) as well as the errors listed in the table below.

Error responses

| HTTP Code | Enterprise Manager Code | Text | Description |
| --- | --- | --- | --- |
| 500 | AEM\_TABLE\_LIST\_INNER\_ERR | Failed to retrieve table list for replication task "{task}" on server "{server}". Error: "{message}" | Returned when the table list cannot be retrieved. |
| 500 | AEM\_TASK\_NOT\_FOUND | Replicate task {task} on server {server} could not be found. | The task name is unknown to Enterprise Manager. |