AnsweredAssumed Answered

pi timeout issue

Question asked by Soundararajan on Apr 28, 2020
Latest reply on Apr 29, 2020 by Soundararajan

Hi,

 

I am working on a custom .NET application that uses the AF SDK to retrieve PI Data. In recent times, We are getting the below PI Timeout issue inconsistently, while trying to get the simple aggregrated value for a certain pipoint tag. (like "\\Supercollective\Tag")

[-10722] PINET: Timeout on PI RPC or System Call. OSIsoft.AF.PI.PIConnectionException

 

The default connectionTimeout value for that PIpoint supercollective is set to 10s. We have thought to increase the connectionTimeout by 20s by using the below code.

 

piPoint.Server.ConnectionInfo.ConnectionTimeOut = new System.TimeSpan(0, 0, 20); 

 

After execution, we got the below exception:

An exception of type 'System.InvalidOperationException' occurred in OSIsoft.AFSDK.dll but was not handled in user code. Additional information: Cannot change the PI Data Archive because it is defined by a collective.

 

Note that we are using AFSDK version 2.5.2

Is this the right way to increase the connectionTmeout in AFSDK? 

Also, Please let me know any way to fix this issue through PiPoint server settings.

 

Thanks in Advance.

 

Soundar

Outcomes