none
Cannot edit custom fields anymore RRS feed

  • Question

  • Hi

    Project Server 2013 SP1 environment.

    When we try to edit a custom field (or delete one), we get an "unknown error"  on the page.

    ULS log says:

    [bucketHash:373E2DB8] Exception occured in method 'CustomFields.CheckOutCustomFields' System.ArgumentException: An item with the same key has already been added.   

     at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)   

     at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer)   

     at Microsoft.Office.Project.Server.Events.ServerEventManager.ConfiguredServerEvents.EventHandlerConfiguration.GetInstance(ProjectSite projectSite)   

     at Microsoft.Office.Project.Server.Events.ServerEventManager.ConfiguredServerEvents..ctor(ProjectSite projectSite)   

     at Microsoft.Office.Project.Server.Events.ServerEventManager.ConfiguredServerEvents.<>c__DisplayClass8.<GetInstance>b__7()   

     at Microsoft.Office.Project.Server.Utility.LazySet`2.GetValue(TKey key, Func`1 instanceFactory)   

     at Microsoft.Office.Project.Server.Events.ServerEventManager.ConfiguredServerEvents.GetInstance(Guid siteUid)   

     at Microsoft.Office.Project.Server.Events.ServerEventManager.<GetServerEventManager>b__0(IPlatformContext context)   

     at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)   

     at Microsoft.Office.Project.Server.BusinessLayer.Generated.CustomFieldsBase.FirePreCheckOutEvent(Guid[] uids)   

     at Microsoft.Office.Project.Server.BusinessLayer.CustomFields.CheckOutCustomFields(Guid[] array)   

     at Microsoft.Office.Project.Server.Wcf.Implementation.WcfMethodInvocation.InvokeBusinessObjectMethod(String businessObjectName, String methodName, IEnumerable`1 actions) StackTrace:

     at Microsoft.Office.Project.Server.Native.dll: (sig=6ea170d1-988e-4153-9f1d-0305c0ea0309|2|microsoft.office.project.server.native.pdb, offset=3C1E)

     at Microsoft.Office.Project.Server.Native.dll: (offset=1255D)

    I suspect a relation with the Nintex Workflow for Project Server that we have installed in this instance (just today). Demand Management Workflows did not fire so I tried an Event Handler Workflow just for testing purposes. It did not fire either but shortly after that we got this issue with the custom fields.

    Project Server Queue job also fail.

    Anyone having an idea? (apart from rollback of the database which I fear we will have to do...)

    Thanks

    Christoph


    Christoph Muelder | Senior Consultant, MCTS, MCSE, MCT | SOLVIN information management GmbH, Germany

    Thursday, May 22, 2014 3:14 PM

Answers

  • Hi

    yes. It is related with more than one Event handler. This was a bug and fixed in October 2014 CU for Project Server 2013.

    Regards

    Christoph


    Christoph Muelder | Senior Consultant, MCTS, MCSE | SOLVIN information management GmbH, Germany

    Friday, April 10, 2015 12:05 PM

All replies

  • Hello Chris

    You have some garbage in one of your entries in your lookup table or formula or something.  I have seen this type of error when special characters such as & is being used.  It's because it's a special character that browser look for.  Especially when somebody fat fingers && or ##. 

    I would query the tables and look hard for special characters..

    PS.  I found some of your awesome PowerShell code in the gallery.  Thanks ..Good stuff.

    Cheers!


    Michael Wharton, MVP, MBA, PMP, MCT, MCTS, MCSD, MCSE+I, MCDBA
    Website http://www.WhartonComputer.com
    Blog http://MyProjectExpert.com contains my field notes and SQL queries

    Thursday, May 22, 2014 11:05 PM
    Moderator
  • Hello

    I know the question was posted a long time ago but I also had this problem and maybe my solution can hel others.

    I got this error when there is more than one event handler registered for the same event. For example if you have two event handlers on Proejct Created.

    Friday, March 6, 2015 6:45 AM
  • Hi

    yes. It is related with more than one Event handler. This was a bug and fixed in October 2014 CU for Project Server 2013.

    Regards

    Christoph


    Christoph Muelder | Senior Consultant, MCTS, MCSE | SOLVIN information management GmbH, Germany

    Friday, April 10, 2015 12:05 PM