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

Community site session details

Session Id : PQtHOzOsWNXOBeJ2dz17w2
Power Apps - Building Power Apps
Answered

Invalid number of arguments

Like (0) ShareShare
ReportReport
Posted on 19 Sep 2018 20:47:16 by

I'm just learning PowerApps and have gotten pretty far but now can't figure out what is wrong with this formula... 

 

If(IsEmpty(Filter(MIRes, Promo = DDPromo.Selected.Value && WeekRange = DateRange.Text ), DisplayMode.Edit, DisplayMode.Disabled))

I keep getting "Invalid number of arguments: recieved 3, expected 1." and "Invalid number of arguments: recieved 1, expected 2 or more."

 

Please Help!! 

Categories:
  • Ronix_07 Profile Picture
    2 on 29 Apr 2020 at 14:36:24
    Re: Invalid number of arguments

    <html>

    <body>

    Can Anybody let me know what is the issue in the below string

     

    Now my string is

    Set(PDF , MuhimbiPDF.converthtml(Concatenate(“<div><p>”,TextInputName.Text,”</p>””<p>”,TextInputEmail.Text,”</p>”)))

     

    Where the name of my fields are (TextInputNmae) and (TextInputEmail)

    Error is : – Invalid number of arguement recieved 1: expected 2-3

    Kindly Please correct me where i am going wrong also let me know in case of any issue.

    Thanks !!

     

     

    </body>

    </html>

  • mogg Profile Picture
    2 on 16 Aug 2019 at 07:40:46
    Re: Invalid number of arguments

    Hi I am just a newbie to PowerApps but have done some excel previously I have checked and checked but cant work out why I am getting Invalid number of arguements recieved 1 expecting 2 or more......

     

    I am checking the 'Cal Due' date to today and changing the fill colour of a label depending if its > 30 days, 1-30 days, 0 days or < Today (Overdue) 

     

    If(IsBlank(ThisItem.'Cal Due'),RGBA(232,244,217,1),If(DateDiff(Today(),ThisItem.'Cal Due',Days) > 30),RGBA(232,244,217,1),If(30 > DateDiff(Today(),ThisItem.'Cal Due',Days)) > 0,RGBA(255, 255, 0, 0.42),If(DateDiff(Today(),ThisItem.'Cal Due',Days))=0,RGBA(204, 231, 246, 1),RGBA(238,204,204,1))

     

    Thanks for any help

     

  • Verified answer
    Drrickryp Profile Picture
    Super User 2024 Season 1 on 19 Sep 2018 at 21:23:06
    Re: Invalid number of arguments

    Hi @Anonymous,

     You left off a closing parenthesis of the IsEmpty function and have an extra one at the end of the If function.  I believe   If(IsEmpty(Filter(MIRes, Promo = DDPromo.Selected.Value && WeekRange = DateRange.Text )), DisplayMode.Edit, DisplayMode.Disabled) will work.

  • Community Power Platform Member Profile Picture
    on 19 Sep 2018 at 21:21:01
    Re: Invalid number of arguments

    I figured it out! was missing a ) before I had my true or false results

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410 Super User 2025 Season 2

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 2

Loading complete