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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / Error after setting up...
Power Pages
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:
I have the same question (0)
  • Fubar Profile Picture
    8,459 Super User 2025 Season 2 on at

    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' )

  • Verified answer
    Felipe Silva Profile Picture
    23 on at

    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. 

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Pages

#1
Suriyanarayanan V Profile Picture

Suriyanarayanan V 37

#2
Fubar Profile Picture

Fubar 32 Super User 2025 Season 2

#3
oliver.rodrigues Profile Picture

oliver.rodrigues 26 Most Valuable Professional

Last 30 days Overall leaderboard