I have very simple LWC inside Community page. Inside the page I have the following query, which seems to raise Internal Salesforce Error, but I don't understand why
This is the query
SELECT Survey.Name, CommunityId, CustomField1__c, CustomField2__c, InvitationLink, LastModifiedDat FROM SurveyInvitation WHERE CommunityId = :Network.getCommunityId()
This is the error message
An internal server error has occurred Error ID: 622456132-619398 (-1311433241)
This only happens with
SurveyInvitation object, when any other objects are queried, everything is OK.
Does anyone has a clue why this might happen?
How can we avoid it?
Is there any fix or workaround for this one?