Getting started with 1Password for your growing team, or refining your setup? Our Secured Success quickstart guide is for you.
Forum Discussion
jamesarosen
9 months agoNew Contributor
Item missing from some commands
I recently moved an item into a new vault (called MyVault below). op read works for this item, but op inject only works for a single value at a time, and only if that value was just read via o...
jamesarosen
9 months agoNew Contributor
I did some more digging and discovered that I had two versions of MyVault/MyItem
: one live version and one archived. If I unarchive the archived one, I get a new error message:
[ERROR] 2024/12/30 07:21:47 could not resolve item UUID for item MyItem: More than one item matches "MyItem". Try again and specify the item by its ID:
* for the item "MyItem" in vault MyVault: d5lfmhvqvimg525dfhg6bu72v4
* for the item "MyItem" in vault MyVault: 6wvpfiaaqrqcvhyo7bbzx35zxi
Permanently deleting the archived copy resolves the issue.
This is definitely a bug. At minimum, the CLI should give a better error message, e.g.
[ERROR] 2024/12/30 07:21:47 could not resolve item UUID for item MyItem: More than one item matches "MyItem". Try again and specify the item by its ID:
* for the item "MyItem" in vault MyVault: d5lfmhvqvimg525dfhg6bu72v4
* for the archived item "MyItem" in vault MyVault: 6wvpfiaaqrqcvhyo7bbzx35zxi
It might also make sense to automatically prefer non-archived items to archived ones. The app itself won't show the archived one unless I specifically search for it in the Archive. There isn't even a hint in the main search that there are other matches elsewhere. That makes the UI and the CLI work at odds.