Troubleshooting Tip: How to troubleshoot 'invalid template assignment' error
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]
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:
Take the configuration backup of FortiManager.
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.
The assignment can be done after the CDB check.
