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 from a V...
Power Apps
Answered

Virtual Table from a View - Something went wrong error

(1) ShareShare
ReportReport
Posted on by 875
Hello- Trying to create a virtual table from a view and I get this - The view has these data types. Can I create a virtual table from this? Thank you inadvance
 
 
 
 
 
I have the same question (0)
  • Verified answer
    Pstork1 Profile Picture
    69,475 Most Valuable Professional on at
    All the columns in your view can be null. I think a virtual table requires at least one column that can be the unique key and that can't be null.  Try modifying the view to add the ID field from the original table and see if it doesn't work then.  Check this paragraph on mapping in the Virtual table documentation.  Get started with virtual tables (entities) (Microsoft Dataverse) - Power Apps | Microsoft Learn

    ----------------------------------------------------------------------------------
    If this Post helped you, please click "Does this answer your question" and give it a like to help others in the community find the answer too!

    Paul Papanek Stork, MVP
    Blog: https://www.dontpapanic.com/blog
     
  • Suggested answer
    11manish Profile Picture
    2,293 on at
    Technically, yes, you can create a virtual table from that view, but there are a few adjustments you need to make to the SQL view first to satisfy the Dataverse Virtual Table Provider.

    Based on your SQL schema, here are the likely culprits:
     
    Missing GUID column: 
    Dataverse requires a unique identifier of type uniqueidentifier (GUID) to act as the Primary Key. Your VendorId is currently an nvarchar(58). Dataverse cannot use a string as the internal system ID for a row.
     
    The Primary Column:
    Every Dataverse table needs a "Primary Name" column (usually a string like VendorName). While you have VendorName, if the mapper is trying to use VendorId for both the ID and the Name, it may crash.
     
    How to Fix the SQL View
    You should update your dbo.vw_APVendors view to include a GUID. If your source table doesn't have one, you can "spoof" one using a hash of the VendorId so it remains consistent.
  • Suggested answer
    Haque Profile Picture
    3,202 on at
    Hi @ctedesco3307
     
    Yes, you can create a virtual table from this view, provided you configure the virtual table entity in Dataverse to map the columns properly and designate VendorId as the primary key. 
     
     

    The view you targeted, columns are:

    • VendorId (nvarchar(58), null)

    • VendorGroup (nvarchar(30), null)

    • VendorName (nvarchar(255), null)

    • Source (varchar(10), null)

    These are all text types, which are compatible with Dataverse text fields. The key point is whether VendorId can serve as a unique identifier for the virtual table. If VendorId is unique and stable, you can map it as the primary key for the virtual table.

     

    I am sure some clues I tried to give. If these clues help to resolve the issue brought you by here, please don't forget to check the box Does this answer your question? At the same time, I am pretty sure you have liked the response!

     

  • Haque Profile Picture
    3,202 on at
    Hi @ctedesco3307,
     
    I was following on this, any resolution?

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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 834

#2
Valantis Profile Picture

Valantis 533

#3
Haque Profile Picture

Haque 410

Last 30 days Overall leaderboard