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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

Error: Security filter applied to Customer table when creating customer from template (BC SaaS)

(2) ShareShare
ReportReport
Posted on by 400

Hi everyone,

I'm encountering a security-related error in Dynamics 365 Business Central (SaaS) when trying to create a customer using a template. The system throws the following message:

"A security filter has been applied to table Customer. You cannot access records that are outside of this filter."

Context:

  • The error occurs when opening or using the Customer Card page, which tries to run the CreateCustomerFromTemplate function in Codeunit 1381 (Customer Templ. Mgt.).

I have a security filter for location MAIN on my customer table, then I have a customer template for customers at location MAIN.

My users can see the correct templates but as soon as they select the template, they get the above mentioned error.

Regards, 

I have the same question (0)
  • Suggested answer
    Mustafa Omerbegović Profile Picture
    1,473 Super User 2025 Season 2 on at
    Hello,
     
    It is obvious that you have some data in the template that has been filtered out by security filters.
    Please check which data you have within security filters, and then check your customer template and which data you populate from the template to the customer table.
    If you cannot make any conclusion, send us your customer template and permission set with a security filter, and we will try to find the issue within your data.
     
    For the test purpose, you can try to create a customer from that template, but the customer does not need to have that permission set with security filters. If it works for the user without security permissions, then we will be sure that there is a problem with permissions.
    After you create a customer entry, open the customer table and check all the fields that are inserted when you create a customer, and see if you have any matches with the security filtered fields.
     
    Greetings
  • Suggested answer
    YUN ZHU Profile Picture
    95,712 Super User 2025 Season 2 on at
    Please check your Security Filter settings first.
    More details:
    Dynamics 365 Business Central: Using Security Filters and SecurityFiltering Property
     
    Hope this helps.
    Thanks.
    ZHU
  • Suggested answer
    Sagar Dangar, MCP Profile Picture
    799 Super User 2025 Season 2 on at
    Hi,
     
    Please check other security filters applied except location MAIN

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,606

#2
YUN ZHU Profile Picture

YUN ZHU 931 Super User 2025 Season 2

#3
Jainam M. Kothari Profile Picture

Jainam M. Kothari 773 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans