Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

specifying stream by uuid for compare and lock commands sometimes fails with "invalid item type; expected stream, received workspace". why?

 D:\snaps\workspace\Build-AF_xt-rtc>scm list components  -r "https://feiclm.w2k.feico.com/ccm" -u hbobuild -P *****   -j af_xt_Build

{

    "workspaces": [

        {

            "components": [

                {

                    "name": "AUTOMATION_FRAMEWORK_PRODUCT_INFO",

                    "uuid": "_u0abcRj_EeKrjsmMOIX_gQ"

               },

                {

                    "name": "AUTOMATION_FRAMEWORK_SHELL",

                    "uuid": "_4-2vwQikEeKrjMmMOIX_gQ"

                },

                {

                    "name": "AUTOMATION_FRAMEWORK",

                    "uuid": "_-j3hwPzCEeGrjMmMOIX_gQ"

                },

                {

                    "name": "XT_AUTOMATION_FRAMEWORK",

                    "uuid": "_b-Y38AipEeKrjMmMOIX_gQ"

                }

            ],

            "flow-target": {

                "name": "automation_framework_xt",

                "type": "STREAM",

                "url": "https:\/\/feiclm.w2k.feico.com\/ccm\/",

                "uuid": "_coEvYBkWEeKrjsmMOIX_gQ"

            },

            "name": "af_xt_Build",

            "url": "https:\/\/feiclm.w2k.feico.com\/ccm\/",

            "uuid": "_vR6iIHLYEeKhPvIBHetUrA"

        }

    ]

}

 

D:\snaps\workspace\Build-AF_xt-rtc>"C:\Program Files (x86)\IBM\Rational Team Concert Client for Microsoft Visual Studio IDE\3rd Party\scmtools\eclipse\scm.exe" lock release -r "https://feiclm.w2k.feico.com/ccm"  -s "_coEvYBkWEeKrjsmMOIX_gQ" -c "_u0abcRj_EeKrjsmMOIX_gQ" -R "/project.build.xml"

 

D:\snaps\workspace\Build-AF_xt-rtc>"C:\Program Files (x86)\IBM\Rational Team Concert Client for Microsoft Visual Studio IDE\3rd Party\scmtools\eclipse\scm.exe" lock acquire -r "https://feiclm.w2k.feico.com/ccm"  -s "_coEvYBkWEeKrjsmMOIX_gQ" -c "_u0abcRj_EeKrjsmMOIX_gQ" -R "/project.build.xml"

Problem running 'lock acquire':

Invalid item type for "_coEvYBkWEeKrjsmMOIX_gQ". Expected type "stream" but specified item was of type "workspace". Try 'scm help lock acquire' for more information.

I've seen this happen with both scm lock acquire, scm lock release, and scm compare, and it is driving me nuts :)  It works if I specify the stream by name, but I'd rather use the UUID as names are somewhat mutable.

0 votes


Accepted answer

Permanent link
This is a bug in the command line tool,  I hit it once myself.  It is currently tracked by defect 250337

The work around mentioned in the defect comment 2 is to find the ~/.jazz-scm/aliases file under your home directory and remove the entry in it for that workspace.

If you are able to reproduce this reliably, it would be a good idea to comment in the defect with your steps.
David Lafreniere selected this answer as the correct answer

1 vote

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 1,202
× 66
× 35
× 35
× 11
× 3

Question asked: Jun 28 '13, 4:45 p.m.

Question was seen: 5,137 times

Last updated: Jul 04 '13, 9:32 a.m.

Confirmation Cancel Confirm