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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Workflow failed to create a session

(0) ShareShare
ReportReport
Posted on by 6,478
Hello,
We are getting below error message when we submit the workflow to approve the free text invoice
 
/Stopped (error): X++ Exception: Failed to create a session;
confirm that the user has the proper privileges to log on to Microsoft Dynamics 365 for Finance and Operations.
at SysWorkflowDocument-assert
SysWorkflowDocument-assertPermission
SysWorkflowWorkItem-create SysWor/
 
Currently we just test this workflow and we only have 1 condition based on the invoice amount and the 2 (true / false) approvals, but without any automatic action and without /use final approver/. So there are no users defined on workflow.
Only user I see on workflow setting is the /Owner/ which does exist in the system as Administrator.
I also analyzed the partitions and Admin user based on some googling. In this environemnt we have 1 partition and 1 admin user is enabled.
 
Any idea what the problem might be?
 
Thanks
I have the same question (0)
  • Suggested answer
    Waed Ayyad Profile Picture
    9,039 Super User 2025 Season 2 on at
     
    Did you check the Workflow configuration? for which user the approval is going? also make sure the user is AX user in the list of users screens and check the security roles that you assigned to the approval user.
     
     
    Regards,
    Waed Ayyad
     
    Please mark this answer as "Verified" if it solved your issue. In order to help others who will face a similar issue in the future
     
  • Johnny Profile Picture
    6,478 on at
    Hi Waed,
    as explained I do not see any user in the workflow configuration.
    I see only "Owner" and he is in the list of users
  • Waed Ayyad Profile Picture
    9,039 Super User 2025 Season 2 on at
    Hi @vuivui,
     
    You have the same issue? Can you share you WF configuration?
     
     
    Regards,
    Waed Ayyad
    Please mark this answer as "Verified" if it solved your issue. In order to help others who will face a similar issue in the future
     
  • André Arnaud de Calavon Profile Picture
    301,109 Super User 2025 Season 2 on at
    Hi Johnny,
     
    Can you share a screenshot of the workflow configuration? You mentioned 2 approvals. Is the owner configured to act the approval?
  • Kevin Xia Profile Picture
    Microsoft Employee on at
    Hi,
    Can you provide more information, such as the configuration of the workflow, or the flowchart, to help us better solve the problem for you? The current information is not sufficient to support our judgment on your issue.
    Best regards,
    Kevin
  • Johnny Profile Picture
    6,478 on at
    Hi all,
    below screenshots from Workflow.
     
    This is how workflow looks like. Condition based on amount (Let's say if total amount > 1000 true, else false). and 2 approvals.
     
    Then, yes, it's not very logical right now, but we just test it. Both approvals (true and false) looks exactly the same. No Automatic actions are defined and no Final approval. 
    So based on this configuration it should go through without any problems right?
     
    As I explained, only user I see in workflow configuration is a "Owner" who is System Administrator in D365
  • Suggested answer
    Waed Ayyad Profile Picture
    9,039 Super User 2025 Season 2 on at
    Hi @vuivui,
     
    Can you double click on the approval step, you will get a new button called assignment type in the action pane, click on it and send us the screenshot of its setup.
     
     
     
    Regards,
    Waed Ayyad
     
  • Johnny Profile Picture
    6,478 on at
    Hello Waed,
    there are following setups and I describe below what happens when I click on each of it
    Participant ==> Assigment: Role Based: (Custom role name)
    Hierarchy ==> When I click on it it shows error: "Stop condition: You must specify stop condition for hierarchical assignment". Assigment: Hieraqrchy based: starting from Workflow originator
    Workflow user ==> Assigment: Role based: Workflow originator
    User ==> Assigment: it's empty. I get error "Users: You must select at least one user"
    None ==> Error "None isn't supported"
  • Suggested answer
    Waed Ayyad Profile Picture
    9,039 Super User 2025 Season 2 on at
    Hi @vuivui ,
     
    It seems you don't set the assignment type setup. Which type do you want to use? for example, if you chose user, then you should select Ax user. As in the below image
    also, you should enter message by double click on the warning, then you can enter a subject and instruction. the click close, then save and close and then choose to activate new version. 
     
     
     
     
     
     
     
     
     
    Regards,
    Waed Ayyad
    Please mark this answer as "Verified" if it solved your issue. In order to help others who will face a similar issue in the future
     
  • Suggested answer
    André Arnaud de Calavon Profile Picture
    301,109 Super User 2025 Season 2 on at
    Hi,
     
    In case the settings are set to have the assignment role based, check if all users assigned to the custom role have correct login settings. During the approval task assignments, it might fail in case of incorrect settings for the users.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
Martin Dráb Profile Picture

Martin Dráb 451 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 428 Super User 2025 Season 2

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 239 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans