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 / Virtual Table does not...
Power Apps
Unanswered

Virtual Table does not display a record

(0) ShareShare
ReportReport
Posted on by 11

                             

I created Virtual Table in Dataverse using SQL connection to Serverless SQL Pool in Azure Synapse.

According to the following schema:

Vlad_Kv_2-1699461304212.png

 

Virtual Table has numeric not null ID in and primary text field in Serverless SQL Pool.

GUID is generated from numeric not null ID in Dataverse, like 00000001-0000-0000-0000-000000000000, 00000002-0000-0000-0000-000000000000, ... 

 

Records are displayed in advanced find.

Vlad_Kv_4-1699462257810.png

But, when I select a specific record the following error appears: 

APIM request was not successful : StatusCode : BadRequest, Reason : Primary key is compound by 0 elements but 1 were provided., Response from APIM: { "status": 400, "message": "Primary key is compound by 0 elements but 1 were provided.\r\nclientRequestId: 

 

 

 

I have the same question (1)
  • TaraAssadipour Profile Picture
    79 on at

    @Vlad_Kv Could you fix this issue? I'm facing similar problem.

  • Vlad_Kv Profile Picture
    11 on at

    Hi,

    This is a limitation in Dataverse. A virtual table must have a numeric primary key constraint, which you cannot create in a serverless SQL pool. When you create a table, it seems to work, but when you try to access a record, it fails with the above message.

    I believe this issue has been fixed in Microsoft Fabric when the virtual table is based on a Delta table in the Fabric Lakehouse.

    However, in general, you need to create a table in a SQL database with a numeric primary key constraint.

    Hope this helps.

  • TaraAssadipour Profile Picture
    79 on at

    @Vlad_Kv Thanks for your reply. This is very confusing. Because based on Microsoft documents the primary key for a virtual table does not need to be strictly numeric. It can be a GUID, an integer, or a string that can be parsed as a GUID: https://learn.microsoft.com/en-us/power-apps/maker/data-platform/limits-tshoot-virtual-tables?tabs=sql

     

  • Vlad_Kv Profile Picture
    11 on at

    I see. I've tried using GUID, but it didn't work.

    It only worked for me if a table had a unique constraint.

    Maybe during creation, the system cannot evaluate all the rows in the table, and there is no guarantee that your primary key is unique.

  • TaraAssadipour Profile Picture
    79 on at

    Thanks @Vlad_Kv . My data resides in Fabric Lakehouse and it seems PKs are not supported in Lakehouse at this point 😞

  • TaraAssadipour Profile Picture
    79 on at

    TaraAssadipour_0-1717612826351.png

     

  • Vlad_Kv Profile Picture
    11 on at

    Please check this post: Re: Fabric Virtual Table in Power App - Microsoft Fabric Community

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 519 Most Valuable Professional

#2
11manish Profile Picture

11manish 489

#3
Haque Profile Picture

Haque 327

Last 30 days Overall leaderboard