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
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.
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
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
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,253 Super User 2024 Season 2
Martin Dráb 230,188 Most Valuable Professional
nmaenpaa 101,156