A project is displayed on the project list page twice. The internal ID shown in the URL when clicking into any of the the duplicated project are the same; when querying the inv_investments table for that internal ID or project name or project code only one row is returned.
The user who last updated the project was trying to create a baseline and encountered an error displayed in a pop-up. Unfortunately the user does not remember any details as to what the error was or what was done right before getting the error. The baseline cannot be found on the project or the database so looks like it never got created.
What is causing the project to display twice and how to resolve it?
The steps to reproduce are unknown, but the query for generating the project list filtered result was retrieved from an Action Trace:
A simplified query can be run to see the problem:
select * from inv_investments inv_investments LEFT OUTER JOIN prj_ev_history EVREC ON EVREC.OBJECT_ID = INV_INVESTMENTS.ID AND EVREC.OBJECT_TYPE='PROJECT' AND EVREC.PERIOD_NUMBER=0 where inv_investments.id = 5111008 --5111008 should be replaced by your project's internal ID
A query to identify all duplicates:
SELECT OBJECT_ID, OBJECT_TYPE, PERIOD_NUMBER, count(1)from PRJ_EV_HISTORYgroup by OBJECT_ID, OBJECT_TYPE, PERIOD_NUMBER having count(1) > 1
In order to resolve the duplicate row: