Logic Apps - ForEach loop concurrency control within Scope

Aldo Troiano 6 Reputation points
2022-07-08T14:38:52.637+00:00

Hi,

Logic Apps - We are not able to set Concurrency Control on ForEach loops which reside within a Scope Action.

I would expect them to run Sequentially if there is no setting to disable it.
However, they are running in Parallel - as an incremental counter I am using is not unique.

Only loops which are at the parent level logic app allow the setting of concurrency control.

Logic App at parent level:
219001-concurrency-outside.jpg

Logic App within Scope:
218909-concurrency-inside.jpg

Is this expected behaviour?
Thanks.

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
3,542 questions
0 comments No comments
{count} vote

1 answer

Sort by: Most helpful
  1. Kamlesh Kumar 3,866 Reputation points
    2022-07-08T16:59:25.467+00:00

    Hi @Aldo Troiano ,

    Welcome to Microsoft Q&A Platform. Thank you for the question.

    EDIT: This is the known issue and Product Group team is working on hot fixing this issue. as a workaround you can use code view to add the concurrency settings. Once you made the change save it in the code view itself please don't use the designer until the fix is deployed as it will revert the changes made in code view.
    Refer: https://learn.microsoft.com/en-us/answers/questions/919137/concurrency-control-is-missing-in-logic-app-design.html

    This is expected behavior. Let me explain you why,

    As per definition, for Concurrency Control -- By default, "For each" iterations run at the same time, or in parallel. To change the default limit, turn on this control, and select a limit. To run sequentially, select 1 as the limit.

    But at other side, To run actions only after another group of actions succeed or fail, group those actions inside a scope. So scope will contain the group of actions and you can't make it concurrent the group.

    Regards,
    Kamlesh Kumar
    BizTalk Techie

    Please don't forget to click on 205836-130616-image.png or upvote 205759-130671-image.png button whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer. Here is How

    Want a reminder to come back and check responses? Here is how to subscribe to a Notification

    If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of Q&A Volunteer Moderators

    1 person found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.