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?

Report
All responses (
Answers (