question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Problem with changing tags which contains '.' - 404007: Resource Not Found

See original GitHub issue

Describe the bug

Hi!

I tried to change tags in a workbook.

My tags are as following: my_tag.foo

I cannot change it because i’m getting: 404007: Resource Not Found.

NOTE: When i was trying to use code below with tags without a dots it worked. It only don’t works for tags with dot.

It’s quite huge problem because I need to replace this dots in almost 400 workbook tags 😢

I found something related like #675 or #578 but i did not get much from it.

Versions

Details of environment:

  • Tableau Server Version: 2021.4.2 (20214.21.1217.2252) 64-bit Linux
  • Python 3.9.7
  • tableauserverclient 0.17.0.

To Reproduce

Here’s code:

# here i just use methods which allows me to get to the site, importing TSC
from login_to_client import get_auth, get_server
import tableauserverclient as TSC
# getting to the site
tableau_auth = get_auth(site)
server = get_server()
with server.auth.sign_in(tableau_auth):
    
    # getting list with all workbooks on the server
    all_workbooks , pagination_item = server.workbooks.get()
    
    # grab first workbook
    workbook = all_workbooks[0]
    workbook_tags = workbook.tags
    
    # logging info about tags
    myloger.info(workbook_tags)
    
    try:
        # i try to set tags to empty set
        workbook.tags = set()
        # updating workook
        server.workbooks.update(workbook)
        myloger.info('updating has been finished')
    except Exception as e:
        myloger.error(e)

This code works without any problem when there’s no dot in the tag name.

The problem occurs when there’s a dot.

Results

MyLogger[9716] INFO {'my_tag.foo'}

MyLogger[9716] ERROR 
404007: Resource Not Found
Tag 'my_tag' could not be found.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
bcantonicommented, Mar 14, 2022

The internal team at Tableau is fixing this issue with the REST API (issue number 1379992).

1reaction
bcantonicommented, Feb 24, 2022

I reported this internally, so let’s reopen this bug until we can get a proper fix.

In the meantime, the workaround above sounds like it works for anyone who runs into this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

(Python - tableauserverclient-api) Problem with changing tags ...
Hi! I tried to change tags in a workbook. My tags are as following: my_tag.foo. I cannot change it because i'm getting: 404007:...
Read more >
tableau-api - Problem with changing tags which contains '.' - 404007 ...
I tried to change tags in a workbook. My tags are as following: my_tag.foo. I cannot change it because i'm getting: 404007: Resource...
Read more >
API reference - Tableau Open Source
tags, The tags (list of strings) that have been added to the data source. ... 404018 Resource Not Found, Raises an error if...
Read more >
Insufficient data for image pdf error - Weebly
404 404007 Tag not found The tag in the URI doesn't exist for the specified workbook. 405 405000 Invalid request method Request type...
Read more >
Which of the following statements most correctly describes ...
For potential bugs in the Tableau REST API code itself, and for any issue with ... 404, 404000, Resource not found, The site...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found