Can you please double check the archive dates you were querying for? A screenshot of the query you were using when you hit the error would be especially helpful.
Essentially, the VLE uses a special license that only allows for data retrieval for the past 180 days. Thus, you should only get the [-12222] Not licensed to access archive for passed dates error if you were querying for more than 180 days ago.
First 10 data points from 180 days ago returns fine:
Switching to *-181d causes the error
Please let me know if this behavior is the same in your environment.
3 of 3 people found this helpful
Thank you for the screenshot. Your configuration is fine! I actually think you are encountering a known issue since the license used in the VLE is considered a development license. I'm sorry that you encountered this - it is specific to only development licenses.
Known issue: 23514OSI8 - with a development license, -12222 error occurs when searching backwards in history with an event count (i.e., specify a start time and a negative event count) in SMT archive editor plug-in - https://techsupport.osisoft.com/Troubleshooting/Known-Issues/23514OSI8
Can you both try switching the Event Count to positive 5 instead of -5? This will give you the first 5 events that occurred after the start time, versus the negative number would be returning the 5 values that occurred before the start time. This should also help avoid the known issue.
Please let me know if that helps!
1 of 1 people found this helpful
The developers were just discussing this known issue yesterday, and it is targeted to be fixed in the upcoming PI Data Archive release in October of this year.
Thank you Kelsey! Will try that!