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 / Function Run has some ...
Power Apps
Unanswered

Function Run has some invalid arguments

(0) ShareShare
ReportReport
Posted on by 240

Hi Team

 

I need some help, i have this error and find it difficult to get rid, double check data types, i have text as data types(short description on power automate work flow, date for other, email, dropdown and file attachment). How do i get rid of this so they can match, naming conversion of controls are correct, but its said its invalid argument.  How do i fix this so can continue? I am using Power Version 2 and do have inputs to my workflow on power automate for all of them.

 

SHEQConformanceFlow.Run(
 Short_Desc_Text.Text,
 DataPicker_Audit_Date.SelectedDate,
 Audit_combo.SelectedItems.Value,
 Responsible_combo.SelectedItems.Value,
 Facilities_combo.SelectedItems.Value,
 Reference_combo.SelectedItems.Value,
 Severity_combo.SelectedItems.Value,
 DatePicker_Due_Date.SelectedDate,
 Auditor_combo.SelectedItems.Email,
 Audit_combo.SelectedItems.Value,
 '1stManager_combo'.SelectedItems.Email,
 '2ndManager_combo'.SelectedItems.Email,
 Status_combo.SelectedItems.Value,
 Attachment_file.Attachments
);

 

 

Categories:
  • WarrenBelz Profile Picture
    156,570 Most Valuable Professional on at

    @gcizman2024 ,

    The first thing I can see there is a heap of references to SelectedItems, which will output a Table. If you want a Text output, use .Selected instead.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

  • gcizman2024 Profile Picture
    240 on at

    @WarrenBelz , selectedItems i thought were dropdown, text is for inserting details to texbox, then date, be se...?

  • WarrenBelz Profile Picture
    156,570 Most Valuable Professional on at

    @gcizman2024 ,

    If a single selection use .Selected

  • gcizman2024 Profile Picture
    240 on at

    @WarrenBelz , can you perhaps check if i am passing the correct data types from below, tried to amend some of them right but still expecting text with other data types field. 

     

    SHEQConformanceFlow.Run(
     Short_Desc_Text.Text, DataPicker_Audit_Date.SelectedDate,"Complaint", 
     Audit_combo.SelectedItems, Responsible_combo.SelectedItems, Facilities_combo.SelectedItems,
     Finding_desc_text.Text, Reference_combo.SelectedItems, Severity_combo.SelectedItems, 
     Audit_combo.Selected, Responsible_combo.Selected.Email, '1stManager_combo'.Selected.Email, 
     Status_combo.SelectedItems,Attachment_file.Attachments);
  • WarrenBelz Profile Picture
    156,570 Most Valuable Professional on at

    @gcizman2024 ,

    If the Flow is expecting Text you need to change them all.

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

#2
Mohsin Ali Profile Picture

Mohsin Ali 329

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard