Skip to main content
Chuk23
Staff
Staff
May 27, 2026

Troubleshooting Tip: How to troubleshoot 'invalid template assignment' error

  • May 27, 2026
  • 0 replies
  • 126 views

Description

This article describes the issue of being unable to assign FortiGates to firmware templates in FortiManager due to a deleted firmware template still being present. The article provides a step-by-step solution to resolve this issue.


Scope


FortiGate, FortiManager.


Solution


When trying to assign a Firmware Template to FortiGate, FortiManager may show the following error:

invalid template assignment - conflicting template assignment scope: device device_name, vdom root, firmware template [(null)] and [new_firmware_template_name]


f2be6fb2.jpg


This error is caused by an assigned and then deleted Firmware Template. The reference may still exist in the FortiManager database.


To resolve the issue of being unable to assign FortiGates to firmware templates in FortiManager, follow these steps:

  1. Take the configuration backup of FortiManager.

  2. Run the following command on the CLI by specifying the ADOM name.

diagnose cdb check policy-package adom_name


 3. Type 'y' to fix the scope-related database issues.

  1. The assignment can be done after the CDB check.