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 / BUG: DatePicker.Select...
Power Apps
Unanswered

BUG: DatePicker.SelectedDate not working for an older app

(0) ShareShare
ReportReport
Posted on by 42

I have an older PowerApp (written 3-4years ago). Its been working fine, without issue for a long time. 

 

I opened the app to work on it, and one of the Submit buttons has a red X on it. There does not seem to be an issue with the actual submit process (I would have heard about it because the app is actively used by ~300 people). 

 

The error shows that the DatePicker control is not accepting the .SelectDate property:

WhatsHisName_0-1673625298454.png

 

"Invalid argument type. Expecting one of the following: Boolean, Number, Text, OptionSetValue."

 

1. Why is this error occurring?

2. How do I fix the error?

 

Thank you

 

Categories:
I have the same question (0)
  • cmitchener Profile Picture
    on at

    Would you be willing to post that whole block of code? It may be easier to troubleshoot, it looks like the issue is with the entire construction.

  • BCBuizer Profile Picture
    22,833 Super User 2026 Season 2 on at

    Hi @WhatsHisName ,

     

    The combination of SelectedDate and || is what is causing the issue. In case you want a condition to check if multiple arguments are blank, you need to use an IsBlank for each of them:

     

    IsBlank(evaluationDate_datePicker.SelectedDate) || IsBlank( etc.
  • cmitchener Profile Picture
    on at

    @BCBuizer is correct, or if you want it to all be in one function you could just use a regular Or:

     

    IsBlank(Or(evaluationDate_datePicker.SelectedDate, item2, item3))

     

     

    It's really just a matter of preference

  • WhatsHisName Profile Picture
    42 on at

    Hm... I'm not sure of that assertion.

     

    The issue is with the DisplayMode property. There are multiple `||` Or's that are working just fine. Its only this one. 

     

    If I comment out the offending line, the code works just fine.

     
    2023-01-13_8-48-47.png2023-01-13_8-49-12.png

     

     

  • BCBuizer Profile Picture
    22,833 Super User 2026 Season 2 on at

    Hi @WhatsHisName ,

     

    In any case you need to isolate that particular condition to get your code to work.

     

    Including a ComboBox.SelectedItems in the code gives the same error. It's as the error says: only those types allowed.

  • WhatsHisName Profile Picture
    42 on at

    This must have been a change in PowerApps since the app was created because the DisplayMode was at one time working. 

    Thanks for peeking at the issue. 

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
WarrenBelz Profile Picture

WarrenBelz 379 Most Valuable Professional

#2
11manish Profile Picture

11manish 203 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard