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:
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.
Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!
Power Platform release plan for the 2021 release wave 1 describes all new features releasing from April through September 2021.
User | Count |
---|---|
90 | |
57 | |
40 | |
39 | |
35 |
User | Count |
---|---|
79 | |
66 | |
57 | |
52 | |
42 |