Given the following template that has been imported:
template: 'Template A'
name: 'Template A'
name: 'Test item'
params: 'return "a";'
When you change the key for the item, and try to import it again, Zabbix returns the error:
Two items ("Test item" and "Test item") cannot populate one host inventory field "Name", this would lead to a conflict.
I would expect it to be possible to change the key of an item that has an inventory field selected.