Skip to content

add_tags() treats spaces in a tag as delimiter resulting in multiple tags #1738

@AverageJoeGuy-tech

Description

@AverageJoeGuy-tech

Describe the bug
server.workbooks.add_tags() treats spaces in the tag as a delimiter creating multiple tags

Versions
Tableau Server: 2025.1.10
Python version: 3.12.4
TSC version : 0.38

To Reproduce
workbook_id ="abc123"
workbook= server.workbooks.get_by_id(workbook_id)
tag1 = "tagOne"
tag2 = "tag One"
server.workbooks.add_tags(workbook, tag1)
#adds single tag "tagOne"
server.workbooks.add_tags(workbook, tag2)
#adds 2 tags "tag" and "One"

Results
Spaces in a tag creates multiple tags using add_tags(). Spaces are allowed in tags directly in the UI so this creates incorrect tags. ie. "Yearly Sales" will be "Yearly" and "Sales" instead of a single tag.

NOTE: Be careful not to post user names, passwords, auth tokens or any other private or sensitive information.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions