Activity is already set in view

why the error Activitity "" is already set in view "" might occur when using IBM Rational ClearCase to checkin an element in a UCM view on Microsoft Windows, Linux and UNIX.

Attempts to checkin a file in a UCM view results in the following error:


Activity "" is already set in view ""


Where view is not the view of the user currently attempting the checkin.



Cause

A possible cause is that the activity is already set to another view.

Note:
An activity can only be set to one view at a time.

Here is an example scenario that could explain how this problem occurs:
  • User "A" sets the view (View1) to activity "AAA" and checks out a file.
  • User "A" then sets the view (View 1) to a different activity "BBB".
  • User "B" from a different view (View 2) then selects the available activity "AAA" and checks out a file.
  • User "A" then attempts to checkin the file checked out using activity "AAA".
  • This activity is currently set to User "B"s view; hence the error.


Resolving the problem

You must find the user with the view set to the activity (for example, User "A" needs to find User "B") and unset the activity.

Note: You can unset from an activity using the ClearCase Explorer. From the view the activity is currently set to > My Activities > Deselect the checkbox for the desired activity.

To unset from an activity on the command line: cleartool setact -view -none

The activity will now be available for the other view to complete the checkin.to another view.

No comments:

Post a Comment