Good day, all.
I have a problem with a flow that is only partially running one of the actions, then stops for the rest in the Apply to Each part of the flow.
It is a course I am doing and we are building a basic point-of-sale system. The flow is to change the status of items from in stock to sold.
In the example, we have sold three items. The Items ID are strings. Then the items are split into arrays with ","(commas). My flow is only changing one of the items to "sold", but not all of them. (Hope this makes sense)
I have attached screenshots so you can see my issue and perhaps someone has a solution to the problem.
As far as I can see the string you split is provided by a power app. So it would be interesting how this string is created. But to not make it more complicated please just use “trim()” to get rid of the spaces during “find item”.
Hi @Matthy79
Here are screenshots of how we set up each step. I have no clue why a space is being inserted in each GUID following the first one. There are no spaces in my formula.
split(variables('var_itemid'),',')
Please see the screenshots below.
From your first screenshot I see that all the GUIDs start with a space. This is not possible and if course such items do not exist in the database.
How du you get this GUIDs array? Check the action there and if you don’t find the answer, please post the part where you get the GUIDs and split them.
Yes, the items exist in the database and the first item on the list is being marked as sold. It is the rest of the items in the array that are failing.
It says „file or directory not found“. Have you checked if what you are searching really exists?
Below is how the flow has been set up. I have no clue how to fix this.
Hi. Here are some screenshots. Hope this explains it. (I will put screenshots of the setup of my flow below this reply).
It would help to see the error. Goto the step that failed (next failed) and look at the body of „find item“.
WarrenBelz
146,635
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,997
Most Valuable Professional