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 :
Small and medium business | Business Central, N...
Suggested Answer

Deleting a workflow with Step Instances Active

(0) ShareShare
ReportReport
Posted on by 145

Hello Community, 

I setup a Workflow template for Credit Limit changes, and after some config must have deleted a step.
I would like to delete the Workflow however 

Screen-Shot-2022_2D00_03_2D00_30-at-8.42.42-PM.png

"You cannot delete the workflow because active workflow step instances exist."
How to remove/end/ archive the workflow instances stuck, we cannot post any work for the affected Customers
You cannot use Customer: CUS-0000017 for this action. The restriction was imposed by the MS-CCLCAPW-01 workflow, Customer Credit Limit Change Approval Workflow.
Thank you 
Peter
I have the same question (0)
  • Suggested answer
    Dallefeld Profile Picture
    211 User Group Leader on at

    I'm assuming that you have disabled the workflow. Unfortunately, if you had records in 'pending approval' status, they will need to complete before you can delete the workflow. Do you have a test company where the steps may exists completely?

  • Peter Waugh Profile Picture
    145 on at

    Hi Kim,

    Yes, disabled, No, these are setup in production only. someone try and fix, and now the steps have been deleted, so i cannot repeat the process in sandbox ! 

    This has come from a MS Template,  and with changes, with the open worflow steps looping knowhere, we cannot post any sales orders or use that Customer card, do to locked header

    I am really not sure how to delete workflow steps, or archive them !

    Peter

  • Suggested answer
    Marco Mels Profile Picture
    on at

    Hello,

    Please raise this as an issue to Microsoft support via your partner or CSP.

    Thanks.

  • Suggested answer
    Community Member Profile Picture
    on at

    Create a Config Pack, add the Workflow Step Instance table, export the entries to excel. Delete all the entries that you dont care about in excel. The ones remaining you can change the status and reimport (Dont use Validate field on any fields in the table). When you have imported the status will not be active and you can delete.

    Otherwise, have you got an answer from Microsoft as yet?

    I've just had similar.

    We used "Create from Template" for Approve Payments, and didnt change it at all. It still gets stuck.

    We create a payment journal line, send for approval, approve, then come back to post and it says "Cant complete because active step instances in Workflow XXXXX"

    Its very annoying, and we couldn't get around it. I ended up renaming the journal batch, creating a new one with the USD batch name and because the workflow was then disabled, I could post. Previously, without renaming, it didnt matter if I canceled the approval, then deleted the lines, then created a new line when the workflow was not enabled, and it still have the same issue "Batch USD needs approval".

    Unfortunately still buggey.

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 > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,229

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,867 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,153 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans