Dear All,
i have requirement to restrict warehouse based on user. For that i have created custom table to hold warehouse details and user details. Below is the query for that.

below is the policy

constrained table properties

the issue is i am able to restrict the data for view purpose.
but when i create record i am getting an error like
Cannot create a record in Inventory dimensions (InventDim). Dimension number: #0000001000011218, #0000001000011218. The record already exists.
any solution for above issue.
thanks in advance.
regards,
Kartheek.