Skip to main content
1-Visitor
August 24, 2016
Solved

How to safely remove the whole ModelTagVocabulary, all it's terms and references

  • August 24, 2016
  • 11 replies
  • 6242 views

Hi Guys,

I have rather unusual problem.

We do have a production instance version of 6.6.2.

There must have been a bug in that build, because back then it allowed me to create a ModelTagVocabulary named:

developers even though that there was already vocabulary named Developers (with different case).

Now I need to upgrade our TW version, and when I am doing export->import (via source control entities as well as with ThingWorx storage) I have an error:

Vocabulary developers already exists, but with different case. So I choose not to import that Vocabulary, but now every entity that contains that tag is not working.

Is there a safe way how to delete whole Vocabulary, all it's terms and references to those terms?

I need to clear my system before I do the export.

Thanks a lot

Tomas

Best answer by PaiChung

Easiest one to use would be SearchModelTags

This will return a list of Entities then step through each do RemoteTags and then AddTags or you can use SetTags which overwrites the original Tag(s)

11 replies

22-Sapphire I
August 24, 2016

In the version upgrades as you have noticed, now Thingworx treats developers and Developers as the same.

What I would recommend is to go back to the original and write a script that first finds all the entities tagged and then it removes them and adds the proper non-interfering tag.

You can use a variety of the search functions to search for tagged items.

tcoufal1-VisitorAuthor
1-Visitor
August 24, 2016

I have never worked with search functions. Would you mind to give me a hand?

Thanks a lot for that info though.

PaiChung22-Sapphire IAnswer
22-Sapphire I
August 24, 2016

Easiest one to use would be SearchModelTags

This will return a list of Entities then step through each do RemoteTags and then AddTags or you can use SetTags which overwrites the original Tag(s)