Skip to main content

Notifications

Power Pages - General Discussions
Answered

Error after setting up N:N relationship entity permission

(0) ShareShare
ReportReport
Posted on by 23

Hello Masters,

 

I have a problem and would like to check if this is my mistake or some bug on the portal.

I have created a new relationship in Dataverse (Accounts N:N Contacts). The idea is that the contact logged into the portal would see all the components related to the group of accounts he is associated with (e.g. Devices, Cases).

The configuration was working perfectly until I brought a second entity permission to also allow the out-of-the-box relationship between the Device and Account tables.

Now, I get a generic error on the devices list ("We're sorry, but something went wrong. Please try again, and if this persists, contact the website administrator.") and the following error when using the Portal API:

{"error":{"code":"9004010D","message":"Common Data Service error occurred.","cdscode":"0x0","innererror":{"code":"0x0","message":"Syntax error at position 145 in '(_msdyn_account_value ne null and msdyn_account/kvs_account_partner/any(contact1:contact1/contactid eq 'MY_CONTACTID'))) or (_msdyn_account_value eq 'PARENT_ACCOUNTID')'."}}}

 

Did you ever face a similar issue?

Categories:
  • Verified answer
    Felipe Silva Profile Picture
    Felipe Silva 23 on at
    Re: Error after setting up N:N relationship entity permission

    Actually, I am just using an entity list to retrieve records, this API call is being built in Background by the Portal Engine.

    I overcame the issue, by making sure that the same user contact would not use the two entity permissions at the same time. 

  • Fubar Profile Picture
    Fubar 7,675 on at
    Re: Error after setting up N:N relationship entity permission

    To state the obvious it is telling you there is a syntax error.  So you need to look at the query you are making (as a possible culprit, if you look at the brackets in the return message, there is and extra closing bracket [no opening bracket] before the 'or' )

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,422

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,711

Leaderboard