Clarity

Expand all | Collapse all

Project duplicate in list view

  • 1.  Project duplicate in list view

    Posted Feb 04, 2013 11:40 AM
    We have a project which is duplicated only in the List view but it has the same Project Code, Name, even the internal id, on checking the Database object level we found only one record.

    This has impacted the lookups associated with the project > subobjects.

    Is it possible the Views would have corrupted, any suggestion will be appreciated.

    Thanks in advance,
    Ravi


  • 2.  RE: Project duplicate in list view

    Posted Feb 04, 2013 12:02 PM
    Duplicate records in ODF_CA_PROJECT for that ID (or INV_PROJECT)? - pretty sure I saw odd duplicates in one of the ODF_CA_ tables in a older Clarity version some time back. :unsure:


  • 3.  RE: Project duplicate in list view

    Posted Feb 04, 2013 12:08 PM
    Dave, unfortunately their is no duplicate records in ODF_CA_INV, ODF_CA_PROJECT, PRJ_PROJECTS and ofcourse INV_INVESTMENTS.

    Any further clue.

    Thanks & Regards,
    Ravi


  • 4.  RE: Project duplicate in list view

    Posted Feb 04, 2013 12:39 PM
    ^ no, you got my "best guess" first time! :sad

    If I saw this problem myself, I would SQL trace the "Project List" screen, then looking at the SQL I would try to work out why it returns duplicates (strongly suspecting some duplicate entries in some "joined to" table somewhere).


  • 5.  RE: Project duplicate in list view

    Posted Feb 04, 2013 01:28 PM
    So the is duplicate only in the project list view and not in any view where there is a list or lookup of projects? And not in the results of a database query?
    You do get the duplicate if you filter for the name or the code?

    In what I have seen a database corruption or oddity is more common than a view corruption. If it is a view corruption is that for all users (system view) or jut one user (user modified view) and is it on more than one workstation (not cached in the browser)?
    An SQL trace should give the query against which you can verify your results.

    Further ways to outrule the duplicate record are object and query based portlets and simply adding a character to the name to see if both instances change.

    Martti K.


  • 6.  RE: Project duplicate in list view

    Posted Feb 04, 2013 02:10 PM
    Hi Ravindran,

    There may be an issue with the baseline ...

    would you be able to run this query and see if you get duplicates...


    select inv_investments.name,inv_investments.id
    from odf_ca_inv, odf_object_instance_mapping oim3, odf_ca_financials, odf_ca_projfinproperties, odf_ca_project, INV_INVESTMENTS
    LEFT OUTER JOIN PRJ_BASELINE_DETAILS BASEREC ON (BASEREC.BASELINE_ID = INV_INVESTMENTS.BASELINE_ID AND
    BASEREC.OBJECT_TYPE='PROJECT')
    LEFT OUTER JOIN PRJ_EV_HISTORY EVREC ON (EVREC.OBJECT_ID = INV_INVESTMENTS.ID AND EVREC.OBJECT_TYPE='PROJECT' AND
    EVREC.PERIOD_NUMBER=0)
    , INV_PROJECTS, PAC_MNT_PROJECTS
    , SRM_RESOURCES CREATED, SRM_RESOURCES UPDATED
    , FIN_FINANCIALS
    where INV_INVESTMENTS.ID = INV_PROJECTS.PRID
    AND INV_PROJECTS.PRID = PAC_MNT_PROJECTS.ID
    AND INV_INVESTMENTS.CREATED_BY = CREATED.USER_ID
    AND INV_INVESTMENTS.LAST_UPDATED_BY = UPDATED.USER_ID
    and inv_investments.id = inv_projects.prid and inv_investments.id = odf_ca_inv.id
    and inv_investments.id = oim3.primary_object_instance_id
    and oim3.primary_object_instance_code = 'project'
    and fin_financials.id = oim3.secondary_object_instance_id
    and oim3.secondary_object_instance_code = 'financials'
    and FIN_FINANCIALS.id = odf_ca_financials.id
    and inv_investments.id = pac_mnt_projects.id and inv_investments.id = odf_ca_projfinproperties.id
    and inv_investments.id = odf_ca_project.id and odf_ca_inv.odf_object_code = 'project'
    and inv_investments.IS_ACTIVE = 1


    Thanks and Regards,
    Rajini


  • 7.  RE: Project duplicate in list view

    Posted Feb 05, 2013 10:46 AM
    Rajini, thanks for the query, it returns the duplicate rows, can you guide what next.

    Ravi


  • 8.  RE: Project duplicate in list view

    Posted Feb 05, 2013 12:07 PM
    Hi Ravi,

    As mentioned by Ruth above you can check if PERIOD_NUMBER is causing the problem...

    if not then you can check which table is causing the duplicates in the query.. you can replace the select clause as below and see which table has distinct ID's .....

    select inv_investments.name,inv_investments.id,
    EVREC.id,EVREC.period_number,EVREC.PROJECT_ID,EVREC.OBJECT_ID,
    BASEREC.id,BASEREC.baseline_id,BASEREC.object_id,BASEREC.is_current
    ,oim3.primary_object_instance_id
    ,odf_ca_financials.id,odf_ca_projfinproperties.id,fin_financials.id

    Once you get the table you can check further as to what is causing duplicates ...

    Thanks and Regards,
    Rajini


  • 9.  RE: Project duplicate in list view

    Posted Feb 05, 2013 03:43 PM
    What Ruth suggest could be the reason.
    You have more or less established that ii is not not in the normal project object tables nor the view only.

    Martti K.


  • 10.  RE: [CA Clarity General Discussion] RE: Project duplicate in list view
    Best Answer

    Broadcom Employee
    Posted Feb 05, 2013 03:37 AM
    Hello,

    I have seen this in the past if there were duplicate entries for the projected for PERIOD_NUMBER=0 from PROJECT_ID/OBJECT_ID=<same project id>

    SELECT INV_PROJECTS.*

    FROM INV_INVESTMENTS, INV_PROJECTS

    WHERE INV_INVESTMENTS.ID = <internal id of project>

    and INV_INVESTMENTS.ID = INV_PROJECTS.PRID ;



    SELECT BASEREC.*

    FROM INV_INVESTMENTS, PRJ_BASELINE_DETAILS BASEREC WHERE INV_INVESTMENTS.ID

    = <internal id for project> and INV_INVESTMENTS.BASELINE_ID = BASEREC.BASELINE_ID(+) and

    'PROJECT' = BASEREC.OBJECT_TYPE(+) ;




    SELECT EVREC.*

    FROM PRJ_EV_HISTORY EVREC, INV_INVESTMENTS

    WHERE INV_INVESTMENTS.ID = <internal id for project>

    AND INV_INVESTMENTS.ID = EVREC.OBJECT_ID(+) AND 'PROJECT' =

    EVREC.OBJECT_TYPE(+) AND 0 = EVREC.PERIOD_NUMBER(+) ;



    This should be unchanged:

    SELECT PAC_MNT_PROJECTS.*

    FROM PAC_MNT_PROJECTS

    WHERE ID = <internal project id for project>


    To resolve do the following:
    1. Backup database and test if possible in test env first.

    2. Delete "Create Earned ValueSnapshot" job from system if exists

    3. Remove the totals rows from the prj_ev_history table - being VERY careful

    to include the where clause:


    delete from prj_ev_history where period_number=0


    4. Regenerate Total information


    You have two choices here


    A. Schedule a run of the Update Earned Value Totals Job. You can set

    the specific project through the parameters on the job


    B. You can have your PMs login to Clarity and click the Update Earned

    Value button on the

    Project Properties -> Baseline view for the projects they require

    current EV field information for.


    Once the job has run, please can you check whether the duplicate project

    has gone from the listing?




    Hope this helps.

    Ruth

    From: CA Clarity Global User Community [mailto:CommunityAdmin@communities-mail.ca.com]
    Sent: 04 February 2013 19:28
    To: mb.2277340.100196587@myca-email.ca.com
    Subject: [CA Clarity General Discussion] RE: Project duplicate in list view

    So the is duplicate only in the project list view and not in any view where there is a list or lookup of projects? And not in the results of a database query?
    You do get the duplicate if you filter for the name or the code?

    In what I have seen a database corruption or oddity is more common than a view corruption. If it is a view corruption is that for all users (system view) or jut one user (user modified view) and is it on more than one workstation (not cached in the browser)?
    An SQL trace should give the query against which you can verify your results.

    Further ways to outrule the duplicate record are object and query based portlets and simply adding a character to the name to see if both instances change.

    Martti K.
    Posted by:another_martink
    --
    CA Communities Message Boards
    100199127
    mb.2277340.100196587@myca-email.ca.com<mailto:mb.2277340.100196587@myca-email.ca.com>
    https://communities.ca.com


  • 11.  RE: [CA Clarity General Discussion] RE: Project duplicate in list view

    Posted Feb 08, 2013 10:04 AM
    Ruth, thanks this worked but with slight deviation once we have deleted the duplicate record in PRJ_EV_HISTORY table, the duplicate record is suppressed in the list view.
    As we found there are many records in the table for the PERIOD_NUMBER = 0, can you provide more information like what is the purpose of this table, how its get populated. As we have not scheduled any Earned Valued related jobs.
    We found duplicate records for Task record also in this table, we are planning to delete the duplicate for the same too.

    Your inputs are much appreciated.

    Thanks in advance,
    Ravi


  • 12.  RE: Project duplicate in list view

    Posted Feb 05, 2013 10:12 AM
    Martti, the duplicate is only in the Project list view and in the database only one record exists. Even when I filter in the project list view I get the duplicates.

    This duplicate is visible to all the users and in various machines. Will look into the SQL trace.

    If I make change to any attribute (for ex. description) its reflecting in both the project records.

    Ravi


  • 13.  Re: Project duplicate in list view

    Posted Apr 29, 2016 11:46 AM

    Hi all.

        We're beginning to see duplicate projects in the list view as this discussion illustrates.

     

    Duplicate Projects in the List View:

    duplicate_projects.jpg

    Only one investment:

    single_project.jpg

     

    For this project, when I run

    SELECT EVREC.*
    FROM PRJ_EV_HISTORY EVREC, INV_INVESTMENTS
    WHERE INV_INVESTMENTS.ID = 5404430
    AND INV_INVESTMENTS.ID = EVREC.OBJECT_ID
    AND 'PROJECT' = EVREC.OBJECT_TYPE AND 0 = EVREC.PERIOD_NUMBER
    

     

    I see two returns:

    duplicate_projects2.jpg

     

    This thread alludes to a direct database update to fix an instance of this - I'm seeing multiples and will need something a little more official from CA Support. Has anyone else encountered this? If so - is there a Tech or KB solution available? We're 14.3.0.298 (original install - no fixpack) on MSSQL.

     

    Off to open a ticket and search support but I thought I'd toss this up here first.



  • 14.  Re: RE: Project duplicate in list view

    Posted Apr 29, 2016 01:02 PM

    I found this in the CA Support Knowledge Base - Tech Article TEC1153811 - Project is displayed twice on the list page.

    We've implemented a workaround to go to the Object Actions on the Project's Team or Task tab can click Update Cost Totals.

     

    update cost totals.jpg

     

    I'll open a ticket to see if we can get to root cause and get this fixed.



  • 15.  Re: Project duplicate in list view

    Posted Oct 05, 2016 07:03 AM

    Hi Robert,

     

    We are facing the same issue in Clarity14.2. Are you able to find any root cause on this issue.

    Thanks

    Hari