Skip to content

Fix array overflow in Sync Template v3 Flow Action Details#10849

Draft
Copilot wants to merge 3 commits intomainfrom
copilot/fix-flow-action-details-length
Draft

Fix array overflow in Sync Template v3 Flow Action Details#10849
Copilot wants to merge 3 commits intomainfrom
copilot/fix-flow-action-details-length

Conversation

Copy link
Contributor

Copilot AI commented Feb 12, 2026

The flow fails when environments contain many flows with numerous actions, causing the ActualFlowActionDetails array variable to exceed Power Automate's expression evaluation limits (typically manifesting around 5,000+ items during union() and contains() operations).

Changes

Flow modification (AdminSyncTemplatev3FlowActionDetails-*.json):

  • Added $top: 100 to limit flows processed per run
  • Reduced pagination minimumItemCount from 100,000 to 5,000

The flow now processes flows in batches, leveraging the existing admin_inventorymyflowactiondetails flag to automatically continue processing remaining flows in subsequent runs.

Documentation:

  • Added troubleshooting guide with root cause analysis and manual workaround for pre-fix versions
  • Updated Core Components README with reference

Example

For an environment with 300 flows averaging 50 actions each:

  • Before: 300 × 50 = 15,000 items in array → flow fails
  • After: 100 × 50 = 5,000 items per run × 3 runs → completes successfully

Impact

Backward compatible. Environments with >100 flows now require multiple runs to complete full inventory but gain reliability. The flag-based continuation is automatic.

Original prompt

This section details on the original issue you should resolve

<issue_title>[CoE Starter Kit - BUG] Admin | Sync Template v3 (Flow action Details)</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

In the following flow 'Sync Template v3 (Flow action Details)' action 'Get flow as a Admin' is getting failed frequently.

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 Template v3 (Flow action Details)

What method are you using to get inventory and telemetry?

None

Steps To Reproduce

No response

Anything else?

No response</issue_description>

<agent_instructions>In this issue it exceeds of max length of array variable actualflowactiondetails. Need solution of this max length.</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 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 February 12, 2026 04:19
- Add $top limit of 100 flows per run to prevent ActualFlowActionDetails array from exceeding max length
- Reduce pagination minimumItemCount from 100000 to 5000 for better performance
- Flow will automatically process remaining flows in subsequent runs via admin_inventorymyflowactiondetails flag

Co-authored-by: mohamrizwa <[email protected]>
Copilot AI changed the title [WIP] Fix max length issue in sync template flow action Fix array overflow in Sync Template v3 Flow Action Details Feb 12, 2026
Copilot AI requested a review from mohamrizwa February 12, 2026 04:21
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] Admin | Sync Template v3 (Flow action Details)

2 participants