8000 Workbook Update Fails in Tableau Server versions prior to Materialized Views · Issue #454 · tableau/server-client-python · GitHub
[go: up one dir, main page]

Skip to content

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

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

Closed
austinderrick opened this issue Jul 1, 2019 · 1 comment
Labels

Comments

@austinderrick
Copy link
austinderrick commented Jul 1, 2019

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()
@austinderrick austinderrick changed the title Workbook Update Fails in Tableau Serversions prior to Materialized Views Workbook Update Fails in Tableau Server versions prior to Materialized Views Jul 1, 2019
@shinchris shinchris added the bug label Jul 15, 2019
shinchris pushed a commit that referenced this issue Jul 17, 2019
shinchris pushed a commit that referenced this issue Jul 17, 2019
Release 0.8.1

* Fixed update_workbook endpoint (#454)
@shinchris
Copy link
Contributor

This has been fixed with the v0.8.1 release.

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

No branches or pull requests

2 participants
0