web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Supply chain | Supply Chain Management, Commerce
Suggested Answer

Restriction of warehouse using XDS

(0) ShareShare
ReportReport
Posted on by 327

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.

4617.pastedimage1624281974090v2.png

below is the policy 

5074.pastedimage1624282072429v3.png

constrained table properties 

7331.pastedimage1624282125960v4.png

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.

I have the same question (0)
  • Suggested answer
    André Arnaud de Calavon Profile Picture
    303,679 Super User 2026 Season 1 on at

    Hi Kartheek,

    I do assume you also contacted me via LinkedIn? If so, have you read my blog about this topic?

    Extensible Data Security examples - Secure by warehouse (dynamicspedia.com)

    In the technical details, I explained that you can't constrain the tables InventDim and InventSum. Otherwise, you will indeed get the runtime error as you shared above. 

    As resolution, you can have the tables part of the policy, but not set to be contrained.

  • karthik143 Profile Picture
    327 on at

    HI Andre,

    thanks for your immediate response. 

    yes I only contacted through LinkedIn. I have changed my query like below is the snapshot.

    2313.png

    in range i am passing current user. Below are the properties for policy.

    0576.PNG6215.png8206.png

    in this case I am not getting any error while creating record. But user is able to see all warehouse details. Data is not filtering in punchline.

    thanks in advance.

    Regards,

    Kartheek.

  • Suggested answer
    André Arnaud de Calavon Profile Picture
    303,679 Super User 2026 Season 1 on at

    Hi Kartheek,

    Instead of the Operation for InsertUpdateDelete, you have to use Select or AllOperations.

    WIth InsertUpdateDelete, a user can see all records, but can't create new records, update or delete them. During the write validation, the user will get an error.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Supply chain | Supply Chain Management, Commerce

#1
Mallesh Deshapaga Profile Picture

Mallesh Deshapaga 254

#2
Laurens vd Tang Profile Picture

Laurens vd Tang 188 Super User 2026 Season 1

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 131 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans