Open anth-dinosaur opened 11 months ago
Thanks for opening this issue. I'm also hitting the same problem after recently upgrading to 0.28.
Using the as_job=True parameter in .publish will allow for successful publishing even in the latest version but from what I see catching errors in async is difficult which is a downside of this approach.
I have come across this issue while trying to Overwrite a non-existant workbook (mode=TSC.Server.PublishMode.Overwrite). By changing to mode=TSC.Server.PublishMode.CreateNew it fixed the issue.
Describe the bug When publishing a workbook, I am receiving the following error:
But, the workbook is not being currently published or modified. I can run the same code on v0.28 and get the error and then immediately run the v0.25 version and get the expected result.
Note: the workbook does actually seem to be published to Tableau Server, even though an error is being generated: I do see an updated modified time on Tableau Server. It appears that v0.28 makes an async request that it initially thinks fails, so it retries and gets the "currently being published" message, and then the original asnyc request returns successfully. See logs at the bottom.
Versions Details of your environment, including:
The test workbook I am publishing here is very small, only 137kb.
To Reproduce Publish workbook as below:
Results Running the above with tableauserverclient v0.28 results in:
after downgrading to v0.25:
Then, I get expected results:
Logger Logs (omitted beginning sign-in parts for clarity)
v0.25
v0.28