You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
server.tasks ValueError: name must be defined. #1237
Describe the bug
I can use this code to get all tasks in my tableau online since last year. But today this code return error like this. How to fix the error?
Versions
Details of your environment, including:
Tableau Server version (or note if using Tableau Online) > Tableau Online
Python version > 3.8
TSC library version > 0.25
To Reproduce
Steps to reproduce the behavior. Please include a code snippet where possible.
server = TSC.Server(TABLEAU_URL, use_server_version=True)
server.auth.sign_in(tableau_auth)
all_tasks = list(TSC.Pager(server.tasks))
Results
What are the results or error messages received?
NOTE: Be careful not to post user names, passwords, auth tokens or any other private or sensitive information.
@pavel-sho Out of curiosity, is this supposed to return flow tasks as well? When I attempt to retrieve all tasks, I can only ever retrieve those associated with Extract Refreshes, despite being able to view those associated with Flows, Subscriptions, Alerts, and Linked Task on Tableau Server's front-end as a site admin.
Hi @SQLShortReads, you right, the purpose we use tasks service, is to check which workbook_id / datasource_id has incremental refresh, if there is any we trigger it, as part of orchestration we do via Airflow, currently Tableau supports only full refresh when using their Airflow Operator, supporting incremental refresh require some dirty tricks.
Has anyone been able to successfully retrieve data on scheduled flow tasks? As previously stated, only extractRefresh tasks seem to be returned by server.tasks.
To be clear, in the front-end UI, there are 6 categories of tasks, and server.tasks only returns those tasks that are of Extract Refresh type.
Extract Refreshes
Flows
Subscriptions
Alerts
Accelerated Views
Linked Tasks.
Activity
stav-hacohen commentedon May 24, 2023
We are facing the same issue. Seems like a change in tableau backend. Please advice.
pavel-sho commentedon May 24, 2023
seems like element object <Element '{http://tableau.com/api}schedule' at 0x7fdda840e1d0> ,
returned object
the name is not presented in the response from tableau.com
jacalata commentedon May 24, 2023
Yes, it is a server change, the fix will be to remove the non-nullable attribute so the library accepts the new object.
pavel-sho commentedon May 28, 2023
Hi @jacalata, is there a way to prioritize this bug or at least getting some ETA for a fix?
Thanks
CodingOnWindowsOS commentedon May 30, 2023
@pavel-sho Out of curiosity, is this supposed to return flow tasks as well? When I attempt to retrieve all tasks, I can only ever retrieve those associated with Extract Refreshes, despite being able to view those associated with Flows, Subscriptions, Alerts, and Linked Task on Tableau Server's front-end as a site admin.
pavel-sho commentedon May 31, 2023
Hi @SQLShortReads, you right, the purpose we use tasks service, is to check which workbook_id / datasource_id has incremental refresh, if there is any we trigger it, as part of orchestration we do via Airflow, currently Tableau supports only full refresh when using their Airflow Operator, supporting incremental refresh require some dirty tricks.
CodingOnWindowsOS commentedon Jul 18, 2023
Has anyone been able to successfully retrieve data on scheduled flow tasks? As previously stated, only extractRefresh tasks seem to be returned by server.tasks.
To be clear, in the front-end UI, there are 6 categories of tasks, and server.tasks only returns those tasks that are of Extract Refresh type.
Extract Refreshes
Flows
Subscriptions
Alerts
Accelerated Views
Linked Tasks.
Hotfix schedule_item.py for issue 1237 (#1239)
Hotfix schedule_item.py for issue 1237 (#1239)