Click here to Skip to main content
15,921,643 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi .

We have sharepoint sequential workflow written in vs2008.
We have a new problem with this 3 step approval workflow. OntaskCreated event does not always fire. And in the workflow historyxxworkflow failed to run (2 times with 10 minutes break ) or something like that beaucase we are using Turkish version.And this occaionaly error occurs in second approval state.

Sequence is : CreateTask->on task Created ->code Activity -> Log->On task changed ->Code Activity

There is no while in the workflow because workflow cannot break the while ( sometimes ) somehow.

We assing task ID in runtime with generating Guid to the CreateTask (with content type ) and all other task contents like ontask created , task change and complete task uses CreateTask1.TaskID and we set the values from the properties of the task not in runtime.

Because of Ontaskcreated event not firing , workflow going to deadlock because we cannot determine the task change and other things.And all sequence corrupted for this error.


Is there any idea to solve this problem or Is Ontaskcreated Event has a Bug ?

One of the idea is not using ontaskcreated event because this object has a bug.Any open idea ?

And Note That :

* All of the approve step have different corelection token
* CreateTasks event has always unique ID ( assinging in runtime )
* all code blocks has try catch for logging ( there is no error in the logs )
* Sequential workflow Fault handler for Spex and System.ex is activated for logging ( there is no error in the errors)

Win 2003 Server,Sharepoint 2007 sp1 + sp2,Framework 3.5

Thanks..
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900