tableau / server-client-python

A Python library for the Tableau Server REST API
https://tableau.github.io/server-client-python/
MIT License
655 stars 420 forks source link

Invalid interval value for a monthly frequency: Customized Monthly. #1365

Closed MakhdumS closed 4 months ago

MakhdumS commented 5 months ago

I have a schedule in Tableau Server which is set to run on a Monthly basis: Every 11ᵗʰ, 12ᵗʰ, 16ᵗʰ, 24ᵗʰ, 26ᵗʰ day of the month, at 5:05 PM. When I use the below code to retrieve the specific schedule

`with server.auth.sign_in(tableau_auth):

print(id)

sch_item = server.schedules.get_by_id('xxx')
print(sch_item.name)`

It results in an error: ValueError: Invalid interval value for a monthly frequency: Customized Monthly.

I've used the Tableau REST API directly to see what the is output in the XML, where I see the interval monthDay is Customized Monthly.

<schedule id="f059d794-90dc-40d0-bfad-2ca78e437369" name="TEST MONTHLY SCHEDULE MAK" state="Active" priority="50" createdAt="2024-03-13T17:05:01Z" updatedAt="2024-03-16T16:05:14Z" type="Extract" frequency="Monthly" nextRunAt="2024-03-24T16:05:00Z" executionOrder="Parallel"><frequencyDetails start="17:05:00"><intervals><interval monthDay="Customized Monthly"/></intervals></frequencyDetails></schedule></tsResponse>

I'm assuming there isn't a way to display the actual dates for the schedule, but does the interval item code need to be updated to handle the value of "Customized Monthly"?

Versions Details of your environment, including:

bcantoni commented 5 months ago

We have an existing issue #1354 which has been fixed, but pending a new TSC release.

bcantoni commented 4 months ago

Closing as a duplicate