Screenshot:
General error message:
Reporting message processor failed:
ReportingProjectChangeMessageFailed (24006) – The INSERT statement conflicted with the FOREIGN KEY constraint “FK_MSP_EpmTaskBaseline_ProjectUID_TaskUID”. The conflict occurred in database “DB_Reporting”, table “dbo.MSP_EpmTask”. The statement has been terminated.. Detalhes: id=’24006′ name=’ReportingProjectChangeMessageFailed’ uid=’faa290f5-7c9a-4a88-bb43-29c2e047896e’ QueueMessageBody=’Project UID=’7a6aa976-ab1e-4287-b58b-191c4e9f2a5e‘. PublishType=’ProjectPublish” Error=’The INSERT statement conflicted with the FOREIGN KEY constraint “FK_MSP_EpmTaskBaseline_ProjectUID_TaskUID”. The conflict occurred in database “DB_Reporting”, table “dbo.MSP_EpmTask”. The statement has been terminated.’.
ReportingProjectChangeMessageFailed (24006) – The INSERT statement conflicted with the FOREIGN KEY constraint “FK_MSP_EpmTaskBaseline_ProjectUID_TaskUID”. The conflict occurred in database “DB_Reporting”, table “dbo.MSP_EpmTask”. The statement has been terminated.. Detalhes: id=’24006′ name=’ReportingProjectChangeMessageFailed’ uid=’bbadd3b8-6560-4ea4-8672-eb1591c4eb7c’ QueueMessageBody=’Project UID=’7a6aa976-ab1e-4287-b58b-191c4e9f2a5e’. PublishType=’ProjectPublish” Error=’The INSERT statement conflicted with the FOREIGN KEY constraint “FK_MSP_EpmTaskBaseline_ProjectUID_TaskUID”. The conflict occurred in database “DB_Reporting”, table “dbo.MSP_EpmTask”. The statement has been terminated.’.
ReportingProjectChangeMessageFailed (24006) – The INSERT statement conflicted with the FOREIGN KEY constraint “FK_MSP_EpmTaskBaseline_ProjectUID_TaskUID”. The conflict occurred in database “DB_Reporting”, table “dbo.MSP_EpmTask”. The statement has been terminated.. Detalhes: id=’24006′ name=’ReportingProjectChangeMessageFailed’ uid=’77b417c5-da4f-43d6-ab99-7dee4bc08c88′ QueueMessageBody=’Project UID=’7a6aa976-ab1e-4287-b58b-191c4e9f2a5e’. PublishType=’ProjectPublish” Error=’The INSERT statement conflicted with the FOREIGN KEY constraint “FK_MSP_EpmTaskBaseline_ProjectUID_TaskUID”. The conflict occurred in database “DB_Reporting”, table “dbo.MSP_EpmTask”. The statement has been terminated.’.
ReportingProjectChangeMessageFailed (24006) – The INSERT statement conflicted with the FOREIGN KEY constraint “FK_MSP_EpmTaskBaseline_ProjectUID_TaskUID”. The conflict occurred in database “DB_Reporting”, table “dbo.MSP_EpmTask”. The statement has been terminated.. Detalhes: id=’24006′ name=’ReportingProjectChangeMessageFailed’ uid=’ec4e5993-6f3a-4242-b321-754d9b85437f’ QueueMessageBody=’Project UID=’7a6aa976-ab1e-4287-b58b-191c4e9f2a5e’. PublishType=’ProjectPublish” Error=’The INSERT statement conflicted with the FOREIGN KEY constraint “FK_MSP_EpmTaskBaseline_ProjectUID_TaskUID”. The conflict occurred in database “DB_Reporting”, table “dbo.MSP_EpmTask”. The statement has been terminated.’.
ReportingProjectChangeMessageFailed (24006) – The INSERT statement conflicted with the FOREIGN KEY constraint “FK_MSP_EpmTaskBaseline_ProjectUID_TaskUID”. The conflict occurred in database “DB_Reporting”, table “dbo.MSP_EpmTask”. The statement has been terminated.. Detalhes: id=’24006′ name=’ReportingProjectChangeMessageFailed’ uid=’2b4e5ca3-98d4-4bce-a4fe-27d83503d886′ QueueMessageBody=’Project UID=’7a6aa976-ab1e-4287-b58b-191c4e9f2a5e’. PublishType=’ProjectPublish” Error=’The INSERT statement conflicted with the FOREIGN KEY constraint “FK_MSP_EpmTaskBaseline_ProjectUID_TaskUID”. The conflict occurred in database “DB_Reporting”, table “dbo.MSP_EpmTask”. The statement has been terminated.’.
ReportingProjectChangeMessageFailed (24006) – The INSERT statement conflicted with the FOREIGN KEY constraint “FK_MSP_EpmTaskBaseline_ProjectUID_TaskUID”. The conflict occurred in database “DB_Reporting”, table “dbo.MSP_EpmTask”. The statement has been terminated.. Detalhes: id=’24006′ name=’ReportingProjectChangeMessageFailed’ uid=’317ed405-3081-4e8b-a899-825a0968d9b9′ QueueMessageBody=’Project UID=’7a6aa976-ab1e-4287-b58b-191c4e9f2a5e’. PublishType=’ProjectPublish” Error=’The INSERT statement conflicted with the FOREIGN KEY constraint “FK_MSP_EpmTaskBaseline_ProjectUID_TaskUID”. The conflict occurred in database “DB_Reporting”, table “dbo.MSP_EpmTask”. The statement has been terminated.’.
Queue:
GeneralQueueJobFailed (26000) – ReportingProjectPublish.ReportProjectPublishMessageEx. Detalhes: id=’26000′ name=’GeneralQueueJobFailed’ uid=’17d35b4d-b58a-40fc-96a4-9a0f1774f3cf’ JobUID=’50ad5fc3-a1d2-41d4-ac98-98bb11e445a8′ ComputerName=’EPMGERBA04′ GroupType=’ReportingProjectPublish’ MessageType=’ReportProjectPublishMessageEx’ MessageId=’1′ Stage=”. Para obter detalhes, verifique os logs ULS no computador EPMGERBA04 para ver as entradas com JobUID 50ad5fc3-a1d2-41d4-ac98-98bb11e445a8.
Solution:
Run this script on the SQL instance that hosts yours Project Server 2010 databases.
Note: Change the databases names to apply to your environment. In my case the names are DB_Draft, DB_Published, DB_Reporting, DB_Archive.
declare @proj nvarchar (50)
set @proj = ‘7a6aa976-ab1e-4287-b58b-191c4e9f2a5e‘
delete from DB_Draft.dbo.MSP_TASK_BASELINES
where DB_Draft.dbo.MSP_TASK_BASELINES.PROJ_UID = @proj and DB_Draft.dbo.MSP_TASK_BASELINES.TASK_UID NOT IN (
select TASK_UID
from DB_Draft.dbo.MSP_TASKS
where PROJ_UID =@proj
)
delete from DB_Published.dbo.MSP_TASK_BASELINES
where DB_Published.dbo.MSP_TASK_BASELINES.PROJ_UID = @proj and DB_Published.dbo.MSP_TASK_BASELINES.TASK_UID NOT IN
(
select TASK_UID
from DB_Published.dbo.MSP_TASKS
where PROJ_UID =@proj
)