Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

Microsoft Dynamic CRM - Workflow ID not found when saving record

Posted on by Microsoft Employee

My production application hit this error when trying to save a record. Previously there was a workflow to trigger once record was saved. This workflow was then being deactivated and removed. New workflow with same name was being created. However, the application is still calling the old workflow. Checked thru the workflowbase, workflowbaseid, LocalizedLabel, WorkflowWaitSubscriptionBase, WorkflowDependencyBase, WorkflowLogBase, and WorkflowWaitSubscriptionBase tables but unable to find the missing workflow id. Do you have any idea how the removed workflowid is being called? How to resolve this?

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Microsoft Dynamic CRM - Workflow ID not found when saving record

    Hi, thanks for your reply. I have searched thru all the programs and the workflow I'd is not hardcoded. The workaround is replacing a new workflow with this missing workflow I'd in workflow table, then the problem resolved. Pls ensure the replaced workflow with type 1 else one of the job in crm job editor will remove it. This is not recommended workaround, but we have no choice as no clue how it happened. Hope this is useful for those experience the same.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Microsoft Dynamic CRM - Workflow ID not found when saving record

    Hi! 

    You get a new ID, when you create a new WF. In your WF the old WF ID should be changed to a new WF ID. Using of harcoded ID in JS or in C# is not a good practice. It would be better to use a function to get ID by the name. In this case, your solution will be more flexible.

    Hope this helps

     

    Vlad

    dynamicalabs.com

    Disclaimer: Any post on this page provided "as is" without warranty of any kind and is for educational and information purposes only. We disclaim any liability arising from any reliance placed on any post

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans