Skip to main content

Hi all, I am trying to publish a workbook using snowflake Datasource with OAuth connection. I am setting oauth_flag = True and embed_credentials= True but it seems both are not working together at the same time. Also, adding connection_username but I am getting 400 response.

This is the response content :<Response [400]>

 

b'{"error":{"summary":"Bad Request","detail":"There was a problem publishing the file \'29003:ca5af2de7d4d45488135608dd1248e75-1:0\'.","code":"400011"}}'

Parameters are as follows:

response = conn.publish_workbook(

 

workbook_file_path= metadata_df.filepath,

 

workbook_name=metadata_df.workbook_name,

 

project_id=metadata_df.workbook_project_id,

 

show_tabs_flag= bool(metadata_df.show_tabs),

 

oauth_flag=True,

 

hide_view_flag=True,

 

workbook_views_to_hide= views_to_hide,

 

server_address='xyzz',

 

connection_username='abcd',

 

embed_credentials_flag=True )

 

This works fine if I remove embed_credentials_flag parameter

7 个回答
  1. 2022年7月12日 21:34

    @Jigyasa Kohli​ 

    Hi, could you try removing the server_adress='xyzz' from the instruction:

    @Jigyasa Kohli​ Hi, could you try removing the server_adress='xyzz' from the instruction:⌗publish_workbook If this post resolves the question, would you be so kind tohttps://help.tableau.com/current/api/rest_api/en-us/REST/rest_api_ref_workbooks_and_views.htm⌗publish_workbook

     

    If this post resolves the question, would you be so kind to "Select as Best"?. This will help other users find the same answer/resolution and help community keep track of answered questions. Thank you.

     

    Regards,

     

    Diego Martinez

    Tableau Visionary and Forums Ambassador

0/9000