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 / Text Input and Image n...
Power Apps
Unanswered

Text Input and Image not writing to collection sometimes

(0) ShareShare
ReportReport
Posted on by

About a year or more ago I created an app that allows the user to take pictures and send the pictures via email and then the pictures are stored to a SharePoint library using a Flow. However the flow fails occasionally. After troubleshooting the flow fails because the app is not sending over the file name nor the content bytes. This appears to be caused by the file name and content bytes are not being put into the collection.

The app has a few combo boxes that are required to have an item selected before allowing the user to use the "Take Picture" button. The information from the combo boxes is concatenated along with Now() and the count of the pictures taken so a unique file name is created for the photo.

When the "Take Picture" button is clicked the image is written to a collection using Collect(MyPix,{Name:TextInput1.Text, ContentBytes :MyCamera.Stream, '@odata.type':"" });UpdateContext({varcounter:varcounter+1});Reset(TextInput1). There is a gallery to display what is in the collection. The gallery displays the file name, an image using the content bytes and a text field for the Url. I do not remember adding this field so my assumption is the field was auto generated.

Once the user has all of the pictures needed a submit button is used to trigger a flow which takes the file name and the content bytes and saves the image to a SharePoint library. Then the submit button sends an email through the app to the appropriate person with the images attached to the email.

As stated before for some reason the file name and image is not saved to the collection. Has anyone ever experienced anything similar or have any suggestions?

Categories:
I have the same question (0)

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 June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 320 Most Valuable Professional

#2
11manish Profile Picture

11manish 210

#3
Valantis Profile Picture

Valantis 167

Last 30 days Overall leaderboard