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
importtableauserverclientasTSCtableau_auth=TSC.TableauAuth('USERNAME', 'PASSWORD')
server=TSC.Server('https://SERVERURL')
withserver.auth.sign_in(tableau_auth):
all_tasks, pagination_item=server.tasks.get()
print("\nThere are {} tasks on site: ".format(pagination_item.total_available))
print([task.idfortaskinall_tasks])
Versions
Details of your environment, including:
Tableau Online
Tableau Server Version: 2024.3.0 (20243.24.1002.0933) 64-bit Linux
Tableau Pod: prod-useast-b
Python version
Python 3.10.0
TSC library version
Downloaded Oct 1 2024
To Reproduce
Run code above ( I have omitted the connection steps, but am using the same code in other scripts successfully)
Results
What are the results or error messages received?
Traceback (most recent call last):
File "C:\Users\jforlow\AppData\Local\Programs\Python\Python310\lib\site-packages\tableauserverclient\models\interval_item.py", line 259, in interval
if not (1 <= int(interval_value) <= 31):
ValueError: invalid literal for int() with base 10: 'Sunday'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\# Tableau_Cloud_PY\explore_tasks.py", line 184, in <module>
main()
File "C:\# Tableau_Cloud_PY\explore_tasks.py", line 110, in main
all_tasks, pagination_item = server.tasks.get()
File "C:\Users\jforlow\AppData\Local\Programs\Python\Python310\lib\site-packages\tableauserverclient\server\endpoint\endpoint.py", line 254, in wrapper
return func(self, *args, **kwargs)
File "C:\Users\jforlow\AppData\Local\Programs\Python\Python310\lib\site-packages\tableauserverclient\server\endpoint\tasks_endpoint.py", line 43, in get
all_tasks = TaskItem.from_response(server_response.content, self.parent_srv.namespace, task_type)
File "C:\Users\jforlow\AppData\Local\Programs\Python\Python310\lib\site-packages\tableauserverclient\models\task_item.py", line 57, in from_response
return list(all_tasks)
File "C:\Users\jforlow\AppData\Local\Programs\Python\Python310\lib\site-packages\tableauserverclient\models\task_item.py", line 55, in <genexpr>
all_tasks = (TaskItem._parse_element(x, ns) for x in all_tasks_xml)
File "C:\Users\jforlow\AppData\Local\Programs\Python\Python310\lib\site-packages\tableauserverclient\models\task_item.py", line 68, in _parse_element
schedule_item_list = ScheduleItem.from_element(element, ns)
File "C:\Users\jforlow\AppData\Local\Programs\Python\Python310\lib\site-packages\tableauserverclient\models\schedule_item.py", line 223, in from_element
) = cls._parse_element(schedule_xml, ns)
File "C:\Users\jforlow\AppData\Local\Programs\Python\Python310\lib\site-packages\tableauserverclient\models\schedule_item.py", line 316, in _parse_element
interval_item = ScheduleItem._parse_interval_item(frequency_detail_elem, frequency, ns)
File "C:\Users\jforlow\AppData\Local\Programs\Python\Python310\lib\site-packages\tableauserverclient\models\schedule_item.py", line 294, in _parse_interval_item
return MonthlyInterval(start_time, tuple(interval_values))
File "C:\Users\jforlow\AppData\Local\Programs\Python\Python310\lib\site-packages\tableauserverclient\models\interval_item.py", line 222, in __init__
self.interval = interval_value
File "C:\Users\jforlow\AppData\Local\Programs\Python\Python310\lib\site-packages\tableauserverclient\models\interval_item.py", line 263, in interval
raise ValueError(error)
ValueError: Invalid interval value for a monthly frequency: Sunday.
The text was updated successfully, but these errors were encountered:
Describe the bug
I am using the example code:
Versions
Details of your environment, including:
Tableau Online
Tableau Server Version: 2024.3.0 (20243.24.1002.0933) 64-bit Linux
Tableau Pod: prod-useast-b
Python version
Python 3.10.0
TSC library version
Downloaded Oct 1 2024
To Reproduce
Run code above ( I have omitted the connection steps, but am using the same code in other scripts successfully)
Results
What are the results or error messages received?
The text was updated successfully, but these errors were encountered: