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

Community site session details

Session Id :
Dynamics 365 Community / Forums / Finance forum / Error - BP Rule: DataE...
Finance forum

Error - BP Rule: DataEntitySecurityPrivilegeCheck

(0) ShareShare
ReportReport
Posted on by 417

Hi,

I am in the process of accessing Data entity through OData which is marked as Private. I done the below steps.

1) Create a copy of the entity by clicking on 'Duplicate in project'.

2) Rename the entity and set the property 'IsPublic' to Yes; Set value for Public Collection Name and Public Entity Name

3) Build the project.

During build below error occurred which I don't have any clue. Please help

Error BP Rule: DataEntitySecurityPrivilegeCheck:Path: ..... The data entity 'CITShipmentHeaderEntityCopy' is not assigned to a security privilege.

Regards,
Mani.

Categories:
I have the same question (0)
  • nmaenpaa Profile Picture
    101,160 Moderator on at
    RE: Error - BP Rule: DataEntitySecurityPrivilegeCheck

    The data entity must be associated with a security privilege.

    Look at the entity which you copied - right click - Find references and you will see what it looks like.

  • Reyaz@Alfa Profile Picture
    2 on at
    RE: Error - BP Rule: DataEntitySecurityPrivilegeCheck

    Hi Mani,

    Create view and maintain security privilege for the new data entity and assign it to entity.

  • Sukrut Parab Profile Picture
    71,699 Moderator on at
    RE: Error - BP Rule: DataEntitySecurityPrivilegeCheck

    If you create entity through wizard privileges are created automatically . Because you duplicated entity  , you have to create those manually and assign it to entity.

  • Pete Alberts Profile Picture
    3,542 on at
    RE: Error - BP Rule: DataEntitySecurityPrivilegeCheck

    Note that the "error" is not an error, but rather a BP Error. So technically you can still ignore it. (You can even build a deployable package.) Go to VS options -> Dynamics 365 -> build -> turn of BP checks. Then you will no longer get the "error".

    I find it a bit irritating that MS decided to make this a BP Error, I mean it is a BP violation, but not an error. MenuItems without privileges don't give you a BP error, but only a kind warning - which is a very helpful reminder. (end of rant)

    Turning of BP checks is not a good idea (I just mentioned it to explain). Like mentioned already - you can solve the issue by doing what the BP error is complaining about. Create a privilege and assign the entity to it. You will probably get another BP error after that, which you can fix by specifying the Grant property on the DE node in your privilege.

  • vannamani77 Profile Picture
    417 on at
    RE: Error - BP Rule: DataEntitySecurityPrivilegeCheck

    Thanks. I successfully exposed the entity now.

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard > Finance

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans