Skip to content

server.tasks ValueError: name must be defined. #1237

Closed

Description

@segunskl

Describe the bug
I can use this code to get all tasks in my tableau online since last year. But today this code return error like this. How to fix the error?

Versions
Details of your environment, including:

  • Tableau Server version (or note if using Tableau Online) > Tableau Online
  • Python version > 3.8
  • TSC library version > 0.25

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

server = TSC.Server(TABLEAU_URL, use_server_version=True)
server.auth.sign_in(tableau_auth)
all_tasks = list(TSC.Pager(server.tasks))

Results
What are the results or error messages received?

image

NOTE: Be careful not to post user names, passwords, auth tokens or any other private or sensitive information.

Activity

  1. stav-hacohen commented on May 24, 2023

    @stav-hacohen

    We are facing the same issue. Seems like a change in tableau backend. Please advice.

  2. pavel-sho commented on May 24, 2023

    @pavel-sho

    seems like element object <Element '{http://tableau.com/api}schedule' at 0x7fdda840e1d0> ,
    returned object

    schedule_xml.items()
    [('frequency', 'Monthly'), ('nextRunAt', '2023-06-01T09:00:00Z')]

    the name is not presented in the response from tableau.com

  3. jacalata commented on May 24, 2023

    @jacalata
    Contributor

    Yes, it is a server change, the fix will be to remove the non-nullable attribute so the library accepts the new object.

  4. pavel-sho commented on May 28, 2023

    @pavel-sho

    Hi @jacalata, is there a way to prioritize this bug or at least getting some ETA for a fix?

    Thanks

  5. CodingOnWindowsOS commented on May 30, 2023

    @CodingOnWindowsOS

    @pavel-sho Out of curiosity, is this supposed to return flow tasks as well? When I attempt to retrieve all tasks, I can only ever retrieve those associated with Extract Refreshes, despite being able to view those associated with Flows, Subscriptions, Alerts, and Linked Task on Tableau Server's front-end as a site admin.

  6. pavel-sho commented on May 31, 2023

    @pavel-sho

    Hi @SQLShortReads, you right, the purpose we use tasks service, is to check which workbook_id / datasource_id has incremental refresh, if there is any we trigger it, as part of orchestration we do via Airflow, currently Tableau supports only full refresh when using their Airflow Operator, supporting incremental refresh require some dirty tricks.

  7. CodingOnWindowsOS commented on Jul 18, 2023

    @CodingOnWindowsOS

    Has anyone been able to successfully retrieve data on scheduled flow tasks? As previously stated, only extractRefresh tasks seem to be returned by server.tasks.

    To be clear, in the front-end UI, there are 6 categories of tasks, and server.tasks only returns those tasks that are of Extract Refresh type.
    Extract Refreshes
    Flows
    Subscriptions
    Alerts
    Accelerated Views
    Linked Tasks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions