Hello,
I am facing some issue while deleting data from PI tag-
I tried using OLEDB queries but it did not work. I also tried below way by using PISDK in .Net to delete the value, but did not work.
var pisdk = new PISDK.PISDK();
Server objServer = pisdk.Servers["sud-pi-test"];
objServer.DefaultUser = "piadmin";
objServer.Timeout = 30;
PIPoint objpipoint;
PIPoints objpipoints;
objpipoints = objServer.PIPoints;
objpipoint = objpipoints["75-04-YI-TBRC2_Phase-MI"];
//PIValue piValue;
objpipoint.Data.RemoveValues(_fetchDataRules.StartDateTime, _fetchDataRules.StartDateTime, DataRemovalConstants.drRemoveAll);
Exception: Write failed. Unbuffered write would desynchronize archive data.
The PI Buffer Subsystem is enabled and running in my machine and we have to go by this approach without stopping this service.
Please let me know if any details needed.
Thanks,
Souvik