Hello @all, I recently tried (Testing) to set Values to bad quality for a customer, so the Values are not shown in HistorianClient when Good Quality is used in the Filter-Settings.
For my Understanding there are two options.
1.) Use 'Insert' - To get a bad 'latest' Value with QualityDetail 202 and OPCQuality 64. This most of the time is ok for me.
INSERT History (TagName, DateTime, Value, wwVersion, OPCQuality)
SELECT TagName, '2024-08-16 09:00:00', Value, 'LATEST', 64
FROM History
WHERE TagName='test_sqlinsert_0824'
AND wwRetrievalMode = 'FULL'
_____________________________________________________________________________
2.) Use 'Update' - Here I do not really Understand what ist happening:
2.1.) create tag
2.2) insert and verify Values
2.3) Update
2.4) Verify that the Values are set to QualityDetail = '0'
So Finally: When I tried to verify that the Values have been updated as I expected, I get a different result. As you see Im not able to return the Values anymore.
I tried Qualityrules 'Extended' / 'Optimistic'. Do I may have to use a special Query to return the modified Values? [I tested in Historian 20.1.100.000 and also 17.3.000.000 - Same result]
Thanks for any Hints, Ideas - Elias.