web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Invalid argument type ...
Power Apps
Unanswered

Invalid argument type error

(0) ShareShare
ReportReport
Posted on by

Hi,

I am getting the following error, i tried changing the column data type in the share point list but still am getting this error, do i have to change something in the code

Pricilla_0-1598166402600.pngPricilla_1-1598166453514.pngPricilla_2-1598166469327.png

 

 

 

Categories:
I have the same question (0)
  • eka24 Profile Picture
    20,923 on at

    Remove the Datevalue in the formula since you are working with a DatePicker.

    If you still have issues give the full formula.

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • Community Power Platform Member Profile Picture
    on at

    @eka24 the error is gone, but the formula is not working as expected, i want the app user to select only the dates in the current week & add a condition to restrict the user from selecting any dates from previous or upcoming week, here's the formula used

     

    If(And(DateDiff(DateAdd(Now(),-Weekday(Now(),11)),(DatePickerbox.SelectedDate))>0,DateDiff(DateAdd(Now(),7-Weekday(Now(),11)),(DatePickerbox.SelectedDate))<=0),1,0)

  • Community Power Platform Member Profile Picture
    on at

    @eka24 , is that formula to be changed to get the expected result

     

  • eka24 Profile Picture
    20,923 on at

    You can also us the fill property to change the color:

    If(And(DateDiff(DateAdd(Now(),-Weekday(Now(),11)),(DatePickerbox.SelectedDate))>0,

    DateDiff(DateAdd(Now(),7-Weekday(Now(),11)),(DatePickerbox.SelectedDate))<=0),White,Red)

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • Community Power Platform Member Profile Picture
    on at

    @eka24 , thanks you, the fill property works, is there way to show an error message or restrict the user from selecting the date in previous/future week.

    I am trying to connect this date picker with calendar gallery, i want the following condition to be executed,

    If(date picker date = calendar date & (total text box value >= 8, Green, Red ), also want to add another color based on a toggle how to get this result in power apps

     

    Pricilla_0-1598343288185.png

     

  • AC-16100139-0 Profile Picture
    on at

    Hi @Anonymous,

     

    Have you found a solution or did you need further input on this.  Let us know and I'll dig into this for you if still outstanding.

     

    Thanks.

     

  • Community Power Platform Member Profile Picture
    on at

    @ACahill , i have been trying the below formula but not getting the expected result

    Pricilla_0-1599400945947.png

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard