Error when using TagTot in PI AF

Hello,

I am getting an error when trying to use the function TagTot. From the screenshot attached, when Variable1 is added along with the Expression, the following error is returned after clicking on Evaluate.

Attempt by method 'OSIsoft.AN.PerformanceEquation.Evaluation.PENode.ValidateDataMethod(OSIsoft.AF.Asset.AFAttribute, OSIsoft.AF.Data.AFDataMethods, System.Action`1<OSIsoft.AF.Analysis.AFAnalysisException>)' to access method 'OSIsoft.AF.Asset.AFAttribute.IsSupportedDataMethod(OSIsoft.AF.Data.AFDataMethods)' failed.

This is the first time that I am trying to use the TagTot in a Analyses. Any support on this error message would be greatly appreciated. I've also included a screenshot with the PI AF version.
PI AF TagTot function error.png
.
PI System Explorer version.png
 

Thank you,

Emerson

Parents
  • I agree with ​ that Shift Start Time is where you should focus. Pity you do not provide sample values to aid us in providing a better answer.

     

    Although some consideration should also be given to whether Calc Work Order is stepped or interpolated.

     

    I am totally guessing here, but I would suspect that Shift Start Time is a time-of-day, e.g. "06:00". Another way to store that would be as relative PI Time of "+6h" - note the PLUS sign is super important as it lets the Analytics parser know it is a relative time. However, you would need to ParseTime as Concat("t", 'Shift Start Time') in that case.

     

    And yet another alternative is to stored Shift Start Time as a double with UOM of Hours. For 6:30 AM, it would be stored as 6.5 hours. In the analysis, you would perform an offset in seconds and add it to Today. Something like:

     

    StartTime = 't' + Convert('Shift Start Time', 's')

Reply
  • I agree with ​ that Shift Start Time is where you should focus. Pity you do not provide sample values to aid us in providing a better answer.

     

    Although some consideration should also be given to whether Calc Work Order is stepped or interpolated.

     

    I am totally guessing here, but I would suspect that Shift Start Time is a time-of-day, e.g. "06:00". Another way to store that would be as relative PI Time of "+6h" - note the PLUS sign is super important as it lets the Analytics parser know it is a relative time. However, you would need to ParseTime as Concat("t", 'Shift Start Time') in that case.

     

    And yet another alternative is to stored Shift Start Time as a double with UOM of Hours. For 6:30 AM, it would be stored as 6.5 hours. In the analysis, you would perform an offset in seconds and add it to Today. Something like:

     

    StartTime = 't' + Convert('Shift Start Time', 's')

Children
No Data