Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-11682

Importing nested templates fails using API

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Workaround proposed
    • Icon: Major Major
    • None
    • 3.2.3
    • API (A)
    • None

      When importing multiple nested templates using API, import fails with error

      code: -32602
      message: Invalid params.
      data: Incorrect item key "foo.bar1" provided for trigger expression on "Template Child".
      

      Import using browser is sucessful.

      Steps to reproduce:

      1. create new (parent) template
      2. add new item to (parent) template
      3. create new (child) template
      4. link parent template to child template
      5. add new item to (child) template
      6. create trigger in child template using child and parent item(s)
      7. export both templates (in same xml)
      8. import xml using API

      In (more complex) case import import using API fails with different error:

      data: -32500
      message: Application error.
      data: Item "Item name" on "Template My Template": application "App" does not exist.
      

            Unassigned Unassigned
            akete Aleš Kete
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: