It's all about the answers!

Ask a question

lscm "show attributes" subcommand shows "ambigious workspace" but "list stream" subcommand only shows one


bruce liu (111) | asked May 21 '23, 11:43 p.m.
converted to question May 22 '23, 5:52 a.m.

When I run this command:
lscm list stream -r https://jazz.mywebsite.net/ccm -n $streamName
It only shows one result,
(3645) "My Stream" (3771) "Owner1"

but when I run this command with the same stream name:
lscm --show-alias n --show-uuid y show attributes -r https://jazz.mywebsite.net/ccm -w $streamName
It gives me the following error:
Possible matches:
  (_5qnSgP_tEeayxKgb_4K78Q) "My Stream" Owner1
  (_50t7wMhSEeyDtaOYN0bZwQ) "My Stream" Owner2
My Stream
  Error code: 9
  Error message: Ambiguous workspace "My Stream"
Problem running 'show attributes':
The properties of one or more workspaces were not retrieved.

Expected behavior:
'show attributes' subcommand should return one result as well.

This is my version:
Build Id: EWM-CLIENT-I20220731-0234
Version: 7.0.2

Thanks.



Comments
Ralph Schoon commented May 22 '23, 3:02 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

The question is 10 years old and was already accepted as correctly answered. Do not post questions as answers to old questions. Also consider reading the additional answer on how to proceed in Shashikants answer.  


bruce liu commented May 22 '23, 3:49 a.m.

Sorry about it, should I create a new question about it? How to link new question with this topic? I tried using the 4 digits, it shows this error:


3771
  Error code: 25
  Error message: Unmatched workspace "3771"
Problem running 'show attributes':
The properties of one or more workspaces were not retrieved.

This is my command:
lscm --show-alias n --show-uuid y show attributes -r https://jazz.mywebsite.net/ccm -w 3771
Thanks.


Ralph Schoon commented May 22 '23, 5:41 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

Convert your answer to a question and modify it to make it clearer. I am not going to discuss here.  

Accepted answer


permanent link
Ralph Schoon (63.1k33646) | answered May 22 '23, 9:08 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
edited May 22 '23, 9:09 a.m.

 Workspace/Stream names are not unique. Each element has however a unique UUID and in the SCM command line there is an artificial alias (4 digit) that is unique. It is better to use the alias in subsequent calls and not the stream name.

This was already answered here: https://jazz.net/forum/questions/98278/scm-share-command-shows-ambigious-workspacestream-but-ui-only-shows-one/98608 where you answered initially with your question.

Please also be aware that your visibility might be limited. You might not be able to see every item with the same name. The error message provides you with the different UUIDs of the two workspaces. 

I would suggest you get the alias for the item you want to investigate and then use that alias instead of the name.

Note that the SCM command line was redesigned some years back and old examples might not be accurate. 

See https://www.ibm.com/docs/en/elms/elm/7.0.2?topic=reference-source-control-command-line for the current reality.

Ralph Schoon selected this answer as the correct answer

Comments
bruce liu commented May 23 '23, 3:40 a.m.

Thanks for the reply. 

I tried it again, I realized the "3771" alias in my previous comment was wrong, it is the alias for the owner, but not the stream.
Once I use the correct alias for the stream, I can get expected result via this command:
lscm --show-alias n --show-uuid y show attributes -r https://jazz.mywebsite.net/ccm -w 3645 

Thanks.

Your answer


Register or 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.