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 / Multiple levels of man...
Power Apps
Answered

Multiple levels of many to one expansion aren't supported - Not seeing the issue

(0) ShareShare
ReportReport
Posted on by 8

Hi All,

 

Have the below in an OnStart rule for my canvas app.  varSurveyInstanceId is set by a parameter which is optional.

tiddlyplatypus_0-1635982494587.png

 

If(

     IsBlank(varSurveyInstanceId),
          Set(
               varEmployee,
               LookUp(
                    Employees,
                    Email = currentUser.Email
               )
     );
     Set(
          varSurveyInstanceId,
               LookUp(
                    SurveyInstances,
                    EEID = varEmployee.EEID,
                    SurveyInstance
               )
     );

     Set(
          varSurveyInstance,
          LookUp(
               SurveyInstances,
               SurveyInstance = varSurveyInstanceId
          )
     ),
// Work backwards from valid surveyInstance to get user
     Set(
          varSurveyInstance,
          LookUp(
               SurveyInstances,
               SurveyInstance = varSurveyInstanceId
          )
     );
     Set(
          varEmployee,
          LookUp(
               Employees,
               EEID = varSurveyInstance.EEID
          )
     )
);

 

I'm continuously getting the error "Multiple levels of many to one expansion aren't supported" on this block of code, and I'm not certain why or how to further troubleshoot.  I'm using variables to store intermediate values like the SurveyInstance, and EEID is a proper column in the SurveyInstance table to try and avoid this scenario.

 

Any suggestions on where I may be expanding a many to one relationship more than once?

tiddlyplatypus_0-1635982341149.png

tiddlyplatypus_1-1635982396948.png

 

 

 

Categories:
  • WarrenBelz Profile Picture
    156,921 Most Valuable Professional on at

    Hi @tiddlyplatypus ,

    I have one initial question - is varSurveyInstanceId set before this code? If so how is it set?

  • Verified answer
    tiddlyplatypus Profile Picture
    8 on at

    It's set with the following:

     

    Set(
    varSurveyInstanceId,
    GUID(
    LookUp(
    ROSS_HR_APPRAISAL,
    CaseID = varCaseID,
    SurveyInstance
    )
    )
    );

     

    This issue actually seems to have resolved itself.   I closed the editor to retrieve the app ID to log a microsoft ticket.  When I reopened the canvas app, I noticed my rule had changed itself quite a bit:

     

    If(
    IsBlank(varSurveyInstanceId),
    Set(
    varEmployee,
    LookUp(
    Employees,
    crad7_email = currentUser.Email
    )
    );
    Set(
    varSurveyInstanceId,
    LookUp(
    SurveyInstances,
    crad7_eeid = varEmployee.crad7_eeid,
    crad7_surveyinstanceid
    )
    );
    Set(
    varSurveyInstance,
    LookUp(
    SurveyInstances,
    crad7_surveyinstanceid = varSurveyInstanceId
    )
    );
    ,
    // Work backwards from valid surveyInstance to get user
    Set(
    varSurveyInstance,
    LookUp(
    SurveyInstances,
    crad7_surveyinstanceid = varSurveyInstanceId
    )
    );
    Set(
    varEmployee,
    LookUp(
    Employees,
    crad7_eeid = varSurveyInstance.crad7_eeid
    )
    )
    );

     

    It seems that it flipped everything to system names when it re-loaded, and I no longer see the error.


    Bizarre.

  • WarrenBelz Profile Picture
    156,921 Most Valuable Professional on at

    Hi @tiddlyplatypus 

    Glad you got it sorted - I have closed the post.

     

    (Nice handle by the way - we saw some up at Broken River near Eungella recently)

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

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 234 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 207 Most Valuable Professional

#3
timl Profile Picture

timl 122 Super User 2026 Season 2

Last 30 days Overall leaderboard