AnsweredAssumed Answered

PI WEB API not recognising time strings

Question asked by JamesIggulden on Jan 29, 2016
Latest reply on Jan 29, 2016 by JamesIggulden

Hi there,

 

I'm running a PI test environment using:

PI Web API 2015 R3 version 1.6.0.160

PI Server 2010 SP1 version 3.4.385.77

PI AF Server 2010 R3 2.4.0.4431

 

It's been working really well for me so far but I am having an issue with time strings.

The following queries return data fine:

https://win-177qud5ka2m/piwebapi/streamsets/value?webId=XXX&time=Yesterday

https://win-177qud5ka2m/piwebapi/streamsets/value?webId=XXX&time=03:45:30.25

 

But the following:

https://win-177qud5ka2m/piwebapi/streamsets/value?webId=XXX&time=Yesterday + 03:45:30.25

returns:

 

{

  "Errors": [

  "'Yesterday 03:45:30.25' is not a valid timestamp."

  ]

}

 

I'm struggling to see what I'm doing wrong when this should be valid according to:

https://techsupport.osisoft.com/Documentation/PI-Web-API/help/topics/time-strings.html

 

I have put this on the discussion boards but happy to raise this as a formal defect.

 

Thanks,

James

Outcomes