web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

Workflow Security role participants error

(0) ShareShare
ReportReport
Posted on by 87

Hello,

I created a custom workflow with my own type of participant. The workflow consists of 3 approval stages. The first two being from my custom type of participant which works perfectly fine.

On the last approval step, I chose the type of participant to be "Security role participants" and chose the specific role I created where users are assigned to that security role. However, I get the following error as the workflow runs after the 2nd user approves the request. Its not retrieving the users from the security role that I created.

Stopped (error): X++ Exception: This workflow cannot continue processing because no users were retrieved for the current workflow step. Contact your system administrator.
at SysWorkflowServiceProvider-resolveParticipant
SysWorkflowQueue-resume

pastedimage1663573488259v1.png

pastedimage1663574460363v1.png

Thank you.

I have the same question (0)
  • Komi Siabi Profile Picture
    13,229 Most Valuable Professional on at

    Hi Anthonymgy,

    Did you create this security role in Visual studio or from the security configuration page?

  • Anthony90288 Profile Picture
    87 on at

    Hi Komi,

    I created the security role directly from Visual Studio

  • Komi Siabi Profile Picture
    13,229 Most Valuable Professional on at

    I see,

    I am afraid, if custom security roles are able to work when used in workflow configuration.

    This is something, I have not tried before now.

    I would love to explore it and see if I get same error as you.

  • Verified answer
    GirishS Profile Picture
    27,843 Moderator on at

    Hi Anthonymgy,

    Please see class "WorkflowRoleParticipantProvider" -  Method name - "resolve".

    This method is used to assign the list of users from the security role mentioned in the workflow configuration as the workflow approvers.

    Thanks,

    Girish S.

  • Anthony90288 Profile Picture
    87 on at

    Thanks for the suggestion. I fixed the error as I realized I had an extension class of WorkflowRoleParticipantProvider where COC custom logic was written so when I added the logic there it worked.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Abhilash Warrier Profile Picture

Abhilash Warrier 668 Super User 2026 Season 1

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 630 Super User 2026 Season 1

#3
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 581

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans