Skip to main content
March 15, 2023
Question

cli: op inject: could not resolve item UUID

  • March 15, 2023
  • 2 replies
  • 1100 views

cli 2.14.0

Issue: When using op inject to include an item by reference, item names must be unique, even across vaults.

Example:
Vault: Work
Item Name: AWS
Reference: op://Work/AWS/secrets/secret_key

Vault: Private
Item Name: AWS
Reference: op://Private/AWS/secrets/secret_key

Calling op inject -i config.tpl -o config.txt returns: [ERROR] 2023/03/15 09:07:06 could not resolve item UUID for item AWS

Resolution:
Vault: Work
Item Name: AWS-work
Reference: op://Work/AWS-work/secrets/secret_key

Vault: Private
Item Name: AWS-personal
Reference: op://Private/AWS-personal/secrets/secret_key


1Password Version: 8.10.1
Extension Version: 4.7.5.90
OS Version: macOS 12.6.3
Browser:_ Chrome

2 replies

June 26, 2023

Also hit this issue.

Strange that op read works fine, but not op inject.

June 27, 2023

Actually - on further investigation, the issue occurred even with different item names.
Disabling the op command caching fixed the issue for me.

--cache=false