With PIData.ArcValue, I obtain a COMException like "No licenced to retrieve passed data". But with PI-SMT and AF Explorer, it's OK.
What does it mean?
Error messages returned from PI Data Archive usually contain a negative, up to 5 digits long error number. Can you please post the exact error / error number?
If the error is [-12222] Not licensed to access Archive for passed dates, there is a known issues that could apply:
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
Please note that this issue should not happen with the Personal Development PI System included with PI Developers Club memberships. There however exist license files with a limit on the amount of days backwards in time that can be retrieved by a client. Using the same StartTime and EndTime definitions for archived data retrieval, the behavior should be consistent independent what client you are using.
The error number is -12222 an our Pi data Archive version is 3.4.390...
So, we don't have to correct our code. But it's not easy for testing.
You are a PI Developers Club member and your membership includes a Personal Development PI System which does not suffer the restrictions you are currently experiencing. Please let us know if you need more details and I'll contact you by email for further discussion.
Actually the problem occurs on our client testing environment, not on our development platform.
Or client can't validate the delivery before the installation on production side.
We need to read the current value for two tags in a ACE context.
We are thinking about possible workarounds like:
Wich way do you think is the best way to succeed without having the [-12222] error?
A detailed troubleshooting of this issue requires asking exchanging some information that I consider sensitive and of the kind we don't want to see publicly posted here at PI Square / PI Developers Club. For that reason, I'll create a Technical Support case and contact you by email.
Hello Maxime HEBERT,
I've opened case # 655815 on September 11th and contacted you by email. I sent a follow-up email last Friday but haven't received your reply until now.
Please get back to me by email or post here if the situation has changed and you've found a way to deal with the [-12222] error.
I solved the problem using PIData.Snapshot instead of PIData.ArcValue.
Thank you for the update. I will close case # 655815.
I have the following theory:
Thank you for the advice. I'll keep in mind that the Snapshot value could not work for stale points.
Now, I use it with status tags that are updated many times per day.
Retrieving data ...