Hi, I have been running into issues with my flow for a couple of days now.
The concept of my flow is to send a request to Shopify to get the fulfillments still open. Then, I am using a for loop to go through the fulfillments.
For each fulfillment, I then use an evaluate block to remove items with no qty remaining and ecofees. I use a if block after to not process the fulfillment if it is now empty from my filtering.
From that fulfillment, I use Order Id which is the one present in our ERP Dynamics NAV to make an http request to NAV. The next evaluate block uses as input: http request to NAV’s response, the array of fulfillment’s items from the IF block and the fulfillmentId also from the IF block. (I wonder if the problem comes from here since the inputs are not sent exactly at the same time).
This evaluate sets a boolean “error” variable to false before confirming if the navResponse and shopifyItems arrays are empty. If one of the array is empty, it sets the error var to true. An empty json is then created and (if error is false) filled with items to be fulfilled and confirmed shipped in NAV.
At the end of the evaluate, the output is always returned, even if it was not filled with any item).Then, an IF block validates if the JSON was filled and sends an http request to shopify if so.
The issue I have is that my first request from shopify returns around 100 fulfillments, but after looping about 10 times, the flow doesnt end but stops doing anything:
I tried letting it run for a while in that state, but nothing happens neither visually nor in the logs. From the logs, it seems to always stall at the same fulfillment in the flow. I tried running only that fulfillment individually by changing the first http request and the flow goes through correctly but gives me a deadlock warning on the second evaluate.
Thank you