tableau / server-client-python

A Python library for the Tableau Server REST API
https://tableau.github.io/server-client-python/
MIT License
659 stars 421 forks source link

Datasource / Workbook downloaded doesn't have spaces in filenames #1274

Open swaroop4593 opened 1 year ago

swaroop4593 commented 1 year ago

I'm using python 3.9 , tableauserverclient = v0.26 to download a datasource named "Athena datasource.tdsx"

But the downloaded file has the name "Athenadatasource.tdsx" without spaces.

Code: server.datasources.download(ds.id, output_dir, include_extract=False)

Cristian-CATO commented 9 months ago

Confirm having the same issue after I upgraded Tableau Server from v2022.1.14 to v2022.1.20 (to get the security patch at v2022.1.19), was using the API successfully all throughout last week until the upgrade on Friday and been failing since due to whitespaces been stripped from the downloaded datasource file names, haven't tested workbooks I assume same applies.

tableauserverclient==0.15.0 Python 3.6.9

Datasources before

'DS BI Applications.tdsx' 'DS BI Bundle Enrollments.tdsx' 'DS BI Certificate Enrollments.tdsx' 'DS BI Conference Enrollments.tdsx' 'DS BI Course Section Enrollments.tdsx' 'DS BI Facilities.tdsx' 'DS BI Instructors.tdsx' 'DS BI Program Offering Enrollments.tdsx' 'DS BI Revenue.tdsx'

Datasources current

DSBIApplications.tdsx DSBIBundleEnrollments.tdsx DSBICertificateEnrollments.tdsx DSBIConferenceEnrollments.tdsx DSBICourseSectionEnrollments.tdsx DSBIFacilities.tdsx DSBIInstructors.tdsx DSBIProgramOfferingEnrollments.tdsx DSBIRevenue.tdsx

annamalaikasi commented 9 months ago

I have the same issue as well. Is there a fix in place to get the spaces back?

bshea5 commented 3 months ago

I noticed the same issue when I upgraded tableau server client to 0.31. I was able to fix things on my end by downgrading to 0.30. I'm on Tableau Server 2023.1.11 (20231.24.0312.1557).

jorwoods commented 1 month ago

Tested with v0.33 and the issue appears to be resolved.