8000 We are trying to list our schedules, and this interval cannot be parsed properly. · Issue #1578 · tableau/server-client-python · GitHub
[go: up one dir, main page]

Skip to content

We are trying to list our schedules, and this interval cannot be parsed properly. #1578

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
casey-crawford-cfa opened this issue Mar 6, 2025 · 1 comment

Comments

@casey-crawford-cfa
Copy link
Contributor

Tableau Support: https://help.salesforce.com/s/case-view?caseId=500Hx00000kv5y9IAA

Describe the bug
A clear and concise description of what the bug is.

We are trying to list our schedules, and this interval cannot be parsed properly.  

Schedule:
Every 7th, 8th, 9th, 10th, 15th day of the month, at 7:00 AM  

Versions
Details of your environment, including:

  • Tableau Server version (or note if using Tableau Online)
    • Tableau Server Version: 2022.3.9 (20223.23.0811.1400) 64-bit Linux .
    • Tableau Server Version: 2024.2.2 (20242.24.0807.0327) 64-bit Linux
  • Python version
    • Python 3.12.6 .
  • TSC library version
    • tableauserverclient-0.36

To Reproduce
Steps to reproduce the behavior. Please include a code snippet where possible.

tableau_auth = TSC.PersonalAccessTokenAuth(tableau_username, tableau_password)
server = TSC.Server(tableau_server, use_server_version=True)
with server.auth.sign_in(tableau_auth):
   server.schedules.get_by_id('UUID')

Results
What are the results or error messages received?

INFO:TSC:Querying a single schedule by id (35d6458e-ddeb-4b95-b941-9ba03c7ead4d)
INFO:TSC:Signed out
Traceback (most recent call last):
  File "/MY_REPO/_develop_schedules.py", line 75, in <module>
    server.schedules.get_by_id('UUID')
  File "/VENV_PYTHON_PATH/site-packages/tableauserverclient/server/endpoint/endpoint.py", line 274, in wrapper
    return func(self, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/VENV_PYTHON_PATH/site-packages/tableauserverclient/server/endpoint/schedules_endpoint.py", line 48, in get_by_id
    return ScheduleItem.from_response(server_response.content, self.parent_srv.namespace)[0]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/VENV_PYTHON_PATH/site-packages/tableauserverclient/models/schedule_item.py", line 202, in from_response
    return cls.from_element(parsed_response, ns)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/VENV_PYTHON_PATH/site-packages/tableauserverclient/models/schedule_item.py", line 223, in from_element
    ) = cls._parse_element(schedule_xml, ns)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/VENV_PYTHON_PATH/site-packages/tableauserverclient/models/schedule_item.py", line 316, in _parse_element
    interval_item = ScheduleItem._parse_interval_item(frequency_detail_elem, frequency, ns)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/VENV_PYTHON_PATH/site-packages/tableauserverclient/models/schedule_item.py", line 294, in _parse_interval_item
    return MonthlyInterval(start_time, tuple(interval_values))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/VENV_PYTHON_PATH/site-packages/tableauserverclient/models/interval_item.py", line 222, in __init__
    self.interval = interval_value
    ^^^^^^^^^^^^^
  File "/VENV_PYTHON_PATH/site-packages/tableauserverclient/models/interval_item.py", line 276, in interval
    raise ValueError(error)
ValueError: Invalid monthly interval: Customized Monthly
@casey-crawford-cfa
Copy link
Contributor Author

I sat down to work on this issue, but I can no longer reproduce the error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
32CD
Development

No branches or pull requests

1 participant
0