AnsweredAssumed Answered

"System.NotSupportedException: The data method 'RecordedValues' is not supported on attribute

Question asked by XMPro_Gavin on Jul 22, 2016
Latest reply on Jul 22, 2016 by pthivierge

Hi All ,

 

I am trying to read values for element attributes between two specific time periods.

 

I am using the following code

 

PIPagingConfiguration pageConfig = new PIPagingConfiguration(PIPageType.TagCount, 1000);

 

//Get recorded value for all attributes between last processed datetime and current datetime.

IEnumerable<AFValues> values = attributes.Data.RecordedValues(timeRange, AFBoundaryType.Inside, null, false, pageConfig, 0);

 

When I execute this program by connecting to a OSISoft Server in my local machine it is working fine .

 

When I execute the same program on a client application , I am getting the records and additional to the actual records I am getting few more records with the following values/errors .

 

{

    "Element": "Rig7",

    "Element Time Stamp": "7/22/2016 3:27:12 AM",

    "Mud Specific Gravity": "System.NotSupportedException: The data method 'RecordedValues' is not supported on attribute 'Attribute 'Mud Specific Gravity' in Element 'Rig7' in Element 'Clear Fork' in Element 'West Texas''\r\n   at OSIsoft.AF.Asset.AFAttributeList.MakeRDACall(AFAttribute attribute, String methodName, Object[] methodParameters, Int32 uomParamIndex)\r\n   at OSIsoft.AF.Asset.AFAttributeList.FillInMissingValues(IList`1 pages, Dictionary`2 inputs, String rdaMethodName, Object[] rdaMethodParams, Int32 uomParamIndex, AFTime badTime)",

    "Drill string volume": "System.NotSupportedException: The data method 'RecordedValues' is not supported on attribute 'Attribute 'Drill string volume' in Element 'Rig7' in Element 'Clear Fork' in Element 'West Texas''\r\n   at OSIsoft.AF.Asset.AFAttributeList.MakeRDACall(AFAttribute attribute, String methodName, Object[] methodParameters, Int32 uomParamIndex)\r\n   at OSIsoft.AF.Asset.AFAttributeList.FillInMissingValues(IList`1 pages, Dictionary`2 inputs, String rdaMethodName, Object[] rdaMethodParams, Int32 uomParamIndex, AFTime badTime)"

  },

 

1) Can any one know when we wil get "System.NotSupportedException: The data method 'RecordedValues' is not supported on attribute 'Attribute 'Mud Specific Gravity'  error

2) Why only in my client application server I am getting these records , why I am not getting this error values in my local computer . The program was same in both my computer and client application.

 

Thanks for your help.

Outcomes