Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

Invalid argument type (Text). Expecting a Record value instead.

(1) ShareShare
ReportReport
Posted on by 279
I have an app that triggers a flow from a button. My flow inputs are Text from the Power App. By default, all the inputs are required and the call from my OnSelect works, and it looks like this...
MyFLow.Run(TitleValue.Text, DescriptionValue.Text, NotesValue.Text)
The requirements changed and the NotesValue no longer needs to be required. I change this in my flow inputs, from the ellipsis on my input variable ("Make this field optional"), now my call from my button is giving me an error on NotesValue. The error is "Invalid argument type (Text). Expecting a Record value instead.
If I change the NotesValue back to being required, the error goes away. Why am I getting this error? What am I missing? 
 
 
Update with screenshots:
this is how I am running the flow from my Button.OnSelect
 
and this is how I updated the change to make NotesValue not required, from the trigger within myFlow
 
When I make the change, I see it as giving me the option to now make it required...which tells me it is now optional
 
With this change to make the last input optional, I save and refresh myFlow in Power Apps, and get this
 
  • Verified answer
    Spawn10 Profile Picture
    279 on at
    Invalid argument type (Text). Expecting a Record value instead.
    This was the workaround I came up with. I reverted the input in the flow back to being required, then changed the logic in OnSelect to...
    This got rid of my error, and the flow is being triggered. Willing to discover a more efficient way, if there is one. 
  • Spawn10 Profile Picture
    279 on at
    Invalid argument type (Text). Expecting a Record value instead.
    @FLMike ,
    Thanks for the response. I have updated the post with the screenshots. Hopefully they help with reproducing the issue. 
  • Suggested answer
    Michael E. Gernaey Profile Picture
    41,027 Super User 2025 Season 1 on at
    Invalid argument type (Text). Expecting a Record value instead.
    Hi
     
    Did you remember to refresh your flow, in the app?
     
    Otherwise I got nothing as the error doesn't make sense, based on what you said you did. We cannot verify as we dont see the flow, the trigger, or know how you changed it.
     

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,653 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,999 Most Valuable Professional

Leaderboard