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 Invalid Operation fault

(0) ShareShare
ReportReport
Posted on by 103

Hi,

I have an Annual Leave workflow configured where a leave request first goes to the worker's direct line manager, (hierarchy level 1) and then onto the Human Resource Manager security Role.  All works correctly.  However, if the line manager selects Deny rather than approve, although the status of the request correctly updates to Denied, in the workflow history, it errors with the following fault:

"Stopped (error): Invalid operation - the state transition from Denied state to InReview state is invalid."

Although the outcome is as the client requires, the fault in the workflow history is bothering them.  I haven't been able to prevent this error, which I am guessing is because the workflow is trying to move onto the final stage but can't because of the deny action.

Has anyone come across this before and is there a way to prevent the fault in the workflow history?

Thank you

  • Suggested answer
    JABA BARBOSA Profile Picture
    10 on at
    RE: Workflow Invalid Operation fault

    Thanks Mancini for your feed back.

    I realized the steps that you mentioned and my workflow is working now.

    Regards

  • Suggested answer
    Mancini Magic Profile Picture
    103 on at
    RE: Workflow Invalid Operation fault

    Hi,

    Yes, Microsoft technical support pointed out that the workflow needed a conditional decision adding to pick up the deny and if true then end the workflow.  If false, then it can carry on to the next step in the workflow.  The deny was working but the workflow was left hanging because it didn't know what step to go to next.  By adding the conditional decision and if true sending it straight to end, the workflow then finishes neatly with no error

    pastedimage1642410742524v1.png

    Hope this resolves your error too

  • JABA BARBOSA Profile Picture
    10 on at
    RE: Workflow Invalid Operation fault

    Hi, I have the same issue, does someone found a solution?

    i'll appreciate any comments

  • Mancini Magic Profile Picture
    103 on at
    RE: Workflow Invalid Operation fault

    Thanks for the response, Andre.  After trying a lot of different solutions, I think raising a ticket is the best option.

    Regards

  • Mancini Magic Profile Picture
    103 on at
    RE: Workflow Invalid Operation fault

    Many thanks for the response, Agne.

    I had the same idea and did try including a condition but couldn't manage to capture the status before the error.

    Regards

  • Suggested answer
    Agne Petkute Profile Picture
    on at
    RE: Workflow Invalid Operation fault

    Hello Mancini, 

    I have looked at your question and believe that adding a conditional statement prior to the Human Resource Manager approval might solve the issue. It could look like that. 

    pastedimage1600259159414v1.png

    pastedimage1600259177680v2.png

    However, it is hard to advice you as I have not seen the set up of your workflow. If my suggestion has not helped, please submit a support request and add the extract of the workflow (Personnel management | Links | Human resource workflows | select the WF | Versions | Export). This would help us to troubleshoot specifically for your scenario. 

  • Suggested answer
    André Arnaud de Calavon Profile Picture
    294,791 Super User 2025 Season 1 on at
    RE: Workflow Invalid Operation fault

    Hi Mancini,

    I would suggest to create a ticket for Microsoft Support as it sounds like a bug to me.

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

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

#1
Martin Dráb Profile Picture

Martin Dráb 372 Most Valuable Professional

#2
Abhilash Warrier Profile Picture

Abhilash Warrier 291

#3
Saalim Ansari Profile Picture

Saalim Ansari 209

Overall leaderboard

Product updates

Dynamics 365 release plans