Fix array overflow in Sync Template v3 Flow Action Details#10849
Draft
Fix array overflow in Sync Template v3 Flow Action Details#10849
Conversation
- 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]>
…ssue 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The flow fails when environments contain many flows with numerous actions, causing the
ActualFlowActionDetailsarray variable to exceed Power Automate's expression evaluation limits (typically manifesting around 5,000+ items duringunion()andcontains()operations).Changes
Flow modification (
AdminSyncTemplatev3FlowActionDetails-*.json):$top: 100to limit flows processed per runminimumItemCountfrom 100,000 to 5,000The flow now processes flows in batches, leveraging the existing
admin_inventorymyflowactiondetailsflag to automatically continue processing remaining flows in subsequent runs.Documentation:
Example
For an environment with 300 flows averaging 50 actions each:
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
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.