3 Replies Latest reply on Mar 14, 2017 1:18 AM by Eugene Lee

    PI Web API - Value Getting Deleted in PI


      I seem to have run into a bug, not sure if its something that I am doing or not but we have a custom application that writes to pi the value for a tag.  Occasionally we see that the values are deleted even though the archived time doesn't match the one that we send through the update.  Below is the URL that we typically use for setting a new value for a tag.  The majority of the time this occurs if the source application does not have a date/time set but we've also seen it when there is a unique timestamp.  Do we have the update or buffer parameter wrong? 


      Eg. { Timestamp = {1/1/0001 12:00:00 AM}, Value = "Poor" }


      RequestUri = {https://piwebapiserver.corp.com/piwebapi/streams/P0WvDSaT8pY0uGA4is91RAcQXVsDAAQ0dZTVNBUFNDMDA1RFxKRjFfQTIwMDBfVFJFQVRFUl9BX1dBVEVSX1FVQUw/value?updateOption=Replace&bufferOption=DoNotBuffer}


      The result of the post ends up removing the value that was at 11:00:00 AM and puts in a value at 11:14am.  It doesnt seem right that its deleting the 11am but that is what we are seeing.  Any thoughts?