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 / Error in form formula
Power Apps
Answered

Error in form formula

(0) ShareShare
ReportReport
Posted on by 68
Hello everyone, 
I am building my first app, so go easy with me. 
 
I have to build cascading dropdowns, so my first dropdown is showing me Entity (data is taken from sharepoint site) and second dropdown should show me from excel file, all customers with for respective entity. However, when in my dropdown1 no entity is selected, app gives me error. (even though is submitting the data)
 
Below the formula, I tried to add IsBlank, or IsEmpty but then app was showing me different error in the formula. 
 Filter(CustomerList, Entity=DataCardValue29.Selected.Value, 'Customer')
Categories:
  • WarrenBelz Profile Picture
    156,940 Most Valuable Professional on at

    Hi @PolaCB ,

    If Entity is a Text field

    Filter(
     CustomerList, 
     Len(DataCardValue29.Selected.Value) = 0 ||
     Entity = DataCardValue29.Selected.Value
    ).Customer

    If Entity is a Choice/Lookup field

    Filter(
     CustomerList, 
     Len(DataCardValue29.Selected.Value) = 0 ||
     Entity.Value = DataCardValue29.Selected.Value
    ).Customer

     

    Please click Accept as solution 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 Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

  • PolaCB Profile Picture
    68 on at

    Hi. 

    Thank you for your feedback! I still can see the error :(. Not sure what is wrong with it honestly. Attaching the screenshot. 

     

     

    Screenshot Error APP .png
  • WarrenBelz Profile Picture
    156,940 Most Valuable Professional on at

    @PolaCB , 

    What type of field is Customer ?

  • PolaCB Profile Picture
    68 on at

    Customer is setup as Text, Entity is a choice. 

    In dropdown for Entity, data is setup in excel, but in Customer dropdown data is from excel file. 

    Should I change the dropdown for entity to read from excel file instead of sharepoint? 

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

    @PolaCB ,

    I suggest you take the whole app to SharePoint - you will not get a Delegation warning on that code in SP - Excel is a terrible data source.

     

    Please click Accept as solution 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 Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

  • PolaCB Profile Picture
    68 on at

    I change data source for SharePoint and still when I open the app the error is appearing. 

     

    PolaCB_0-1711361226593.png

     

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

    @PolaCB ,

    What is the exact code (In Text please) that you are using to generate that error and where are you using it ?

  • Verified answer
    PolaCB Profile Picture
    68 on at

    in the end it works with 

    If(
        IsBlank(DataCardValue2.Selected),
        Blank(),
        Filter(CustomerList, Entity = DataCardValue2.Selected.Value)
    ) 
     
    thanks!

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 248 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 192 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard