You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Workbook Update Fails in Tableau Server versions prior to Materialized Views #454
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_idpublished_workbook.show_tabs=True# Added to try to override; didn't helppublished_workbook.materialized_views_config=Noneworkbook=server.workbooks.update(published_workbook)
server.auth.sign_out()
changed the title [-]Workbook Update Fails in Tableau Serversions prior to Materialized Views[/-][+]Workbook Update Fails in Tableau Server versions prior to Materialized Views[/+]on Jul 1, 2019
Activity
[-]Workbook Update Fails in Tableau Serversions prior to Materialized Views[/-][+]Workbook Update Fails in Tableau Server versions prior to Materialized Views[/+]Fix update_workbook endpoint to address #454
Fix update_workbook endpoint to address #454 (#461)
Fix update_workbook endpoint to address #454 (#461)
Merge pull request #462 from tableau/release-0.8.1
shinchris commentedon Jul 17, 2019
This has been fixed with the v0.8.1 release.
Fix update_workbook endpoint to address tableau#454 (tableau#461)
Fix update_workbook endpoint to address tableau#454 (tableau#461)
Merge pull request tableau#462 from tableau/release-0.8.1