Skip to main content

Notifications

Customer experience | Sales, Customer Insights,...
Suggested answer

Virtual Entity connecting with OData giving error 0x80044822 Invalid Query

Posted on by 75

Hello All, 

I am trying to connect the virtual entity with Odata and have created the virtual entity connection and configured and created the virtual entity but when I am trying to browse the virtual entity its showing error 0x80044822 Invalid Query. Any idea why this error is happening and any idea how we can check the error details. 

  • Athul MT Profile Picture
    Athul MT 75 on at
    RE: Virtual Entity connecting with OData giving error 0x80044822 Invalid Query

    Hello Everyone,

    I have configured the Odata with virtual entity and the data is getting displayed in Grid but when I am opening any virtual entity record it's showing the  Record is unavailable (The requested record was not found or you do not have sufficient permissions to view it)

    The issue first it was not even getting the data is because the returning of count and single record method was not enabled in the API. when I added a method in the API and enabled to return the count it started showing in the Grid still having issue when opening the record.

    With Id = 0181b9f6-f90e-4120-8dc7-de6434ea9828 Does Not Exist

    at Microsoft.Crm.Extensibility.OrganizationSdkServiceInternal.Execute(OrganizationRequest request, InvocationContext invocationContext, CallerOriginToken callerOriginToken, WebServiceType serviceType, Boolean checkAdminMode, ExecutionContext executionContext, Dictionary`2 optionalParameters) at Microsoft.Crm.Extensibility.OData.CrmODataExecutionContext.Execute(OrganizationRequest request) at Microsoft.Crm.Extensibility.OData.CrmODataServiceDataProvider.RetrieveEntityWithRelatedRecords

  • Athul MT Profile Picture
    Athul MT 75 on at
    RE: Virtual Entity connecting with OData giving error 0x80044822 Invalid Query

    Thanks for the reply I had checked the limitation and tried debugging couldn't find anything much but by referring to the link I mentioned  I have tried changing the API as mentioned in the .net configuration on the blog and it was able to retrieve the set of records and show in CRM but when I am opening the record its throwing null reference error. The major issue was with the single result query and count option.  please go through the link to understand it in detail 

    www.mindovermachines.com/.../\

  • Suggested answer
    Bipin D365 Profile Picture
    Bipin D365 28,964 Super User 2024 Season 1 on at
    RE: Virtual Entity connecting with OData giving error 0x80044822 Invalid Query

    Hi,

    You can use Browser Network tab(F12) to check the traffic and see the detailed error.

    You could check the request and response to see additional details about the exception.

    If found helpful, Please mark my answer verified.

  • Suggested answer
    RE: Virtual Entity connecting with OData giving error 0x80044822 Invalid Query

    Hello Athul,

    You can check if you are hitting any of the limitation listed in below article -

    docs.microsoft.com/.../get-started-ve

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans