Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I am experiencing a strange problem with a VS workflow deployed to the server.

The workflow that runs when an item is added triggers fine (OnWorkflowActivated). After this there is a condition where the values of one of the fields in that item is changed. In order to check if the item has changed I have written a condition workflowProperties.Item.Update() followed by OnWorkflowItemChanged().

When the workflow is activated for the first time in a day it always fails. Any request after the first one goes thru fine. Nothing gets logged in the Log folder either.

Has anyone experienced this problem?

share|improve this question
    
not sure what you mean by "After this there is a condition where the values of one of the fields in that item is changed. In order to check if the item has changed I have written a condition workflowProperties.Item.Update()" –  Jaap Vossers Dec 7 '09 at 13:12

1 Answer 1

It may has to do with the application start process, maybe you recycle the application every day at night, and in the morning while the application starts again, triggers an exception on the application start event... you may have to add an application_error event listener on the global asax to check for any errors and log it to the event log.

hope it helps.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.