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 when accessing L...
Power Apps
Answered

Error when accessing Lookup field value

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I am trying to conditionally mark a field as required if nothing is selected in another lookup field. 

But it seems, that I cannot even correctly access the value in the Lookup field. 

 

This is my check: 

 

 

If(IsBlank(DataCardValue1.Selected.Value), True)

 

The (translated) error I get is: Unexpected characters: Formula contains "error", but "ParenClose" is expected.

 

It doesn't work with any condition (for example this gives the same error):

 

If(DataCardValue1.Selected.Value = "1", True)

 

 

Thank you!

Categories:
  • Verified answer
    zmorek Profile Picture
    3,272 on at

    Because you're using "True" rather than just true.

     

    Try just:

     

     

    IsBlank(DataCardValue1)

     

    Remember, the above evaluates to true or false, so your original statement would effectively evaluate to:

    If(true, true)

     

    Therefore, you don't need the "if true" portion. Not that it would affect anything, but this is just a good way to keep your formulas clean

     

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 394 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 324 Most Valuable Professional

Last 30 days Overall leaderboard