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
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()
The text was updated successfully, but these errors were encountered:
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
Uh oh!
There was an error while loading. Please reload this page.
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:
The text was updated successfully, but these errors were encountered: