FortiManager
FortiManager supports network operations use cases for centralized management, best practices compliance, and workflow automation to provide better protection against breaches.
farhanahmed
Staff
Staff
Article Id 413825
Description

This article describes how to troubleshoot when the installation fails with a validation error after assigning a Static Route Template to a device:

 

Commit failed:
error -999 - You cannot have duplicated routes ........ - (in Template <Static_Static_Route_Template>)

Scope FortiManager.
Solution

The issue occurs when a device already has a static route configured, and a matching route is later pushed through a Static Route Template. Instead of recognizing the existing configuration, the template attempts to add the route again as a new entry, which results in an error.

 

For Example, the screenshot below shows the error because a new route '3' is being added to the FortiGate, which is matching the existing route '2'.

 

temP-error.png

 

Checking the Device Database for the FortiGate: Device Manager -> Device & Groups -> Managed FortiGates -> Select the FortiGate -> Network -> Static Routes: FortiGate has the Route 2.

 

route_check.png

 

Checking the Static Route Template assigned to the FortiGate: FortiManager -> Device Manager -> Provisioning Templates -> Static Route -> Select the Template having issue: Route is matching with the existing route in FortiGate.

 

existing_route_in_fortigate.png

 

To fix the issue. Under the Static Route Template, edit the route giving error -> Under Advanced Options -> Set the '_seq-num' value to match the sequence number of the route already present in the device, in this case '2', select OK to save.

 

select_ok_to_Save.png

 

If the value of '_seq-num' is set to '0' or is empty, then Static Route Template will add a new route; if it matches the existing route number of the FortiGate, it will overwrite that route.

 

Try installing again, no validation error now:

 

error_now.png

 

Related document:

Static route templates