AnsweredAssumed Answered

How to write a "No Data" point with PI Web API

Question asked by wilson.laizo on Sep 11, 2017
Latest reply on Sep 15, 2017 by wilson.laizo

Hello guys;

 

My problem is that I want to write values the following values to a tag:

  

3/28/2017 12:390.59
3/28/2017 12:54
3/28/2017 13:090.65

In my second line I want to write something as "No Data", meaning that in that moment I did the reading and didn't get any value or that I didn't do the reading.

 

Using PI Web API I tried to use the streams/webid/recorded method like this:

[{"Timestamp": "3/28/2017 12:39:23 PM","Value": 0.59},{"Timestamp": "3/28/2017 12:54:23 PM","Value": "No Data"},{"Timestamp": "3/28/2017 1:09:23 PM","Value": 0.65}]

 

But I get the message:

{"Errors":["Value incompatible with target."]}

 

Any idea on how I can write the "No Data" value (or another way I can represent the same thing?).

Thanks.

Outcomes