none
An entry with the same key already exists. RRS feed

  • Question

  • I work with project server 2013.

    Have created two PWA instances in CA page and able to access the sites with out any issue.

    NOw I notice that when I go to APplication Management-->Manage Service Application--> Projec Server application service.

    I get an error which says:

    An entry with the same key already exists.

    Then I check the logs located at "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\LOGS".

    This what I could find

    09/01/2014 13:59:54.51  w3wp.exe (0x0918)                        0x4BE4 SharePoint Foundation          Authentication Authorization   agb9s Medium   Non-OAuth request. IsAuthenticated=True, UserIdentityName=, ClaimsCount=0 bd30b49c-52a1-709e-7436-ad4e65ee02c0
    09/01/2014 13:59:54.52  w3wp.exe (0x0918)                        0x4BE4 SharePoint Foundation          Logging Correlation Data       xmnv Medium   Site=/ bd30b49c-52a1-709e-7436-ad4e65ee02c0
    09/01/2014 13:59:54.52  w3wp.exe (0x5344)                        0x3184 SharePoint Server              Logging Correlation Data       xmnv Medium   Name=Task: HealthPerfCounter 633d7a5d-2dbd-0002-ac14-1a6b485d2c58
    09/01/2014 13:59:54.54  w3wp.exe (0x0918)                        0x4BE4 SharePoint Portal Server       User Profiles                  cm6y High     User Profile Application Proxy failed to retrieve partitions from User Profile Application: Microsoft.Office.Server.UserProfiles.UserProfileApplicationNotAvailableException: UserProfileApplicationNotAvailableException_Logging :: UserProfileApplicationProxy.ApplicationProperties ProfilePropertyCache does not have d4ba3309-2c43-4b6c-8c42-ff3d1717cb3d     at Microsoft.Office.Server.Administration.UserProfileApplicationProxy.get_ApplicationProperties()     at Microsoft.Office.Server.Administration.UserProfileApplicationProxy.get_PartitionIDs()     at Microsoft.Office.Server.Administration.UserProfileApplicationProxy.IsAvailable(SPServiceContext serviceContext) bd30b49c-52a1-709e-7436-ad4e65ee02c0
    09/01/2014 13:59:54.54  w3wp.exe (0x0918)                        0x4BE4 SharePoint Portal Server       User Profiles                  cm6y High     User Profile Application Proxy failed to retrieve partitions from User Profile Application: Microsoft.Office.Server.UserProfiles.UserProfileApplicationNotAvailableException: UserProfileApplicationNotAvailableException_Logging :: UserProfileApplicationProxy.ApplicationProperties ProfilePropertyCache does not have d4ba3309-2c43-4b6c-8c42-ff3d1717cb3d     at Microsoft.Office.Server.Administration.UserProfileApplicationProxy.get_ApplicationProperties()     at Microsoft.Office.Server.Administration.UserProfileApplicationProxy.get_PartitionIDs()     at Microsoft.Office.Server.Administration.UserProfileApplicationProxy.IsAvailable(SPServiceContext serviceContext) bd30b49c-52a1-709e-7436-ad4e65ee02c0
    09/01/2014 13:59:54.54  w3wp.exe (0x0918)                        0x4BE4 SharePoint Portal Server       User Profiles                  cm6y High     User Profile Application Proxy failed to retrieve partitions from User Profile Application: Microsoft.Office.Server.UserProfiles.UserProfileApplicationNotAvailableException: UserProfileApplicationNotAvailableException_Logging :: UserProfileApplicationProxy.ApplicationProperties ProfilePropertyCache does not have d4ba3309-2c43-4b6c-8c42-ff3d1717cb3d     at Microsoft.Office.Server.Administration.UserProfileApplicationProxy.get_ApplicationProperties()     at Microsoft.Office.Server.Administration.UserProfileApplicationProxy.get_PartitionIDs()     at Microsoft.Office.Server.Administration.UserProfileApplicationProxy.IsAvailable(SPServiceContext serviceContext) bd30b49c-52a1-709e-7436-ad4e65ee02c0
    09/01/2014 13:59:54.54  w3wp.exe (0x0918)                        0x4BE4 SharePoint Portal Server       User Profiles                  cm6y High     User Profile Application Proxy failed to retrieve partitions from User Profile Application: Microsoft.Office.Server.UserProfiles.UserProfileApplicationNotAvailableException: UserProfileApplicationNotAvailableException_Logging :: UserProfileApplicationProxy.ApplicationProperties ProfilePropertyCache does not have d4ba3309-2c43-4b6c-8c42-ff3d1717cb3d     at Microsoft.Office.Server.Administration.UserProfileApplicationProxy.get_ApplicationProperties()     at Microsoft.Office.Server.Administration.UserProfileApplicationProxy.get_PartitionIDs()     at Microsoft.Office.Server.Administration.UserProfileApplicationProxy.IsAvailable(SPServiceContext serviceContext) bd30b49c-52a1-709e-7436-ad4e65ee02c0
    09/01/2014 13:59:54.54  w3wp.exe (0x0918)                        0x4BE4 SharePoint Portal Server       User Profiles                  cm6y High     User Profile Application Proxy failed to retrieve partitions from User Profile Application: Microsoft.Office.Server.UserProfiles.UserProfileApplicationNotAvailableException: UserProfileApplicationNotAvailableException_Logging :: UserProfileApplicationProxy.ApplicationProperties ProfilePropertyCache does not have d4ba3309-2c43-4b6c-8c42-ff3d1717cb3d     at Microsoft.Office.Server.Administration.UserProfileApplicationProxy.get_ApplicationProperties()     at Microsoft.Office.Server.Administration.UserProfileApplicationProxy.get_PartitionIDs()     at Microsoft.Office.Server.Administration.UserProfileApplicationProxy.IsAvailable(SPServiceContext serviceContext) bd30b49c-52a1-709e-7436-ad4e65ee02c0
    09/01/2014 13:59:54.54  w3wp.exe (0x0918)                        0x4BE4 SharePoint Portal Server       User Profiles                  cm6y High     User Profile Application Proxy failed to retrieve partitions from User Profile Application: Microsoft.Office.Server.UserProfiles.UserProfileApplicationNotAvailableException: UserProfileApplicationNotAvailableException_Logging :: UserProfileApplicationProxy.ApplicationProperties ProfilePropertyCache does not have d4ba3309-2c43-4b6c-8c42-ff3d1717cb3d     at Microsoft.Office.Server.Administration.UserProfileApplicationProxy.get_ApplicationProperties()     at Microsoft.Office.Server.Administration.UserProfileApplicationProxy.get_PartitionIDs()     at Microsoft.Office.Server.Administration.UserProfileApplicationProxy.IsAvailable(SPServiceContext serviceContext) bd30b49c-52a1-709e-7436-ad4e65ee02c0
    09/01/2014 13:59:54.56  w3wp.exe (0x0918)                        0x4BE4 SharePoint Foundation          General                        8nca Medium   Application error when access /_admin/pwa/managepwa.aspx, Error=An entry with the same key already exists.   at System.Collections.Generic.TreeSet`1.AddIfNotPresent(T item)     at System.Collections.Generic.SortedDictionary`2.Add(TKey key, TValue value)     at Microsoft.Office.Project.Server.Administration.PsiServiceApplication.GetSiteList(SPUrlZone urlZone)     at Microsoft.Office.Project.Server.Administration.ApplicationPages.ManagePWAPage.OnLoad(EventArgs e)     at System.Web.UI.Control.LoadRecursive()     at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) bd30b49c-52a1-709e-7436-ad4e65ee02c0
    09/01/2014 13:59:54.56  w3wp.exe (0x0918)                        0x4BE4 SharePoint Foundation          Runtime                        tkau Unexpected System.ArgumentException: An entry with the same key already exists.    at System.Collections.Generic.TreeSet`1.AddIfNotPresent(T item)     at System.Collections.Generic.SortedDictionary`2.Add(TKey key, TValue value)     at Microsoft.Office.Project.Server.Administration.PsiServiceApplication.GetSiteList(SPUrlZone urlZone)     at Microsoft.Office.Project.Server.Administration.ApplicationPages.ManagePWAPage.OnLoad(EventArgs e)     at System.Web.UI.Control.LoadRecursive()     at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) bd30b49c-52a1-709e-7436-ad4e65ee02c0
    09/01/2014 13:59:54.56  w3wp.exe (0x0918)                        0x4BE4 SharePoint Foundation          General                        ajlz0 High     Getting Error Message for Exception System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.ArgumentException: An entry with the same key already exists.     at System.Collections.Generic.TreeSet`1.AddIfNotPresent(T item)     at System.Collections.Generic.SortedDictionary`2.Add(TKey key, TValue value)     at Microsoft.Office.Project.Server.Administration.PsiServiceApplication.GetSiteList(SPUrlZone urlZone)     at Microsoft.Office.Project.Server.Administration.ApplicationPages.ManagePWAPage.OnLoad(EventArgs e)     at System.Web.UI.Control.LoadRecursive()     at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)     at System.Web.UI.Page.HandleError(Exception ... bd30b49c-52a1-709e-7436-ad4e65ee02c0
    09/01/2014 13:59:54.56* w3wp.exe (0x0918)                        0x4BE4 SharePoint Foundation          General                        ajlz0 High     ...e)     at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)     at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)     at System.Web.UI.Page.ProcessRequest()     at System.Web.UI.Page.ProcessRequest(HttpContext context)     at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()     at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) bd30b49c-52a1-709e-7436-ad4e65ee02c0
    09/01/2014 13:59:54.56  w3wp.exe (0x0918)                        0x4BE4 SharePoint Foundation          General                        aat87 Monitorable   bd30b49c-52a1-709e-7436-ad4e65ee02c0
    09/01/2014 13:59:54.56  w3wp.exe (0x0918)                        0x4BE4 SharePoint Foundation          Monitoring                     b4ly Medium   Leaving Monitored Scope (Request (GET:http://Local:24476/_admin/pwa/managepwa.aspx?appid=679a2939-9e95-4aa6-8470-6788e265c0df)). Execution Time=50.8531 bd30b49c-52a1-709e-7436-ad4e65ee02c0

    Pls suggest.

    Monday, September 1, 2014 11:10 AM

Answers

  • Hi Sudhir,

    This error is due to orphan PWA instances.

    Check for orphan entry by running these powershell commands

    $ServiceApp = Get-SPServiceApplication | ?
    {$_.Displayname -like "Project Server
    Service Application"}
    $PWA = $ServiceApp.SiteCollection
    $PWA


    Note the ID and the Database Names which are showing Duplicate entries for "Name".

    Once we find the duplicate entry, we need to remove that entry.

    Thanks,

    Phani

    Monday, September 1, 2014 9:00 PM

All replies

  • Same here, I've just encountered the same error on my PWA 2013.

    Ivailo Tzenkov

    Monday, September 1, 2014 11:34 AM
  • Hi Sudhir,

    This error is due to orphan PWA instances.

    Check for orphan entry by running these powershell commands

    $ServiceApp = Get-SPServiceApplication | ?
    {$_.Displayname -like "Project Server
    Service Application"}
    $PWA = $ServiceApp.SiteCollection
    $PWA


    Note the ID and the Database Names which are showing Duplicate entries for "Name".

    Once we find the duplicate entry, we need to remove that entry.

    Thanks,

    Phani

    Monday, September 1, 2014 9:00 PM
  • Hello Phani,

    I executed the powershell command and in the output I had details of 3 PWA instances. FYI.. I have 4 PWA instances in my environment.

    1. What is the parameter I should look for in the output information?

    2. Do I need to delete all the instances that are specified in the output.

    3. How to delete the PWA when I cannot open the project application service.

    Thanks.


    Tuesday, September 2, 2014 9:49 AM
  • Remove only the missing/orphaned site collection using this guide (http://nkelkar.wordpress.com/2011/08/16/project-server-remove-orphaned-project-web-app-site/), but at the end of step 1 you should enter one more command, namely:

    $ServiceApp.update()

    And you should be good to go.

    P.S. Thanks to Phani for pointing at the right direction!


    Ivailo Tzenkov


    • Edited by Ivailo Tzenkov Saturday, September 13, 2014 4:46 AM Mistyping
    Saturday, September 13, 2014 4:45 AM