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 / Conditional Flow creat...
Power Apps
Answered

Conditional Flow creating 'invalid parameter value' error in PowerApps

(0) ShareShare
ReportReport
Posted on by 4

I am trying to send an email with the inputted information from the rest of the app; I want the functionality of adding a picture from the camera and sending it as an attachment if the user desires to add a picture. 

 

I have implemented this with a condition in my flow (see Flow.png). I have added the appropriate fields necessary in my powerapp (see PowerAppFlowRun.png). It works when there is a picture taken in the app. However, when a user does not take a picture to add as an attachment, I get the following error:

 

 "The method 'Run' has an invalid value for parameter 'Compose_Inputs' "

 

For context, my picture goes through Compose so that it can be converted to binary, and ultimately show up in the email. This step occurs only if the flow condition evaluates to true.

 

I have a boolean value set in my app to indicate whether a picture was taken or not (HasAttachment), and this is what is used as the conditional test in the flow. I was under the impression that the app would only need/use 'Compose_Inputs' if there was a picture, and would ignore otherwise. 

 

Please let me know if there is something that I need to change in either my flow or my app!

 

Thanks in advance. 

 

 

Flow.PNG
PowerAppFlowRun.PNG
Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    155,136 Most Valuable Professional on at

    Hi @pallie ,

    You will need two different conversions for the two photo types. Photos taken from the camera control are stored in dataUri (as per yours), whereas the ones from the attachment are Base64.

     

    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.

  • Verified answer
    v-siky-msft Profile Picture
    Microsoft Employee on at

    Hi @pallie ,

     

    While there is no need to add attachments when the HasAttachment is false, all pre-defined parameters still need to be passed into the flow in the correct format. So I recommend, when the HasAttachment is false, pass a Default Sample Image to the flow.

    Replace the Gallery1.Selected.Photo to 

    If(HasAttachment, Gallery1.Selected.Photo, SampleImage)

     

    Snipaste_2020-07-20_14-50-09.png

    Hope this helps.

    Sik

  • pallie Profile Picture
    4 on at

    @v-siky-msft 

    Thank you for your reply! 

    That solved my problem!

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 505

#2
Vish WR Profile Picture

Vish WR 482

#3
WarrenBelz Profile Picture

WarrenBelz 384 Most Valuable Professional

Last 30 days Overall leaderboard