cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
New Member

Flow Fails with Null result - Image Upload

I have a flow built to record photos by uploading them from a Microsoft Form, then parse json to establish the naming variables for the photos from other fields in the form, after which it renames the files and saves them to a shared one drive folder and emails the person who filled out the form a list of their files for confirmation. However, the flow has started to fail if any of the file uploads returns a null result. The form does have more slots than may be required because some submissions may require only one piece of photo documentation and others 9 so all the file upload fields don't always get used, but until recently the flow would run all the way through without failing even if some of the file uploads were null. Now it has started to fail, how do I fix this? See examples of my set up below: 

part 1.PNGpart 2.PNG

1 REPLY 1
Super User
Super User

@nicoleheuler 

 

When you copy the JSON format on the flow it will auto detect the type and confirm it. When you have image in the JSON body then flow expects to have it every time in that field as flow expects an image in that.

 

To overcome the scenario you can specify the type as ['image','null'] this way you are indicating the flow that it can be of either type. It can be an image or it can be a null.

 

If the information shared helps you, please consider giving a thumbs up 👍 and mark solution as resolved.

Helpful resources

Announcements
Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Microsoft Ignite

Microsoft Power Platform: 2021 Release Wave 1 Plan

Power Platform release plan for the 2021 release wave 1 describes all new features releasing from April through September 2021.

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Users online (30,563)