Skip to content
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

Schedule Type enum doesn't seem to include 'System' #1349

Closed
mafleming97045 opened this issue Jan 24, 2024 · 0 comments
Closed

Schedule Type enum doesn't seem to include 'System' #1349

mafleming97045 opened this issue Jan 24, 2024 · 0 comments

Comments

@mafleming97045
Copy link

Our admins have created Tableau schedules of type 'System'. When I run a GET schedules request in Postman, I receive a schedule like this:

<schedule id="f42ecaaf-eff3-4deb-b77b-bd3458619688" name="Weekly Tuesday 8 AM" state="Active" priority="50" createdAt="2021-06-24T13:56:24Z" updatedAt="2024-01-23T16:00:41Z" type="System" frequency="Weekly" nextRunAt="2024-01-30T16:00:00Z"/>

This type causes the property_decorators in this API to fail:

File "envs\debug_old\lib\site-packages\tableauserverclient\models\schedule_item.py", line 49, in __init__
  self.schedule_type: str = schedule_type
File "envs\debug_old\lib\site-packages\tableauserverclient\models\property_decorators.py", line 14, in wrapper
  raise ValueError(error)
ValueError: Invalid value: System. schedule_type must be of type Type.

If the real issue is a missing type, can 'System' be added to the Schedule Type values?

@bcantoni bcantoni added the bug label Jan 26, 2024
bcantoni added a commit that referenced this issue Feb 2, 2024
I'm not fully clear on where these might come from, but this change should let TSC
work in such cases.

Fixes #1349
@jacalata jacalata added the 0.31 label May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants