web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Nested LookUp record d...
Power Apps
Answered

Nested LookUp record doesn't load only on prod app

(0) ShareShare
ReportReport
Posted on by 29
Hi,
 
In my application in the editor the code below works correctly and loads all data, while on prod the RegisterRecord do not load.
 
participant column from DB_Invitations is People type column

I managed to solve the problem by flattening the record to a few needed columns, however I would like to know why the third level nesting works in the editor but not in prod?
 
ClearCollect(
        colTeams,
        AddColumns(
            AddColumns(
                DB_Teams As Team,
                Members,
                AddColumns(
                    Filter(DB_Invitations;team_id = Team.ID) As Member,
                    RegisterRecord,
                    LookUp(DB_Registers;CreatedBy.Email = Member.participant.Email)
                ),
                DisciplineRecord;LookUp(colDisciplines;name = Team.discipline),
                Owner;Team.CreatedBy.DisplayName
            ),
            AcceptedMembers;CountIf(Members;RegisterRecord.team_id = team_id),
            MaxPlayers;DisciplineRecord.players + DisciplineRecord.substitutes,
            IsFull;CountIf(Members,RegisterRecord.team_id = team_id) >= DisciplineRecord.players + DisciplineRecord.substitutes
        )
    )
 
 
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    153,084 Most Valuable Professional on at
    Hi @BacKan,
    I would suggest that that you are pushing the boundaries of Power Apps filters with that level of nesting and that is probably the reason for the outcome you receiving.
    Without your data and then building a model, it would be very difficult for me to get the ouput exactly correct, however I will give you a structure that may solve this for you 
    With(
       {
          _Members,
          AddColumns(
             DB_Invitations,
             participantEmail, 
             participant.Email,
             RegisterRecord, 
             LookUp(
                DB_Registers, 
                CreatedBy.Email = participant.Email
             )
          )
       },
       ClearCollect(
          colTeams,
          AddColumns(
             DB_Teams As Team,
             Members,
             Filter(
                _Members, 
                team_id = Team.ID
             ),
             DisciplineRecord,
             LookUp(
                colDisciplines, 
                name = Team.discipline
             ),
             Owner,
             Team.CreatedBy.DisplayName,
             AcceptedMembers,
             CountIf(
                Filter(
                   _Members, 
                   team_id = Team.ID
                ),
                RegisterRecord.team_id = Team.ID
             ),
             MaxPlayers,
             LookUp(
                colDisciplines, 
                name = Team.discipline
             ).players +
             LookUp(
                colDisciplines, 
                name = Team.discipline
             ).substitutes,
             IsFull,
             CountIf(
                Filter(
                   _Members, 
                   team_id = Team.ID
                ),
                RegisterRecord.team_id = Team.ID
             ) >= 
             LookUp(
                colDisciplines, 
                name = Team.discipline
             ).players +
             LookUp(
                colDisciplines, 
                name = Team.discipline
             ).substitutes
          )
       )
    );
     
    Please click Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it a Like.
    MVP (Business Applications)    Visit my blog Practical Power Apps    LinkedIn   
  • BacKan Profile Picture
    29 on at
    Moving LookUp to With function allowed me to keep the nested data as a record instead of text, even on prod. Thank you!

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard