cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
aboodhamwi
Helper III
Helper III

Mmultiple levels of many-to-one relationship expansion aren't supported

Hi,

 

Recently I start getting this message in filters that were build before, in my case I'm trying to load the Price List Items of a selected price list, but the error will show

 ClearCollect(
        SelectedPriceListItems,
        Filter(
            [@'Price List Items'],
            'Price List'.'Price List' = PriceListId
        )
    );

image.png

last week the app was working perfectly, but suddenly this issue started

2 ACCEPTED SOLUTIONS

Accepted Solutions
v-xida-msft
Community Support
Community Support

Hi @aboodhamwi ,

Could you please share a bit more about the 'Price List' column in your 'Price List Items' Entity? Is it the LookUp type column (generated by Many-to-One relationship)?

 

Based on the issue that you mentioned, I have made a test on my side, and don't have the issue that you mentioned. The screenshot as below:1.JPG

 

2.JPG

The 'Normal Contact' column is a LookUp field in my TaskLists Entity, which references records from Contacts Entity. Add a Gallery within my app, set the Items property to following:

Filter(TaskLists, 'Normal Contact'.Contact = ComboBox1.Selected.Contact)

the records displayed well in my Gallery as above.

 

Please check if the result the PriceListId variable returns is the 'Unique Identifier' column value in your 'Price List' Entity. On your side, you could consider add a ComboBox in your app, set the Items property to following:

'Price List'         /* <-- Type your 'Price List' Entity data source here */

set the SelectMultiple property of the ComboBox to false.

then add a Button in your app, set the OnSelect property to following formula:

ClearCollect(
        SelectedPriceListItems,
        Filter(
            [@'Price List Items'],
            'Price List'.'Price List' = ComboBox1.Selected.'Price List'
        )
)

Note: I assume that the 'Price List' is the 'Unique Identifier' column in your 'Price List' Entity.

Please press above button, then check if the SelectedPriceListItems collection is populated with proper records.

 

If the issue still exists, please consider re-generate an app based on your 'Price List Items' Entity, then try above solution again, check if the issue is fixed.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Hi,

 

The Price list consider a parent for the price list item and the relation is one-to-many, but as what I was saying the app was working perfectly, and suddenly this issue shows up, I was using PowerApps studio inside chrome browser, once I open the app in Edge the issue disappeared totaly, and I was able to publish my app without changing anything and it did work fine

View solution in original post

3 REPLIES 3
v-xida-msft
Community Support
Community Support

Hi @aboodhamwi ,

Could you please share a bit more about the 'Price List' column in your 'Price List Items' Entity? Is it the LookUp type column (generated by Many-to-One relationship)?

 

Based on the issue that you mentioned, I have made a test on my side, and don't have the issue that you mentioned. The screenshot as below:1.JPG

 

2.JPG

The 'Normal Contact' column is a LookUp field in my TaskLists Entity, which references records from Contacts Entity. Add a Gallery within my app, set the Items property to following:

Filter(TaskLists, 'Normal Contact'.Contact = ComboBox1.Selected.Contact)

the records displayed well in my Gallery as above.

 

Please check if the result the PriceListId variable returns is the 'Unique Identifier' column value in your 'Price List' Entity. On your side, you could consider add a ComboBox in your app, set the Items property to following:

'Price List'         /* <-- Type your 'Price List' Entity data source here */

set the SelectMultiple property of the ComboBox to false.

then add a Button in your app, set the OnSelect property to following formula:

ClearCollect(
        SelectedPriceListItems,
        Filter(
            [@'Price List Items'],
            'Price List'.'Price List' = ComboBox1.Selected.'Price List'
        )
)

Note: I assume that the 'Price List' is the 'Unique Identifier' column in your 'Price List' Entity.

Please press above button, then check if the SelectedPriceListItems collection is populated with proper records.

 

If the issue still exists, please consider re-generate an app based on your 'Price List Items' Entity, then try above solution again, check if the issue is fixed.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Hi,

 

The Price list consider a parent for the price list item and the relation is one-to-many, but as what I was saying the app was working perfectly, and suddenly this issue shows up, I was using PowerApps studio inside chrome browser, once I open the app in Edge the issue disappeared totaly, and I was able to publish my app without changing anything and it did work fine

View solution in original post

Hi @aboodhamwi ,

Have you solved your problem?

 

If you have solved your problem, please go ahead to click "Accept as Solution" to identify this thread has been solved.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Don't miss the call this month on June 16th - 8a PDT

Top Kudoed Authors
Users online (43,646)