Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Workbook Update Fails in Tableau Server versions prior to Materialized Views #454

Copy link
Copy link
@austinderrick

Description

@austinderrick
Issue body actions

A simple update workbook call fails on any Tableau Server version prior to the introduction of materialized views. This occurs in TSC version 0.8, which added support for materialized views. Downgrading to 0.7 fixes the issue.

Basically the XML for materialized views is appended to the update call and Tableau Server does not know how to handle it, resulting in failed API calls.

From the Tableau Server logs (2018.2):
org.springframework.http.converter.HttpMessageConversionException: Deserialization problem: unexpected element (uri:"", local:"materializedViewsEnablementConfig"). Expected elements are <{}owner>,<{}site>,<{}project>,<{}connections>,<{}connectionCredentials>,<{}views>,<{}tags>; nested exception is com.sun.istack.internal.SAXParseException2; lineNumber: 1; columnNumber: 274; unexpected element (uri:"", local:"materializedViewsEnablementConfig"). Expected elements are <{}owner>,<{}site>,<{}project>,<{}connections>,<{}connectionCredentials>,<{}views>,<{}tags>

Code for reproducing the problem:

        published_workbook = server.workbooks.get_by_id(published_workbook_id)
        published_workbook.owner_id = new_owner_id
        published_workbook.show_tabs = True

        # Added to try to override; didn't help
        published_workbook.materialized_views_config = None

        workbook = server.workbooks.update(published_workbook)
        server.auth.sign_out()
Reactions are currently unavailable

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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.