Skip to main content

Notifications

Community site session details

Community site session details

Session Id : QX4EW2yEQx8mkSZiNaYw8a
Power Apps - Microsoft Dataverse
Unanswered

Canvas App Not Getting Related Record in Play Mode

Like (1) ShareShare
ReportReport
Posted on 17 Mar 2025 00:21:14 by 1,879
Hello. I have a canvas app with a gallery connected to a table called Task Responses. That table has a many to one relationship with another table called Task Versions. So each Task Version can have many Task Responses but each Task Response only has one Task Version.
 
In the Task Responses gallery I need to display some information about the related Task Version and also use it for some formatting and conditional visibility of some controls within the gallery. In the editor this works perfectly well, but when I play the app as an ordinary user all the values from the related Task Version come back blank/empty.
 
I tried turning off the explicit column selection in the app settings (retired) but the app won't load properly like that, presumably due to the amount of data it's trying to fetch - I get SQL errors. In any case I don't want to implement retired features in a production app.
 
How can I get around this issue? One of my options is to create formula columns in Task Responses to lookup the relevant record and display values from there as text and numeric columns, but this seems like a lot of work and will make for quite a wide table. Is there another way of simply having the app behave the same way in play mode as in the editor studio?
  • WillPage Profile Picture
    1,879 on 17 Mar 2025 at 20:16:13
    Canvas App Not Getting Related Record in Play Mode
    I figured out a fix for this. It's not enough to have the related table referenced as a property of ThisItem in a galley, e.g ThisItem.Relationship.Column, the related table needs to be directly referenced by some control on the screen for it to work. In my case I put a button on the screen with Refresh('Task Versions') as the OnSelect then set the Y value to be off the edge of the visible area. You don't need to ever click the button - just the fact the screen has a control on it that directly references the data source is enough to allow the gallery items to load their related records from the same table.
     
    This only happens in the player, not in the studio so I believe this is a bug.
  • Michael E. Gernaey Profile Picture
    36,281 Super User 2025 Season 1 on 17 Mar 2025 at 05:15:23
    Canvas App Not Getting Related Record in Play Mode
     
    So first we need to figure out what the actual issue is. There aren't enough details here.
     
    Please share the details about the Tables (relative record counts between them), how many columns/fields per are we talking.
    Also, please share your expressions, the flow of your app as it loads, where the data retrieval happens, are you using collections etc.
     
    Since its an App, we would need to see details related to its design and running, as well as whatever SQL errors you are talking about, please share them.
     
    Also, look at using Monitor, for a User to see what, if any errors are happening when they load it versus you. I am guessing you don't have many records associated, and possibly real users do, that or its a different environment and something else is happening.
     
    Try to think about what you would share to someone since they cannot see your screen/app etc :-) and share that with us so we can help.
     
    Cheers
     

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

Thomas Rice – Community Spotlight

We are honored to recognize Thomas Rice as our March 2025 Community…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,513 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,479 Most Valuable Professional

Leaderboard

Featured topics