[ZBX-21651] Import template with previous valuemap version fails Created: 2022 Sep 15  Updated: 2022 Oct 08

Status: Confirmed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 6.0.8
Fix Version/s: None

Type: Incident report Priority: Major
Reporter: Antons Sincovs Assignee: Zabbix Development Team
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: XML File Template SNMP Generic.xml     XML File Template_SNMP_Data_Domain.xml     PNG File value-map-import-template-failed.png    

 Description   

Steps to reproduce:

  1. Try to import a template (take the attached Template SNMP Generic.xml and then Template_SNMP_Data_Domain.xml for example) created in Zabbix version 5.0 or older (when value maps were defined in Administration → General)
  2. Uncheck "Value mappings" related checkboxes in the "Import" dialogue
  3. Verify that there are no value maps mentioned in the imported template entities (listed as "added")

Result:
Import fails with "Cannot find value map..." error

Expected:
Successful import without value maps 



 Comments   
Comment by Antons Sincovs [ 2022 Sep 15 ]

The workaround is to replace all occurrences of non-empty value map tags in the template source with an empty tag.

For example:

<valuemap>
    <name>Data Domain DiskState</name>
</valuemap> 

to

<valuemap/> 

Import the template and then manually add value maps on the template level

Generated at Sun Apr 06 10:42:20 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.