AnsweredAssumed Answered

AF.PISystem.CheckServerError

Question asked by yyang on Jul 9, 2015
Latest reply on Jul 9, 2015 by asorokina

Hi All;

 

Has anyone see the following errors before?  I am trying to add a new attribute template to an existing event frame template. Any help is very much appreciated.

 

 

Yali

 

Unexpected Server Error: 'An item with the same key has already been added.'.”

Use Event Viewer to see the AF service log file for more information.----   at OSIsoft.AF.PISystem.CheckServerError(dcServerError err, Boolean firstAttempt)

   at OSIsoft.AF.Support.AFSerialProxy.<>c__DisplayClass120.<CheckInElementTemplate>b__11c(Boolean firstAttempt)

   at OSIsoft.AF.Support.AFSerialProxy.Call(String rpcName, ProxyDelegate codeBlock)

   at OSIsoft.AF.Support.AFSerialProxy.CheckInElementTemplate(dcElementTemplate[] changes, dcObjectIdentity[] deletedIdentities, Guid[] elementsWithAutoCreatedAnalyses, Boolean& updatedUOM)

   at OSIsoft.AF.Asset.AFElementTemplate.RemoteCheckInElementTemplate(AFDatabase database, IDictionary`2 processedItemsDict, dcElementTemplate[] changes, dcObjectIdentity[] deletedIdentities, Guid[] elementsWithAutoCreatedAnalyses)

   at OSIsoft.AF.AFDatabase.SaveElementTemplates(Boolean doCheckIn, Boolean mustApplyChangesForListCheckIn, Boolean disableObjectListCheckIn, IDictionary`2 processedItemsDict, List`1 appliedList, HashSet`1 elementsWithAutoCreatedAnalysesList, List`1& changeList, List`1& deleteList)

   at OSIsoft.AF.AFDatabase.ProcessDatabaseApplyCheckInChanges(ProcessMode mode, AFCheckedOutMode checkedOutMode, IEnumerable`1 objList, List`1 appliedList, HashSet`1 elementsWithAutoCreatedAnalyses, Boolean& dbPagedRefreshRequired)

   at OSIsoft.AF.AFDatabase.ProcessDatabaseChanges(ProcessMode mode, AFCheckedOutMode checkedOutMode, IEnumerable`1 objList, List`1 appliedList, HashSet`1 elementsWithAutoCreatedAnalyses)

   at OSIsoft.AF.Support.AFProcessChangesList.ProcessList(ProcessMode mode)

   at OSIsoft.AF.Support.AFTransactable.CheckIn(Boolean disableObjectListCheckIn)

   at OSIsoft.AF.Support.AFTransactable.CheckIn()

   at OSIsoft.AF.Asset.AFElementTemplate.CheckIn()

Outcomes