FortiGate
FortiGate Next Generation Firewall utilizes purpose-built security processors and threat intelligence security services from FortiGuard labs to deliver top-rated protection and high performance, including encrypted traffic.
ManoelMartins
Article Id 384789
Description

This article explains the 'entry not found in datasource' error that occurs when trying to create local-in-policy with an existing address object.

Scope

FortiOS.

Solution

A frequent mistake in creating an address object involves defining an associated interface as illustrated in the example below:

 

Address ObjectAddress Object

 

config firewall address
    edit "BR"
        set uuid 35875a32-2f19-51ef-5142-81269679329c
        set type geography
        set associated-interface "wan1"
        set color 15
        set country "BR"
    next
End

 

When trying to configure local-in-policy which references an interface (internal1) that is different from the associated-interface (wan1) on the firewall address (BR), the 'entry not found in datasource' error is shown on FortiGate CLI.

 

Error Local-in-policyError Local-in-policy

 

In order to resolve this error, either change the associated-interface from firewall address 'BR' or define the same interface as local-in-policy.

 

Related documents:

Local-in policy 

Address objects