lscm "show attributes" subcommand shows "ambigious workspace" but "list stream" subcommand only shows one
![]()
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.
|
Accepted answer
![]()
Ralph Schoon (62.0k●3●36●43)
| answered May 22, 9:08 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER edited May 22, 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 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.
|
Comments
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.
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:
Convert your answer to a question and modify it to make it clearer. I am not going to discuss here.