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 / If function has invali...
Power Apps
Answered

If function has invalid arguments

(0) ShareShare
ReportReport
Posted on by 215

Hello,

 

I have built an app to collect visitor information and send them the map instructions (by calling power automate flow) when the managers approves the request. The below code has been working and all of a sudden when one of the visitor chose "Ongoing Access" option by mistake, the app started throwing the error. I don't understand what has gone wrong. 

 

If(TypeofVisitDataCardValue78_1.Selected.Value<>"Ongoing Access",Emailattachmentstovisitor.Run(DataCardValue69.Text,FromDateValue5_1.SelectedDate&" " &HourValue6_1.Selected.Value & ":" &MinuteValue6_1.Selected.Value,ToDateValue4_1.SelectedDate&" "&HourValue5_1.Selected.Value & ":" &MinuteValue5_1.Selected.Value,FullNameDataCardValue76_1.Text, VAHostDataCardValue44_1.Selected.DisplayName));

 

Seeking some advice to resolve this issue. 
Thank you! 

Categories:
  • Verified answer
    PowerUser19 Profile Picture
    215 on at

    Found the issue. The connection to the flow was removed for some reason. After I added the connection back to the power automate, the error message disappeared. 🙂 

    PowerUser19_0-1711003005196.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

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
11manish Profile Picture

11manish 409 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 252 Most Valuable Professional

Last 30 days Overall leaderboard