HELP!!! Page Flows Workflow with id "xxxx "not found in state persistence store.

Topics: Web Client Software Factory, Project Management Forum, UIP Application Block discussion, User Forum
Aug 7, 2007 at 3:32 PM
I`m trying to make PageFlow application using Web Client Software Factory June 2007. I`v created Table&Storedprocedure by executing .sql files:SqlPersistenceServiceLogic.sql,SqlPersistenceServiceSchema.sql,TrackingLogic.sql,TrackingSchema.sql
and PageFlowInstanceStore.sql in WCSF Source folder.
i`v added to web.config ConfigSections and PageFlow section and HttpModule that it show in WCSF Manual.
i`v changed Connection Strings in web.config.
i`v create buisness module and page flow project i`v designed page flow.
i`v added page flow definition with snippets in my module controller.
i start my application one time it works but when i start it second time it give me error on:
public IPageFlow MyPageFlow
{
get
{
if (_myPageFlow == null)
{
_myPageFlow = _pageFlowProvider.GetPageFlow(typeof(AdminPageFlow)); //That Line with exception : Workflow with id "765cf9c7-9311-4e19-9e15-87abeb60b479" not found in state persistence store.
}
return _myPageFlow;
}
}
i don`t know where is problem. i`v changed referenced dll` to thouse sources: Microsoft.Practices.PageFlow,Microsoft.Practices.PageFlow.Storage.EnterpriseLibrary,Microsoft.Practices.PageFlow.WorkflowFoundation and execute my app step by step. there was exception at
public IPageFlow GetPageFlow(Type pageFlowType, Guid instanceId)
{
InitializeWorkflowRuntime();

WorkflowInstance instance;
try
{
instance = _runtime.GetWorkflow(instanceId); //this line
}
catch (IndexOutOfRangeException ex)
{
throw new PageFlowException( String.Format(CultureInfo.CurrentCulture, Resources.PageFlowInstanceNotValid,
pageFlowType.AssemblyQualifiedName, instanceId), ex);
}

WorkflowFoundationPageFlowDefinition definition = GetOrCreateDefinition(pageFlowType, instance);

return new WorkflowFoundationPageFlow(instance, _navigationService, definition);
}
Pleace HELP anyone !!!!!!!!!!!!!! :((((((((((
Aug 7, 2007 at 4:56 PM
Hi!

This problem can happen if you have an instance of a page flow suspended or running persisted at the database.

Please, read the following post:

http://www.codeplex.com/websf/Thread/View.aspx?ThreadId=3752

That error typically appears when you have a page flow instance stored in the page flow instance store that doesn't exist in the WF state persistence store. So when you run the application, the HttpModule of the Page Flow block thinks that there is a page flow instance suspended that has to be suspended and it fails because it doesn't exist in the page flow state data base.
Did you clean up both page flow tables, the pageFlow_InstanceStore and InstanceState?


http://www.codeplex.com/websf/Thread/View.aspx?ThreadId=10367

To solve this problem, go to your database manager and delete the page flow instance with the id “xxxx” from the tables InstanceState and pageflow_InstanceStore.


Other possible solutions are commented in following post:
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=371851&SiteID=1
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=308581&SiteID=1

Also, you can also see the Reference Implementation and the Page Flow Quickstart for an example implementation of the Page Flow project.

Hope it helps!

Sebastian Iacomuzzi
http://staff.southworks.net/blogs/siacomuzzi
Jan 7, 2010 at 1:15 PM

Hello everybody:

I'm also experiencing a similar problem but this time regarding wcsfcontrib-20756. I enabled my site for Page Flow as suggested in the guidance package and it generated the required entries in my web.config. However, when I execute  this.ModulePageFlow.Start(); for the first time I receive the following exception:

Work flow with id XXX-XXXX not found in state persistence store.

Anyone who has come accross this? Please, any help would be appreciated.

Oscar Contreras C.