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

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

Closed
MakhdumS opened this issue Mar 19, 2024 · 2 comments
Closed

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

MakhdumS opened this issue Mar 19, 2024 · 2 comments

Comments

@MakhdumS
Copy link

MakhdumS commented Mar 19, 2024

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:

  • Tableau Server version 2022.1.20
  • Python version 3.11.4
  • TSC library version 0.30
@bcantoni
Copy link
Contributor

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

@bcantoni
Copy link
Contributor

Closing as a duplicate

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

No branches or pull requests

2 participants