1 Reply Latest reply on Sep 15, 2016 6:09 AM by Damien Lesage

    REST API: Issues with "Delete Tag from Workbook"?

    Damien Lesage

      Hello,

       

      This is not really a question but maybe someone has encountered a similar issue, which I'd be pleased to learn about.

       

      I want to use the API to add and delete tags to workbooks. This use case should work with the API, but I found 2 issues when using the Delete Tag From Workbook for Tableau Server 9.2.0 (maybe it's fixed in later version). The most relevant topic I could find is the following: Re: REST API - Add Tag to workbook, but it's not quite the same.

       

      1. You can't delete a tag containing a dot "." (?)

       

      You can add tag containing a dot "." manually or using the API call "Add Tags to Workbook. When it comes to remove such tag, you'll see the following response:

       

      <?xml version="1.0" encoding="UTF-8"?> 
      <tsResponse 
      xmlns="http://tableau.com/api" 
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://tableau.com/api http://tableau.com/api/ts-api-2.1.xsd"> 
      <error code="404007"> 
      <summary>Resource Not Found</summary> 
      <detail>Tag 'reviewer:u' could not be found.</detail> 
      </error> 
      </tsResponse> 
      

       

      My tag label was "reviewer:u.name". It has been truncated here.

       

      2. You can't delete a tag created manually using Tableau Server UI (?)

       

      Ok, this one looks weird (hopefully I didn't do something wrong after a tiring day).

       

      The experience is simple.

       

      Create a tag using the API. Then, delete it. No trouble here (well, if there is no dot in your tag).

       

      Now, create the tag manually on Tableau Server. Try to delete it with the API and you should get the following response:

       

      <tsResponse xmlns="http://tableau.com/api" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://tableau.com/api http://tableau.com/api/ts-api-2.1.xsd">
        <error code="404007">
          <summary>Resource Not Found</summary>
          <detail>Tag 'reviewer:u-name' could not be found.</detail>
        </error>
      </tsResponse>
      

       

      My tag exists, so it should be able to delete it. I can even get it by calling the API URI "Query Workbook".

       

       

      Anyone had the same issues? If you try to reproduce this use case, can you see the same behavior?

       

      Damien.