Archived data is wrong even when the analysis evaluated output and preview results are correct.

I have a tag acting as a flag whose values can be '1' or '2' scheduled every 1 minute. But sometimes this tag doesn't archive the correct value.

 

These are the tag settings:


Tag settings.png
 

For example, unless certain conditions are met, the value should always be 1, but sometimes it gets stuck at '2' even when evaluating and in "Preview Results" the output is '1'.

 


Analysis.png

Preview results.png
 

I tried recalculating a few hours and then it gets the correct values for a moment, but at the next trigger it changes again to '2' even when the conditions of the analysis are clearly NOT met. It doesn't makes sense, it shouldn't be a '2'. I thought maybe the snapshot value is not refreshing but just after recalculating the snapshot value changes to '1', and then it's '2' again after a minute. Where this '2' is coming from? It could be a wrong exception/compression settings?

 

Snapshot value just after recalculating:


Snapshot.png
 

A minute after recalculating:


Snapshot_after.png
 

Archived data for that tag after recalculating.


Archived data.png
 

Maybe you can help me understand this behavior.

 

Thank you.

 

 

Parents Reply Children
No Data