My workflow starts off with "If Name begins with 'Sent_'..update item" and all those fields I'm updating are different "Status" fields being set to Draft. If I publish the workflow, without changing anything, the first new file that uses the workflow succeeds. After that, all other workflows fail until I publish it (again, without changing any steps at all). What could this mean?
Also, it works 100% of the time when files are copied from using an Event Receiver and the SPFileCollection.Add method, but it fails (after the first success) when files are copied using the Copy.asmx web service even if they all contain the same metadata. The only difference I see in the copied files is that the Copy webservice leaves a link saying "This file is a copy of ____" with a link to the original file.
The only time I can make the workflow work on files that have been copied with the web service is when I put in a "Pause for 1 min" action.. I noticed something similar on another project when I tried to rename the file too soon in a workflow which ran on create. So the issue could be that I'm checking the filename too soon. It's nice that I can make it work with this delay, but my work environment is set up so that a 1 minute pause can actually take up to 10 minutes to start. What is a better way to wait until the copied file is "ready" for me to make updates to it aside from a pause? The "Wait for field change" action would be nice to leverage here, but I can't think of any field to wait on.
I know this is a very open question with lots of possible explanations, but I'm willing to look at any possibilities right now.