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 in Power Automate ...
Power Apps
Unanswered

Bug in Power Automate Flow argument count validation where multiple optional inputs

(1) ShareShare
ReportReport
Posted on by 7

I think I've identified a bug whereby PowerApps does not read a Power Automate Flow definition correctly where there are multiple optional inputs to the Flow Trigger "PowerApps (V2)". The App is therefore not capable of triggering the Flow with all the inputs as the formula is marked as an error.

 

To replicate this, I created a test flow with 3 inputs; I left the first set to required and changed the other 2 inputs to optional:

{
 "kind": "PowerAppV2",
 "inputs": {
 "schema": {
 "type": "object",
 "properties": {
 "text": {
 "title": "Input1",
 "type": "string",
 "x-ms-dynamically-added": true,
 "description": "Please enter your input",
 "x-ms-content-hint": "TEXT"
 },
 "text_1": {
 "title": "Input2",
 "type": "string",
 "x-ms-dynamically-added": true,
 "description": "Please enter your input",
 "x-ms-content-hint": "TEXT"
 },
 "text_2": {
 "title": "Input3",
 "type": "string",
 "x-ms-dynamically-added": true,
 "description": "Please enter your input",
 "x-ms-content-hint": "TEXT"
 }
 },
 "required": [
 "text"
 ]
 }
 }
}

 

Then when trying to run the Flow from a Power App with all the arguments, the error "Invalid number of arguments: received 3, expected 1-2" occurs:

Screenshot 2023-08-22 064541.png

I think this should accept 1-3 arguments.

Categories:
  • poweractivate Profile Picture
    11,078 Most Valuable Professional on at

    @wjamesw 

    Are you sure you didn't initially have only the one required and the one optional, saved, added to the Canvas app and then added the third in a bit later? Be sure to go to the Flow in the Canvas App, use the ellipses and click on Refresh and then it might update correctly, after making sure your Flow that has the 3 arguments was saved correctly.

     

    Also try this one more time from the beginning with a new Canvas App and new Flow from scratch, just to be sure. 

    If you are sure you did that and this may indeed be a bug, you may want to file a support ticket here with your findings.

     

  • wjamesw Profile Picture
    7 on at

    Thanks for the quick response!

     

    All good ideas; though the above test was the new flow and app created from scratch. The app was created after the flow was finalised so no out of date definition, though I did try a refresh.

     

    I will raise a support ticket as suggested.

     

     

  • wjameswilliams Profile Picture
    2 on at

    Microsoft Support confirmed that the solution is to submit all optional arguments as a record, for example:

     

    Run(TextInput1.Text,{text_1:TextInput2.Text,text_2:TextInput3.Text})

     

    So from Power App's perspective, all optional arguments together count as one argument.

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

#2
M Bilal Khan Profile Picture

M Bilal Khan 271

#3
Mohsin Ali Profile Picture

Mohsin Ali 239

Last 30 days Overall leaderboard