Created on
02-26-2025
02:08 AM
Edited on
03-14-2025
09:02 AM
By
mdeparisse_FTNT
Description
This article describes how to tackle the issue when metadata variables do not accept a space in the value.
It will throw a copy error as per below:
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.
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.
The feasible solution for this is to change the metadata variable to use double quotation marks in the value.
Export the metadata variables into CSV or JSON if abundant changes are involved and import it back.