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
  • My gut feeling is it's related to the ParseTime function and its interaction with 'Shift Start Time'.

     

    Is 'Shift Start Time' tag value stored as a PI Time expression, such as '*' or 't' ?

     

    I believe that's the context that the function is used in. If it is not storing a PI Time expression then you may need to approach this problem differently.

     

    It would be in your best interest to remove variables from your analysis to deduce which variable is causing the problem. Each time you remove a variable, click 'Evaluate' and see if an error is returned in your 'Value at Evaluation' field.

     

    -----Possible Answer Below-----

    I'm not going to delete this preceding comment because it could be informative to some, but I think I actually identified the problem. It looks like you're using your tag value for 'Shift Start Time' in the Variable1 expression, but I think you want to use the calculated evaluation of Variable1 (ShiftStartTime).

     


    image.png
     

    Look here:

     


    image_1.png
     

    Notice the distinct lack of ' ' around ShiftStartTime? That's because it's using the variable evaluation, instead of your 'Shift Start Time' tag

     

    Hope that helps!

Reply
  • My gut feeling is it's related to the ParseTime function and its interaction with 'Shift Start Time'.

     

    Is 'Shift Start Time' tag value stored as a PI Time expression, such as '*' or 't' ?

     

    I believe that's the context that the function is used in. If it is not storing a PI Time expression then you may need to approach this problem differently.

     

    It would be in your best interest to remove variables from your analysis to deduce which variable is causing the problem. Each time you remove a variable, click 'Evaluate' and see if an error is returned in your 'Value at Evaluation' field.

     

    -----Possible Answer Below-----

    I'm not going to delete this preceding comment because it could be informative to some, but I think I actually identified the problem. It looks like you're using your tag value for 'Shift Start Time' in the Variable1 expression, but I think you want to use the calculated evaluation of Variable1 (ShiftStartTime).

     


    image.png
     

    Look here:

     


    image_1.png
     

    Notice the distinct lack of ' ' around ShiftStartTime? That's because it's using the variable evaluation, instead of your 'Shift Start Time' tag

     

    Hope that helps!

Children
No Data