Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Answered

Flow not running properly

(0) ShareShare
ReportReport
Posted on by 27

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.

Screenshot 2023-08-24 at 17.16.39.pngScreenshot 2023-08-24 at 17.17.44.png

 

 

  • VivB Profile Picture
    27 on at
    Re: Flow not running properly

    @Matthy79 

     

    Thank you very much for your help.

  • Verified answer
    Matthy79 Profile Picture
    4,178 Super User 2024 Season 1 on at
    Re: Flow not running properly

    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”.

  • VivB Profile Picture
    27 on at
    Re: Flow not running properly

    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.

    Screenshot 2023-08-28 at 18.50.44.pngScreenshot 2023-08-28 at 18.44.16.png

     

  • Matthy79 Profile Picture
    4,178 Super User 2024 Season 1 on at
    Re: Flow not running properly

    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.

  • VivB Profile Picture
    27 on at
    Re: Flow not running properly

    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. 

  • Matthy79 Profile Picture
    4,178 Super User 2024 Season 1 on at
    Re: Flow not running properly

    It says „file or directory not found“. Have you checked if what you are searching really exists?

  • VivB Profile Picture
    27 on at
    Re: Flow not running properly

    Below is how the flow has been set up. I have no clue how to fix this.

    Screenshot 2023-08-25 at 14.44.48.pngScreenshot 2023-08-25 at 14.45.17.png

  • VivB Profile Picture
    27 on at
    Re: Flow not running properly

    Hi. Here are some screenshots. Hope this explains it. (I will put screenshots of the setup of my flow below this reply). Screenshot 2023-08-25 at 14.29.22.pngScreenshot 2023-08-25 at 14.29.56.pngScreenshot 2023-08-25 at 14.29.38.png

  • Matthy79 Profile Picture
    4,178 Super User 2024 Season 1 on at
    Re: Flow not running properly

    It would help to see the error. Goto the step that failed (next failed) and look at the body of „find item“.

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,635 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,997 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow