abautista
abautista

Reputation: 2780

How to handle multiple new blob files for a logic app in Azure?

I have a logic app in Azure that has the following structure:

enter image description here

Basically, when a new Blob file is created in a specific folder then I do the flow of processes but I noticed a peculiarity: If I add some files into the specific folder then only the first file will be processed and the rest of them will be ignored. I thought the Logic App would handle the files in a queue fashion method where they are processed one by one. How can I change this setting or how can I indicate to process each file and not only the first one?

Please, feel free to ask me more questions in case my description doesn't contain enough information.

Upvotes: 0

Views: 976

Answers (1)

10p
10p

Reputation: 6686

Important. By default, cycles in a "For each" loop run in parallel. When you use variables in loops, run the loop sequentially so that variables return predictable results.

"Foreach" loop: Sequential

  1. In the loop's upper right corner, choose ellipses (...) > Settings.
  2. Under Concurrency Control, turn the Concurrency Control setting to On. Move the Degree of Parallelism slider to 1, and choose Done.

Upvotes: 2

Related Questions