Forum Discussion
Item missing from some commands
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.