2 Replies Latest reply on Nov 22, 2013 4:22 PM by florianr

    NextEvent causes piarchss to log error




      I am using PIACEPoint's function NextEvent to jump between archive events in an ACE calculation. The function returns Nothing in case there are no archive events after the given time. The problem is that there is also logged a message by the archive subsystem.

      The message looks like this: "User query failed: [...] Status: [-11032] No Events After Passed eventid"
      (the message's source is "piarchss")

      Is it possible to avoid this message?
      ..or is there another possibility to check if subsequent events exist?


      Thank you very much


      Florian Rommel

        • Re: NextEvent causes piarchss to log error

          Hello Florian,


          If I understood correctly, you are trying to see if there is any archived events after a specific timestamp in the past, correct me if I'm wrong. Let's say 1 hour ago is the time you want to look at, you can implement something like following:


          Tag.PreEvent("*-1h").UTCSeconds == Tag.PreEvent("*").UTCSeconds  which means the last archived value at one hour ago is actually the most current snapshot value, then do not use tag.nextEvent or tag.nextVal method to avoid the error.


          Please let me know if this helps.