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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Error when trying to r...
Power Apps
Unanswered

Error when trying to retrieve data from the network: Sql error: Generic SQL error. CRM ErrorCode: -2147204784 Sql ErrorCode: -2146232060 Sql Number: 207 When using Lookup Field to Virtual Entity

(0) ShareShare
ReportReport
Posted on by 156

Hi currently we have a Power Platform environment linking to a D365 FO environment, I we are using some D365 FO entities in our Canvas App via Virtual Entity, the virtual entity we are using from D365 FO is Employee V2. On Dataverse, we have 2 tables which are "Leave Request" and "Leave Transaction" with the relationship 1:M

MinhPham96_0-1705564876006.png

In the "Leave Request" table, we created a Lookup field that Lookup to the Employee V2 Virtual Entity

MinhPham96_1-1705564930829.png

As soon as we created this lookup field, our code in the Canvas app started getting this error: "Error when trying to retrieve data from the network: Sql error: Generic SQL error. CRM ErrorCode: -2147204784 Sql ErrorCode: -2146232060 Sql Number: 207". This error only happens for "Leave Transaction" table. For example, here we try to filter "Leave Transaction" and store the result in a collection.

MinhPham96_2-1705565022213.png

We already tried to remove the table from the Canvas app datasource and add it back, but could not solve the issue. The issue only be resolved if we remove the Lookup field to Employee V2 Virtual Entity in "Leave Request" table.

Categories:
I have the same question (0)

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 326 Most Valuable Professional

#2
11manish Profile Picture

11manish 168

#3
sannavajjala87 Profile Picture

sannavajjala87 75 Super User 2026 Season 1

Last 30 days Overall leaderboard