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 / My flow is not working...
Power Apps
Unanswered

My flow is not working. Asking for different type of variable.

(0) ShareShare
ReportReport
Posted on by 4

I have the following flow:

Carrasco726_0-1714601137909.png

What I am trying to do here is upload an image from Power Apps, an image that is taken within the same app, and have it write the text it sees in the image through text recognition. It takes a file submission from the Power App activation, and it takes the contentBytes from the text recognition. I have tested the flow and it works, but when I try to use it from within the app with the following code: 

    Set(varImgTxt, 'ImgToTextV2'.Run(varImage).textinimg)
It gives me an error with the Run(varImage), saying the following: Invalid argument type (Image). Expecting a Record value instead.
 
Not sure why it is asking for a Record, and I can not seem to fix it. Any assistance would be appreciated 🙂 thanks in advance.
Categories:
  • BhargavPatel Profile Picture
    660 Moderator on at

    @Carrasco726 Can you try replacing Run(varImage) with 

    Run(
     {
     file: {
     name: varImage.FileName,
     contentBytes: varImage.Media
     }
     }
    )
  • Carrasco726 Profile Picture
    4 on at

    The following show up: 

    Carrasco726_0-1714669974022.png

    After removing the .extensions, the same error shows.

  • BhargavPatel Profile Picture
    660 Moderator on at

    @Carrasco726 Check out this video by Shane Young on how to pass a file data from Power App to Power Automate using the Power Apps V2 trigger. 

  • Carrasco726 Profile Picture
    4 on at

    So I watched it, changed everything. Even deleted my whole flow, but it still does not work. I ended up with the same flow Shane Young has: 

    Carrasco726_1-1714682070285.png

    I try to run this through Power Apps just like he does, but I end up with the same error. The more I research and try to solve this issue, the more confused I become lol.

    Carrasco726_2-1714682181504.png

     

  • BhargavPatel Profile Picture
    660 Moderator on at

    Where have you assigned the ImgToTextV3.Run() function? Also, can you share more detailed screenshots that includes names of controls and the flow?
    I tried the same with below code on select of a button, and the flow ran successfully without any errors. 

     

    BhargavPatel_0-1714700684957.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