AnsweredAssumed Answered

AFAttributeList.GetValue() causes System.IndexOutOfRangeException

Question asked by Tsolfrank on Mar 2, 2020
Latest reply on Mar 2, 2020 by pwedziuk

Hello!

Does anybody know what can cause System.IndexOutOfRangeException when AFAttributeList.GetValue is executing?

 

System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at OSIsoft.AF.Data.InputAnalyzer.InputAnalyzerState`1.MoveCalculationStack()
   at OSIsoft.AF.Data.InputAnalyzer.AnalyzeRoots[TValue](IDataQuery`1 query, IList`1 attributeList, AFDataProvider dataProvider, Int32& duplicateCount, Int32& totalCount)
   at OSIsoft.AF.Data.InputAnalyzer.AnalyzedAttributes`1.Create(IDataQuery`1 query, IList`1 attributeList, AFDataProvider dataProvider, Int32& totalCount)
   at OSIsoft.AF.Data.InputAnalyzer.<ExecuteWithVisitor>d__7`1.MoveNext()
   at OSIsoft.AF.Asset.AFAttributeList.GetValue(SingleValueQuery query, AFDataProvider dataProvider)
 

Outcomes