Quantcast
Channel: SharePoint Legacy Versions - Using SharePoint Designer, InfoPath and Other Customizations Forum
Viewing all articles
Browse latest Browse all 2319

Workflow running on deleted list item

$
0
0

Hi All,

I've put together a workflow that has a 1 hour delay in it to check for a certain date and time on a list item.  That runs fine and I don't have any problem with that.

When it was moved to the production server there were a few test items added to make sure it worked.  One of these items has been deleted while the workflow was still running.  I go into Workflow Settings in the List Settings and the workflow is showing 1 instance running but there are no items on the list.  Normally, I wouldn't worry about this as it doesn't seem to be doing any harm.

However, because of the importance of the workflow - there's a try catch block that emails me in case of an error in any of the steps.  So every hour, this workflow emails me to tell me that there's no list item.

Is there anyway I can stop this instance from running without the list item?  All the stuff on the web talks about using the list item.  Can I do it in code from the workflow association on the list or anything similar?

Mike


Viewing all articles
Browse latest Browse all 2319

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>