IBM Support

cleartool rmactivity: Error: Activity "make_changes@\projects" is set in view "<no-tag-in-region>"

Troubleshooting


Problem

This technote explains how to resolve an error, cleartool rmactivity: Error: Activity "make_changes@\projects" is set in view "", that can occur when attempting to remove an IBM Rational ClearCase Unified Change Management (UCM) activity.

Symptom

A UCM activity cannot be removed while it is set in a view. Usually trying to do so will result in the error:

cleartool: Error: Activity "activity:make_changes@\projects" is set in view "view-tag"

which allows for a resolution with the command: cleartool setact -view view-tag -none

However, under some circumstances "view-tag" is replaced by "<no-tag-in-region>" as seen in the error below. This technote discusses these circumstances.

> cleartool rmact make_changes@\projects
Remove activity "make_changes@\projects"?  [no] y
cleartool: Error: Activity "make_changes@\projects" is set in view "<no-tag-in-region>".
cleartool: Error: Unable to remove activity "make_changes@\projects".

Cause


The project VOB records the fact that the activity is associated with a view, however, the UUID of the view cannot be resolved to a view tag.

Possible root causes:

  • The UCM environment is replicated with MultiSite and the view exists at a different site.
  • The UCM environment exists in multiple ClearCase regions (Windows and UNIX registry regions for example) and the view is not tagged in the region of the host where the rmactivity command is entered.
  • The view has been removed, however, the reference to it in the project VOB did not get removed.

Diagnosing The Problem

To see if the view could be at a different replica site do the following:


cleartool describe activity:make_changes@\projects
cleartool lshistory activity:make_changes@\projects

The activity can be set only at the site where it is mastered, thus, for the view to be at a different site the activity must be mastered at a different site or must have changed mastership (chmaster).


If this is not the case, you must get the UUID of the view:

Windows example:

Z:>cleartool dump activity:make_changes@\projects | findstr /b /c:"user="


user=105  view=b737159a.1013412d.9b93.b3:61:bb:37:64:2e

On UNIX/Linux use " | grep '^user='"

The UUID can then be converted to a host:path

Z:>cleartool desc -l vob:\projects | findstr b737159a.1013412d.9b93.b3:61:bb:37:64:2e
    cc701cli:c:\ClearCase_Storage\views\user_InitialProject_int.vws [uuid b737159a.1013412d.9b93.b3:61:bb:37:64:2e]

You can look for tags in different regions by doing the following:

> cleartool lsregion
> cleartool lsview -uuid b737159a.1013412d.9b93.b3:61:bb:37:64:2e -region nix_region

Resolving The Problem

If the view still exists, then at the appropriate site and region do the following:

> cleartool setact -view view-tag -none

If the view has been removed, then to remove the references from the project VOB do the following:

> cleartool rmview -uuid b737159a.1013412d.9b93.b3:61:bb:37:64:2e  -vob \projects

[{"Product":{"code":"SSSH27","label":"Rational ClearCase"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"UCM: Activity","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"7.0;7.0.1;7.1","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
23 June 2018

UID

swg21407932