No matter what I try, I am unable to get this analysis to work right. Preview works great but the actual results are not right
this is the preview mode:
The real results:
Hi Archana,It's just a guess, but it seems that your tag has triple the data in each timestamp, which may indicate the issue here. Do you know the reason why the data is tripled? Are you sure thats the only Analysis that is sending data to your tag?
how are you saying that it has triple the data? I don't see the data tripled, it shows -99 constantly. Yes, it is the only analysis sending data to that tag.
I think Carlos is right, multiple analyses are writing to the same PI Point. Easy to test, if you disable this analysis, does the output PI Point still update?
Why did you say the value is wrong? Based on your screenshot of the Preview Results dialog box the value is -99 from 2:20am to 3:10am. Is the value constantly -99? If it is, after disabling the other analyses writing to this PI Point, I'd recommend setting the Evaluation logger on the pianalysisprocessor.exe to Trace. Full walk through is here: OSIsoft: Troubleshooting Analysis When Outputting Calc Failed (AF 2018) - YouTube
No it doesn't update when I turn off the analysis.
Sometimes I get the error which says "UOMs 'barrel' and 'barrels oil per day' must belong to the same class" the error goes away if I take away the default UOM but I want the UOM to be BOPD
Yes the value is constantly -99. It shouldn't be. preview results are perfect.
There are 3 values for the same timestamp. A single analysis will not append data, so there must be something else writing to this PI Point.
There are A LOT of reasons as to why preview results could differ from the actual output value. Here's a quick list, but I think enabling the logs makes the most sense:
Which version of Asset Analytics are you running?
Retrieving data ...