Skip to main content
Ted
Staff
Staff
May 20, 2026

Technical Tip: Fails to add an empty policy

  • May 20, 2026
  • 0 replies
  • 17 views

Description

This article describes an issue on FortiProxy where selecting Insert Empty Policy in the policy list fails and displays a GUI error message 'Failed to save changes'.

Scope

FortiProxy.

Solution

When selecting Insert Empty Policy does not create a new policy. A GUI alert appears in the bottom-right corner with the message 'Failed to save changes', and no policy entry is appended to the policy list.


72a97766.png


+httpsd debug
[httpsd 2063 - 1775481258 info] fweb_debug_init[455] -- New POST request for "/api/v2/cmdb/firewall/policy" from "10.0.120.4:55519"
[httpsd 2063 - 1775481258 info] fweb_debug_init[457] -- User-Agent: "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/146.0.0.0 Safari/537.36"
[httpsd 2063 - 1775481258 info] fweb_debug_init[459] -- Handler "api_cmdb_v2-handler" assigned to request
[httpsd 2063 - 1775481258 info] api_store_parameter[332] -- add API parameter 'vdom' (type=string)
[httpsd 2063 - 1775481258 info] api_store_parameter[332] -- add API parameter 'srcintf' (type=array)
[httpsd 2063 - 1775481258 info] api_store_parameter[332] -- add API parameter 'dstintf' (type=array)
[httpsd 2063 - 1775481258 info] api_store_parameter[332] -- add API parameter 'schedule' (type=object)
[httpsd 2063 - 1775481258 info] api_store_parameter[332] -- add API parameter 'service' (type=array)
[httpsd 2063 - 1775481258 info] api_store_parameter[332] -- add API parameter 'srcaddr' (type=array)
[httpsd 2063 - 1775481258 info] api_store_parameter[332] -- add API parameter 'srcaddr6' (type=array)
[httpsd 2063 - 1775481258 info] api_store_parameter[332] -- add API parameter 'dstaddr' (type=array)
[httpsd 2063 - 1775481258 info] api_store_parameter[332] -- add API parameter 'dstaddr6' (type=array)[httpsd 2063 - 1775481258 info] api_store_parameter[332] -- add API parameter 'type' (type=string)
[httpsd 2063 - 1775481258 info] api_store_parameter[332] -- add API parameter 'status' (type=string)
[httpsd 2063 - 1775481258 info] api_store_parameter[332] -- add API parameter 'action' (type=string)
[httpsd 2063 - 1775481258 info] api_store_parameter[332] -- add API parameter 'q_path' (type=string)
[httpsd 2063 - 1775481258 info] api_store_parameter[332] -- add API parameter 'q_name' (type=string)
[httpsd 2063 - 1775481258 info] api_store_parameter[332] -- add API parameter 'policy-expiry' (type=string)
[httpsd 2063 - 1775481258 info] api_cmdb_request_init_by_path[1822] -- new CMDB query (path='firewall',name='policy')
[httpsd 2063 - 1775481258 info] handle_cli_req_v2[3395] -- new CMDB API request (vdom='root',user='admin')
[httpsd 2063 - 1775481258 info] apicmdb_v2_config[1441] -- editing CLI object (append=1, auto_key=1, path=firewall, name=policy, mkey=(null), flags=0)
[httpsd 2063 - 1775481258 info] api_set_cmdb_attr[2421] -- 'type'
[httpsd 2063 - 1775481258 info] api_set_cmdb_attr[2421] -- 'status'
[httpsd 2063 - 1775481258 info] api_set_cmdb_attr[2421] -- 'name'
[httpsd 2063 - 1775481258 info] api_set_cmdb_attr[2421] -- 'name'
[httpsd 2063 - 1775481258 info] api_set_cmdb_attr[2421] -- 'name'
[httpsd 2063 - 1775481258 info] api_set_cmdb_attr[2421] -- 'name'
[httpsd 2063 - 1775481258 info] api_set_cmdb_attr[2421] -- 'name'
[httpsd 2063 - 1775481258 info] api_set_cmdb_attr[2421] -- 'name'
[httpsd 2063 - 1775481258 info] api_set_cmdb_attr[2421] -- 'action'
[httpsd 2063 - 1775481258 info] api_set_cmdb_attr[2421] -- 'schedule'
[httpsd 2063 - 1775481258 info] api_set_cmdb_attr[2421] -- 'policy-expiry'
[httpsd 2063 - 1775481258 info] api_set_cmdb_attr[2421] -- 'name'
[httpsd 2063 - 1775481258 info] cmdb_save_with_children[280] -- appended main node (nret=-17, is_new=1)
[httpsd 2063 - 1775481258 error] cmdb_save_with_children[285] -- saving failed for main node: 'policy' (err=-17)
[httpsd 2063 - 1775481258 error] cmdb_commit_from_json[2186] -- error saving request object to CLI (-17)
[httpsd 2063 - 1775481258 error] apicmdb_v2_config[1477] -- error editing object (nret=-17)
[httpsd 2063 - 1775481258 warning] api_return_http_result[1304] -- API error -17 raised
[httpsd 2063 - 1775481258 info] handle_cli_req_v2[3425] -- returning to original vdom "root"
[httpsd 2063 - 1775481258 info] fweb_debug_final[319] -- Completed POST request for "/api/v2/cmdb/firewall/policy" (HTTP 500)


The issue that FortiProxy fails to add an empty policy will be fixed in the following versions.

  • v7.4.14 (scheduled to release in).

  • v7.6.7 (scheduled to release in).