AnsweredAssumed Answered

Event Frame Data Error

Question asked by Keith_Bouvier on Aug 30, 2018
Latest reply on Aug 30, 2018 by shan

I have an event frame analysis in AF which moves analog and string data into the event frame.  In one of the generated event frames (all other generated event frames are ok), two the string attributes threw an internal error and placed it in the event frame attribute.  The following error was generated:


Bad input value in ''.\Elements[.]|FLOC'': Bad input value in '..\|FLOC': Bad input value in '..\|FLOC': Bad input value in '..\|FLOC': System.InvalidOperationException: Collection was modified; enumeration operation may not execute.

   at System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)

   at System.Collections.Generic.List`1.Enumerator.MoveNextRare()

   at OSIsoft.AF.AFCollection`1.<GetEnumerator>d__1.MoveNext()

   at OSIsoft.AF.Asset.AFAttributeList.GetInputsInternal(AFAttribute attribute, Dictionary`2 allInputs, Dictionary`2 nonDependentValues, AFCase caseContext, Dictionary`2 eventFrameAttributes)


The attribute type in the Event Frame is a String.  The attribute it is reading from in the element is a String.  The string is built using string builder referencing a parent point string attribute with manually entered data.


It should be noted all other data (string and analog) came across into the event frame with no errors.


The AF Solution is 2015-R2.


Has anyone seen this type of error in an event frame.