KNOWLEDGE BASE

Error - 400011 (Bad Request There was a problem publishing the file ) While publishing the workbook using tableau server client python 0.29


Published: 25 Jan 2024
Last Modified Date: 30 Jan 2024

Issue

When publishing the workbook, you receive the error:

400011: Bad Request
There was a problem publishing the file 

Environment

  • Tableau Server 2023.1.8
  • Tableau Server Client (Python)
  • Amazon Linux 2

Resolution

Add the parameter as_job=true in order to increase the limit for workbook upload.

 
destination = TSC.DatasourceItem(
project_id=dexdatasourcepid,
name=pd["name"],
)
jobid = (
serverD.datasources.publish(
destination,
file,
"Overwrite",as_job=True
)
)
print("Waiting for job...")
jobid = serverD.jobs.wait_for_job(jobid)
print("Job finished succesfully")

Cause

This occurs due to the size of the workbook. If a user attempts to publish a workbook larger than 64MB, they will encounter this issue.
The maximum upload size allowed is 64MB in a single request.
Did this article resolve the issue?