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 / Something went wrong e...
Power Apps
Answered

Something went wrong error message when trying to view data from virtual table

(0) ShareShare
ReportReport
Posted on by 938
 
 
trying to create a virtual connection to a view via SQL Server connection. I'm able to create it but then I get this error. Can anyone help? View is very simple just 4 columns 
 
 
I have the same question (0)
  • Suggested answer
    MS.Ragavendar Profile Picture
    7,431 Super User 2026 Season 1 on at
     
    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.   
     
    MS Learn
     
    ✅If this helped, please Accept as Solution to help others ❤️ A Like is appreciated 🏷️ Tag @MS.Ragavendar for follow-ups.
     
  • ctedesco3307 Profile Picture
    938 on at
    @MS.Ragavendar  Thank you for responding - there are no null values and I have VendorID as the primary key. Do I need to make a GUID as the PK? TY  
  • Verified answer
    MS.Ragavendar Profile Picture
    7,431 Super User 2026 Season 1 on at
     
    You mentioned VendorID as PrimaryKey from the screenshot the datatype might be double or nvarchar while dataverse requires a unique identifier of type uniqueidentifier (GUID) to act as the Primary Key. 
     
    Primary Column Requirement
    Every Dataverse table must have a Primary Name column (typically a text field such as VendorName). Although you already have VendorName, the issue can occur if the mapping logic attempts to use VendorId as both the unique identifier and the primary name. This conflict can cause the mapping process to fail.
     
    How to Fix the SQL View
    Update your SQL view to explicitly include a GUID column. If your source table doesn’t already contain a GUID, you can generate a stable one by deriving it from the VendorId (for example, using a hash). This ensures the value remains consistent and prevents mapping errors.
     
     
    ✅If this helped, please Accept as Solution to help others ❤️ A Like is appreciated 🏷️ Tag @MS.Ragavendar for follow-ups.

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 424

#2
WarrenBelz Profile Picture

WarrenBelz 355 Most Valuable Professional

#3
11manish Profile Picture

11manish 290

Last 30 days Overall leaderboard