Skip to content

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

Closed

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.

Activity

  1. jorwoods commented on Jan 30, 2026

    @jorwoods
    Contributor

    Encapsulating in double quotes fixes the issue. E.G new_tag = '"Yearly Sales"'

  2. added 4 commits that reference this issue on Jun 18, 2026
    1e2b187
    19f2897
    1f57bd0
    6b98d3c
  3. added a commit that references this issue on Jun 19, 2026
    0098271
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions