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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / The function 'Run' has...
Power Apps
Unanswered

The function 'Run' has some invalid arguments

(0) ShareShare
ReportReport
Posted on by 54

Hello, 

i migrated a solution from UAT to Production environment and i am getting this error on one of the flows.

'The function 'Run' has some invalid arguments'.

I am passing 4 parameters in the flow and i noticed that the last one which is a Text, for some reason appears as a record

(text_1,text_2,text_3,text_4)  somehow became (text_1,text_2,text_3,{text_4:Text}).

This input is in a custom component i created inside the app.

I checked again the properties and they are ok. 

Any ideas? What am i missing here?

Categories:
I have the same question (0)
  • Ami K Profile Picture
    15,679 Super User 2024 Season 1 on at

    @mariaLP1610 - assuming you're using the Power Apps v2 trigger, for whatever reason in your PROD environment, the text_4 has become optional.

     

    I would double check if you have any unmanaged layers in your PROD Solution and delete them if they exist.

  • mariaLP1610 Profile Picture
    54 on at

    Yes i am using PowerApps V2 and the field is optional.

    mariaLP1610_0-1707995855342.png

    it was optional as i see even in the uat environment but there was no issue there.

    is that causing the issue?

    it was the first time this solution deployed to the Default environment .

  • Ami K Profile Picture
    15,679 Super User 2024 Season 1 on at

    @mariaLP1610 - if the code originally returned "text_4", but then became "{text_4:Text}" - the code originally read this field as mandatory. 

     

    Have you checked if you have any unmanaged solution layers in your prod solution?

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard