Quantcast
Channel: Project Customization and Programming forum
Viewing all articles
Browse latest Browse all 5347

Error implementing Project Server 2010 Workflow

$
0
0

Set up: All (Sharepoint, Project Server, Web App, DB) installed on the same server (no farm implementation)

Created the Phases, Stages and EPT using the PWA

Created a simple workflow in Visual Studio 2010, to switch to next stage after each

Built, Deployed, Restarted the required services

Mapped EPT to deployed workflow

Created a new project entry in the Project Center

a. Able to save the info in the Project Details Page

b. On save (I get a series of prompt which gets logged in the log queue. After I get the Project Workflow Check-in)

c. Then I get this message "Unable to open the project.  The workflow associated with the project has been terminated unexpectedly.  Please contact your system administrator."

d. Here is the series of

-----------------------------messages logged as workflow in PWA-------------------------

12:12 PM Workflow Initiated No presence information projectSequence1: Completed successfully.
 12:12 PM Comment No presence information
setTaskInfoCollection: One or more required fields are not filled or the activity is configured to always wait for a submit.
 12:13 PM Comment No presence information
setTaskInfoCollection: Completed successfully.
 12:13 PM Error No presence information LeadApproval: The workflow is unable to continue because of the following error or errors: WorkflowStatusCannotUpdateStatus
 12:13 PM Error No presence information An error has occurred in WorkflowProject5 - Workflow1.

------------------Logs from ULS-----1----------------------

System.Web.Services.Protocols.SoapException: ProjectServerError(s) LastError=WorkflowStatusCannotUpdateStatus Instructions: Pass this into PSClientError constructore to access all error information    
 at Microsoft.Office.Project.Server.WebServiceProxy.PWA.WorkflowUpdateWorkflowStatus(WorkflowDataSet workflowDS)    
 at Microsoft.Office.Project.Server.Workflow.PSWorkflowService.SetInitialStages(ProjectWorkflowContext workflowContext, DataSet stageInfo)    
 at Microsoft.Office.Project.Server.Workflow.ProjectSequence.SetInitialStages(ActivityExecutionContext context)    
 at Microsoft.Office.Project.Server.Workflow.ProjectSequence.Execute(ActivityExecutionContext context)    
 at System.Workflow.ComponentModel.ActivityExecutor`1.Execute(T activity, ActivityExecutionContext executionContext)    
 at System.Workflow.ComponentModel.CompositeActivityExecutor`1.Execute(T activity, ActivityExecutionContext executionContext)    
 at System.Workflow.ComponentModel.ActivityExecutor`1.Execute(Activity activity, ActivityExecutionContext executionContext)    
 at System.Workflow.ComponentModel.ActivityExecutorOperation.Run(IWorkflowCoreRuntime workflowCoreRuntime)    
 at System.Workflow.Runtime.Scheduler.Run()

------------------Logs from ULS-----2----------------------

PWA:http://nhthqnvdi010/PWA, ServiceApp:Project Server Service Application, User:ADDOT\nhtsaman, PSI: SqlException occurred in DAL:  <Error><Class>1</Class><LineNumber>1</LineNumber><Number>2627</Number><Procedure></Procedure>  <Message>  System.Data.SqlClient.SqlError: Violation of PRIMARY KEY constraint 'PK_MSP_WORKFLOW_STATUS'. Cannot insert duplicate key in object 'dbo.MSP_WORKFLOW_STATUS'.  </Message>  <CallStack>    
 at System.Data.Common.DbDataAdapter.UpdatedRowStatusErrors(RowUpdatedEventArgs rowUpdatedEvent, BatchCommandInfo[] batchCommands, Int32 commandCount)    
 at System.Data.Common.DbDataAdapter.UpdatedRowStatus(RowUpdatedEventArgs rowUpdatedEvent, BatchCommandInfo[] batchCommands, Int32 commandCount)    
 at System.Data.Common.DbDataAdapter.Update(DataRow[] dataRows, DataTableMapping tableMapping)    
 at System.Data.Common.DbDataAdapter.UpdateFromDataTable(DataTable dataTable, DataTableMapping tableMapping)    
 at System.Data.Common.DbDataAdapter.Update(DataTable dataTable)    
 at Microsoft.Office.Project.Server.DataAccessLayer.DAL.SubDal.HandleUpdateDataTable(SqlDataAdapter sqlDa, DataTable updates, DataRowState operations)  </CallStack>  </Error>

I have no idea where am doing anything wrong, require help from the experts.

Thanks for your help in advance



Viewing all articles
Browse latest Browse all 5347

Trending Articles



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