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