Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

D365 FO Execute action - Workflow Workitem complete - Error

(2) ShareShare
ReportReport
Posted on by 40

Hello All,

 

I am trying to complete D365 Workflow Workitem using Power Automate. I am using D365 Execute action and its failing continuously. Can anyone please help . 

 

Pratik6_0-1711726964192.png

 

Error - 

An error has occurred. Exception occurred while executing action complete on Entity WorkflowWorkItem: Unable to complete because action is not in a state that can be completed. Exception has been thrown by the target of an invocation.
clientRequestId: 1ad7232a-0b7f-41df-9dca-423a7ceef526

 

Steps to reproduce the issue - 

  1. Create flow with template - Complete Dynamics 365 for Finance and Operations workflow work items (PU29)
  2. Assign D365 workflow workitem as trigger 
  3. Submit D365 FO workflow used as trigger above
  4. It will trigger this flow and try to complete workitem in D365 (which is failing)

I am facing same issue for multiple clients and raised support case with MS support as well but no resolution yet.  

  • PratikK Profile Picture
    40 on at
    D365 FO Execute action - Workflow Workitem complete - Error
    Hello All,
     
    I again started facing this issue. It was working for last couple of months. Is anyone facing the same? Any resolutions? 
     
  • Justin Berry Profile Picture
    10 on at
    Re: D365 FO Execute action - Workflow Workitem complete - Error

    Hey Mikkel, It's a MS fix. There was a bug in some validation logic in versions prior to 41 (Issue #936599). To fix it Support should enable the kill switch flight VendInvoiceCheckDupNumInRunningWorkflowFlight.

     

    Cheers,

    JB

  • mikkelhansen Profile Picture
    3 on at
    Re: D365 FO Execute action - Workflow Workitem complete - Error

    Hi Steve
    What was the solution to the issue? I experience the same thing after version .39 - is it something, we can solve or did Microsoft do something in order to resolve the issue 

  • SteveMcGraw Profile Picture
    19 on at
    Re: D365 FO Execute action - Workflow Workitem complete - Error

    Justin,

     

    They confirmed the change only affects new validation code, so we had them turn it on and it resolved the issue. Thanks for your help!

  • Justin Berry Profile Picture
    10 on at
    Re: D365 FO Execute action - Workflow Workitem complete - Error

    It's a temporary fix I would say. MS still has to get the validation code working correctly. As it stands it seems that validation "isn't working", hence the "bug" nature of it all. I would say to unblock things, just ask support to use the flight kill switch, but keep an eye out for a Quality Update hotfix to actually correct the code.

  • SteveMcGraw Profile Picture
    19 on at
    Re: D365 FO Execute action - Workflow Workitem complete - Error

    Thanks Justin, is that the fix or a workaround? I don't know what unintended consequences this would have. Thank you!

  • Justin Berry Profile Picture
    10 on at
    Re: D365 FO Execute action - Workflow Workitem complete - Error

    I got them to submit a bug as well... There is a kill switch flight for the new code that they can enable to fix the issue, it's on the VendInvoiceCheckDupNumInRunningWorkflowFlight...

  • SteveMcGraw Profile Picture
    19 on at
    Re: D365 FO Execute action - Workflow Workitem complete - Error

    Bug submitted by MS support

  • SteveMcGraw Profile Picture
    19 on at
    Re: D365 FO Execute action - Workflow Workitem complete - Error

    Our consultant is going to meet with microsoft tech support and demonstrate the error in the code. Shout out to HSO, they do great work!

  • Justin Berry Profile Picture
    10 on at
    Re: D365 FO Execute action - Workflow Workitem complete - Error

    Adding our SR to the very same puppy pile, 2405030010004870... MS support has not had much to say as of yet...

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 566 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 516 Super User 2025 Season 1

#3
stampcoin Profile Picture

stampcoin 492