Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 29, 2026

SYNC HELPER - Apps fails when Get-AdminAppRoleAssignment API returns blank errors (deleted apps, permissions issues, throttling). Missing error handling causes entire flow failure.

Changes

Flow: SYNCHELPER-Apps-B677AA25-8DE4-ED11-A7C7-0022480813FF.json

  • Added Handle_Failed_Role_Assignment action (Compose, returns []) with runAfter: Get_App_Role_Assignments_as_AdminFailed | TimedOut
  • Updated Filter_to_tenant:
    • runAfter: dual path (success + error handler skipped)
    • from: @coalesce(outputs('Get_App_Role_Assignments_as_Admin')?['body/value'], outputs('Handle_Failed_Role_Assignment'))

Pattern matches CLEANUP HELPER - PowerAppsUserSharedWith flow.

Flow behavior:

Get_App_Role_Assignments_as_Admin
├─ Success → Filter role assignments → Mark sharing status
└─ Failed  → Empty array → Continue (app marked as not shared with tenant)

Apps with failed API calls are inventoried with incomplete sharing data; next sync retries.

Documentation

  • Added docs/troubleshooting/sync-helper-apps-role-assignment-failure.md: root cause, resolution options, prevention
  • Updated docs/troubleshooting/README.md
Original prompt

This section details on the original issue you should resolve

<issue_title>[CoE Starter Kit - BUG] SYNC HELPER - Apps</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 - Apps' getting failed at 'Get_App_Role_Assignments_as_Admin' action and error is '' even the app is present in the tenant.
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 - Apps

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 SYNC HELPER – Apps (CoE Core 4.50.6) fails at Get_App_Role_Assignments_as_Admin with a blank error even though the app exists. Check PPA/Graph permissions, connector auth, environment scoping/filters, and pagination/timeout behavior. Provide the root cause and the steps to fix so the action succeeds and the flow completes</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.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

…_Assignments_as_Admin

Co-authored-by: AmarSaiRam <220305901+AmarSaiRam@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix SYNC HELPER - Apps error at Get_App_Role_Assignments_as_Admin Add error handling for Get_App_Role_Assignments_as_Admin in SYNC HELPER - Apps Jan 29, 2026
Copilot AI requested a review from AmarSaiRam January 29, 2026 09:53
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 - Apps

2 participants