Troubleshooting Tip: FortiManager failed to push policy package with error 'fortiextender ‘XXX-YYY’ is not assigned to device'
Description
This article describes how to fix an issue where FortiManager failed to push a policy package with the error 'fortiextender ‘XXX-YYY’ is not assigned to device'.
Scope
FortiManager.
Solution
Installing a policy package to the device results in the following error:
vdom copy error: detail: - invalid template assignment - prop(fortiextender): fortiextender 'XXX-YYY' is not assigned to device.

To fix this, run the following command:
diagnose cdb check policy-packages <policy_package_name>
After running the command, the issue no longer appears.
Troubleshooting:
The following commands can be run on FortiManager CLI to debug the installation.
diagnose debug application securityconsole 255
diagnose debug enable
Related article:
