Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 29, 2026

Problem

AppendToArrayVariable operations fail intermittently when multiple parallel loop iterations write to the same array variable. Power Automate variables are not thread-safe.

Changes

Flow modification:

  • Reduced concurrency from 50 to 1 in three loops that append to ActualSrMembers array:
    • Apply_to_each_Direct_Access
    • Add_each_user_no_sub_groups
    • Add_each_user_in_group
"runtimeConfiguration": {
  "concurrency": {
-   "repetitions": 50
+   "repetitions": 1
  }
}

Documentation:

  • Added issue response template with resolution steps
  • Added troubleshooting guide with technical analysis and manual fix instructions

Impact

  • Eliminates intermittent ActionFailed errors in security role sync
  • Minimal performance impact: append operations are sub-millisecond, API calls remain the bottleneck
  • Sequential processing ensures reliability over marginal speed gains
Original prompt

This section details on the original issue you should resolve

<issue_title>[CoE Starter Kit - BUG] SYNC HELPER - Get Security Role Users</issue_title>
<issue_description>### Does this bug already exist in our backlog?

  • I have checked and confirm this is a new bug.

Describe the issue

The flow 'SYNC HELPER - Get Security Role Users' getting failed frequently and the error message is 'Action 'Append_to_ActualSrMembers_this_group' failed'

Core Component
Version 4.50.6

Image

Expected Behavior

No response

What solution are you experiencing the issue with?

Core

What solution version are you using?

4.50.6

What app or flow are you having the issue with?

SYNC HELPER - Get Security Role Users

What method are you using to get inventory and telemetry?

None

Steps To Reproduce

No response

Anything else?

No response</issue_description>

<agent_instructions>Analyze why The flow 'SYNC HELPER - Get Security Role Users' getting failed frequently and the error message is 'Action 'Append_to_ActualSrMembers_this_group' failed' and troubleshoot the issue and provide the solution for this issue.</agent_instructions>

Comments on the Issue (you are @copilot in this section)

Custom agent used: CoE Custom Agent
Specialized agent for triaging and fixing issues in the CoE Starter Kit. Always consult the official CoE docs and the team’s SharePoint notes first, then mine prior GitHub issues and the CoE Common Responses playbook.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 2 commits January 29, 2026 12:15
…revent race conditions

Co-authored-by: AmarSaiRam <220305901+AmarSaiRam@users.noreply.github.com>
…failure fix

Co-authored-by: AmarSaiRam <220305901+AmarSaiRam@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix sync helper failure for getting security role users Fix race condition in SYNC HELPER - Get Security Role Users flow Jan 29, 2026
Copilot AI requested a review from AmarSaiRam January 29, 2026 12:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[CoE Starter Kit - BUG] SYNC HELPER - Get Security Role Users

2 participants