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

 

This article describes how to tackle the issue when metadata variables do not accept a space in the value.

 

metadata variable with space value.png

 

It will throw a copy error as per below:

 

copy error gui.png

Scope

 

FortiManager v7.4 and v7.6.

 

Solution

 

Perform a debug to understand the error better:

 

diag debug application securityconsole 255

diag debug enable

 

Example output:

 

2025-02-26 19:23:12 Syntax error(max entry. object: system sdwan members interface. detail: table limit. solution: limit is 1).

2025-02-26 19:23:12 __add_reference_core,2537: soid=6361, mobj=sys_sdwan_members.interface, vpn fail.
2025-02-26 19:23:12 > add reference fail: command(set system sdwan members.3:interface vpn 1) detail(datasrc invalid)2025-02-26 19:23:12 SECURITY_CONSOLE: (1) [Tiara-kvm19[copy] root] Commit failed: datasrc invalid. object: system sdwan members.3:interface. detail: vpn 1. solution: datasrc invalid (reason:none)

 

This is an example where the metadata variables are used on the SD-WAN Template, where 'vpn 1' is the value for $(tunnel_int).

The interface is the IPSec tunnel, where initially created before this.

 

metadata variable value in sdwan template.png

 

This will cause problems in creating a new interface tunnel interface since unable to edit it, which involves so many things that can consume hours of maintenance window to plan this. 

unable to edit existing tunnel interface.png

 

The feasible solution for this is to change the metadata variable to use double quotation marks in the value. 

 

double quotation marks in value.png

 

Export the metadata variables into CSV or JSON if abundant changes are involved and import it back.

 

export metadata variable.png