cancel
Showing results for 
Search instead for 
Did you mean: 
Reply

Can you create lookup columns on Virtual Tables in Dataverse?

Hello,

 

This is specifically for Virtual Tables in Dataverse. I'm asking because I've found mixed information in my research. I've been having issues creating lookup columns on my virtual tables and might need a sanity check.

 

Is it possible to do this if you don't have a lookup column in the source table? For context, my approach is to use some SQL Tables as my source data, porting them in as Virtual Tables, then building out the relationships/lookup columns in Dataverse so that our users can work with the data in a model-driven app. I can get as far as creating the column in Dataverse (by creating the Relationship), but it doesn't work when I try to populate that look-up field (error message at bottom).

 

Additional details I've found:

 

"Lookup" was under the section of "supported columns" earlier this year, but something must have changed recently. It looks like as of 09/27/2023 lookup columns are no longer supported for virtual tables?

Limitations and troubleshooting virtual tables with Power Apps - Power Apps | Microsoft Learn

 

Data types not support for virtual tables:

Files and attachments

Image

Lookup

 

(I tried old guides like this with a basic set-up and couldn't get it working: Setting up relationships with virtual tables with Power Apps - Power Apps | Microsoft Learn )

 

----------------

 

To test, I dumbed it down to a very basic dataset in SharePoint and used that to test the functionality of lookup columns on Dataverse Virtual Tables. I still can't get it working properly. 


I attached my very basic set-up. It seems as though it won't let me write to the lookup column since it doesn't exist in the source data. I've tried it every which way with this very basic data set (and other data sets) but it still won't work.

 

I'm all ears if anyone has any suggestions. We might just scrap the virtual tables and go with a traditional integration approach. Without functional relationships and lookup columns across Virtual Tables, the entire notion of Virtual Tables seems meaningless for most use cases. Thanks in advance for any words of wisdom.

Error: There was an error in saving this record. APIM request was not successful : StatusCode : BadRequest, Reason : Bad Request, Response from APIM: {"status': 400, "message": "The passed-in field could not be
found

5 REPLIES 5
ChrisPiasecki
Most Valuable Professional
Most Valuable Professional

Hi @axskifree,

 

Lookups are definitely supported in virtual Tables. The limitation you're referring to is that it won't be automatically mapped using the virtual table connector provider wizard - -- you need to manually define the Lookup as described in the 2nd link you mentioned.

 

Did you make sure to specify the correct column schema name in the External Name for the Dataverse table you are adding the Lookup for?

 

Would you mind posting a screenshot of the relationship page?

 

---
Please click Accept as Solution if my post answered your question. This will help others find solutions to similar questions. If you like my post and/or find it helpful, please consider giving it a Thumbs Up.

---
Please click Accept as Solution if my post answered your question. This will help others find solutions to similar questions. If you like my post and/or find it helpful, please consider giving it a Thumbs Up.
Chris

Thanks for the response. Yes, I'm attempting to manually define the relationship with the understanding it won't carry over automatically from the source data (aka the SharePoint Lists). "Title" is the Primary Name Column on both tables and "ID" is the Primary Key (both of which are auto set by the wizard).

I've tried it a handful of different ways (with the external name field, etc.) I've attached some screenshots.

 

I think this might be a limitation with SharePoint as a data source for connecting virtual tables via relationships/lookups since the ID and Title are auto set, although I can't get it working with a SQL DataSource either. The CRUD operations work fine, but I can't for the life of me get lookups to work across virtual tables (all created the same way, same data source, etc.)

 

About ready to pull the plug 😓

 

 

2023-11-07_08-22-23.jpg

2023-11-07_08-27-25.jpg

2023-11-07_08-29-13.jpg

2023-11-07_08-29-28.jpg

2023-11-07_08-20-18.jpg

     

   

Capture1.PNG



Update: Officially pulling the plug. Can confirm the Virtual Table to Virtual Table lookup columns do not work as advertised. I've worked with several Microsoft consultants at this point and no one can get it working.

 

I suggest seeking a work around like using a standard table to build lookup columns to your virtual tables. The default documentation suggests that you need to delete the column you wish to use as a lookup and recreate it, but this approach does not work (nor do any other approach). When you create the relationship, the "new" column fails to recreate.

Setting up relationships with virtual tables with Power Apps - Power Apps | Microsoft Learn

I think this probably worked back in January but I wouldn't waste your time on it at this point.

Hinzzy
New Member

Hello,
I'm currently trying to do the same thing. I have 2 virtual tables from SQL and want to create a child-parent nested grid in Model Driven. I did the relationship and it created the look-up column. Currently what I found out is that if you populate the lookup column with values that can be found in your Parent table (I will call Parent table the table without the lookup column and Child table the one with the lookup column) then it will actually work. My current question is how to move the data from an existing column in the Child table to the lookup column from the same child table. If I manage that then it should properly do the relationship.

Oualid20011
Regular Visitor

Have you guys found any solution for this we are struggling to with this issue even if the lookup is populated but the related columns can not be shown

Helpful resources

Announcements

Community will be READ ONLY July 16th, 5p PDT -July 22nd

Dear Community Members,   We'd like to let you know of an upcoming change to the community platform: starting July 16th, the platform will transition to a READ ONLY mode until July 22nd.   During this period, members will not be able to Kudo, Comment, or Reply to any posts.   On July 22nd, please be on the lookout for a message sent to the email address registered on your community profile. This email is crucial as it will contain your unique code and link to register for the new platform encompassing all of the communities.   What to Expect in the New Community: A more unified experience where all products, including Power Apps, Power Automate, Copilot Studio, and Power Pages, will be accessible from one community.Community Blogs that you can syndicate and link to for automatic updates. We appreciate your understanding and cooperation during this transition. Stay tuned for the exciting new features and a seamless community experience ahead!

Summer of Solutions | Week 4 Results | Winners will be posted on July 24th

We are excited to announce the Summer of Solutions Challenge!   This challenge is kicking off on Monday, June 17th and will run for (4) weeks.  The challenge is open to all Power Platform (Power Apps, Power Automate, Copilot Studio & Power Pages) community members. We invite you to participate in a quest to provide solutions in the Forums to as many questions as you can. Answers can be provided in all the communities.    Entry Period: This Challenge will consist of four weekly Entry Periods as follows (each an “Entry Period”)   - 12:00 a.m. PT on June 17, 2024 – 11:59 p.m. PT on June 23, 2024 - 12:00 a.m. PT on June 24, 2024 – 11:59 p.m. PT on June 30, 2024 - 12:00 a.m. PT on July 1, 2024 – 11:59 p.m. PT on July 7, 2024 - 12:00 a.m. PT on July 8, 2024 – 11:59 p.m. PT on July 14, 2024   Entries will be eligible for the Entry Period in which they are received and will not carryover to subsequent weekly entry periods.  You must enter into each weekly Entry Period separately.   How to Enter: We invite you to participate in a quest to provide "Accepted Solutions" to as many questions as you can. Answers can be provided in all the communities. Users must provide a solution which can be an “Accepted Solution” in the Forums in all of the communities and there are no limits to the number of “Accepted Solutions” that a member can provide for entries in this challenge, but each entry must be substantially unique and different.    Winner Selection and Prizes: At the end of each week, we will list the top ten (10) Community users which will consist of: 5 Community Members & 5 Super Users and they will advance to the final drawing. We will post each week in the News & Announcements the top 10 Solution providers.  At the end of the challenge, we will add all of the top 10 weekly names and enter them into a random drawing.  Then we will randomly select ten (10) winners (5 Community Members & 5 Super Users) from among all eligible entrants received across all weekly Entry Periods to receive the prize listed below. If a winner declines, we will draw again at random for the next winner.  A user will only be able to win once overall. If they are drawn multiple times, another user will be drawn at random.  Individuals will be contacted before the announcement with the opportunity to claim or deny the prize.  Once all of the winners have been notified, we will post in the News & Announcements of each community with the list of winners.   Each winner will receive one (1) Pass to the Power Platform Conference in Las Vegas, Sep. 18-20, 2024 ($1800 value). NOTE: Prize is for conference attendance only and any other costs such as airfare, lodging, transportation, and food are the sole responsibility of the winner. Tickets are not transferable to any other party or to next year’s event.   ** PLEASE SEE THE ATTACHED RULES for this CHALLENGE**   Week 1 Results: Congratulations to the Week 1 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Community MembersNumber of SolutionsSuper UsersNumber of Solutions @anandm08  23 @WarrenBelz  31 @DBO_DV  10 @Amik  19 AmínAA 6 @mmbr1606  12 @rzuber  4 @happyume  7 @Giraldoj  3@ANB 6 (tie)   @SpongYe  6 (tie)     Week 2 Results: Congratulations to the Week 2 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Community MembersSolutionsSuper UsersSolutions @anandm08  10@WarrenBelz 25 @DBO_DV  6@mmbr1606 14 @AmínAA 4 @Amik  12 @royg  3 @ANB  10 @AllanDeCastro  2 @SunilPashikanti  5 @Michaelfp  2 @FLMike  5 @eduardo_izzo  2   Meekou 2   @rzuber  2   @Velegandla  2     @PowerPlatform-P  2   @Micaiah  2     Week 3 Results: Congratulations to the Week 3 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge.   Week 3:Community MembersSolutionsSuper UsersSolutionsPower Apps anandm0861WarrenBelz86DBO_DV25Amik66Michaelfp13mmbr160647Giraldoj13FLMike31AmínAA13SpongYe27     Week 4 Results: Congratulations to the Week 4 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge.   Week 4:Community MembersSolutionsSuper UsersSolutionsPower Apps DBO-DV21WarranBelz26Giraldoj7mmbr160618Muzammmil_0695067Amik14samfawzi_acml6FLMike12tzuber6ANB8   SunilPashikanti8

Check Out | 2024 Release Wave 2 Plans for Microsoft Dynamics 365 and Microsoft Power Platform

On July 16, 2024, we published the 2024 release wave 2 plans for Microsoft Dynamics 365 and Microsoft Power Platform. These plans are a compilation of the new capabilities planned to be released between October 2024 to March 2025. This release introduces a wealth of new features designed to enhance customer understanding and improve overall user experience, showcasing our dedication to driving digital transformation for our customers and partners.    The upcoming wave is centered around utilizing advanced AI and Microsoft Copilot technologies to enhance user productivity and streamline operations across diverse business applications. These enhancements include intelligent automation, AI-powered insights, and immersive user experiences that are designed to break down barriers between data, insights, and individuals. Watch a summary of the release highlights.    Discover the latest features that empower organizations to operate more efficiently and adaptively. From AI-driven sales insights and customer service enhancements to predictive analytics in supply chain management and autonomous financial processes, the new capabilities enable businesses to proactively address challenges and capitalize on opportunities.    

Updates to Transitions in the Power Platform Communities

We're embarking on a journey to enhance your experience by transitioning to a new community platform. Our team has been diligently working to create a fresh community site, leveraging the very Dynamics 365 and Power Platform tools our community advocates for.  We started this journey with transitioning Copilot Studio forums and blogs in June. The move marks the beginning of a new chapter, and we're eager for you to be a part of it. The rest of the Power Platform product sites will be moving over this summer.   Stay tuned for more updates as we get closer to the launch. We can't wait to welcome you to our new community space, designed with you in mind. Let's connect, learn, and grow together.   Here's to new beginnings and endless possibilities!   If you have any questions, observations or concerns throughout this process please go to https://aka.ms/PPCommSupport.   To stay up to date on the latest details of this migration and other important Community updates subscribe to our News and Announcements forums: Copilot Studio, Power Apps, Power Automate, Power Pages

Users online (836)