7 Replies Latest reply on Jan 11, 2018 2:58 PM by gregor

    PI Web API Batch call error "Some JSON paths did not select any tokens"

    Roger Palmen

      Hi All,

       

      Digging through an issue in my javascript code, but don't really see the problem. Probably my limited skills, but let's check with you all.

       

      The batchrequest i make (partial):

      {"0":{"Method":"GET","Resource":"https://nlmstw2wb403/piwebapi/streams/A0EQMdQni96M0-R2NY3L2JPAQ7NZyk0Oy5xGjWoAAC2ymggz2Dq--bpjECwm82N32aLcAUEkgQUZcIURNUy1ETlAtRlpEXFNQQzRIfFZBUklBQkxF/recorded"},"1":{"Method":"GET","Resource":"https://nlmstw2wb403/piwebapi/streams/A0EQMdQni96M0-R2NY3L2JPAQ7NZyk0Oy5xGjWoAAC2ymgg3DJENXxeq0eFPVpBwMYrIwUEkgQUZcIURNUy1ETlAtRlpEXFNQQzRIfFZBUklBQkxFfExJTUlUIEhJ/interpolatedattimes?time=%7B0%7D","ParentIDs":["0"],"Parameters":["$0.Content.Items[*].Timestamp"]}

       

      Gives me a 400 error in the second request:

      Some JSON paths did not select any tokens: $0.Content.Items[*].Timestamp

       

      While the response of $0 does contain Items.. Any ideas?