Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OSIsoft.AF.PI.PITimeoutException when reading data even with 5000 block #7

Open
cloud-rocket opened this issue Nov 15, 2023 · 1 comment
Assignees

Comments

@cloud-rocket
Copy link
Contributor

cloud-rocket commented Nov 15, 2023

<class 'OSIsoft.AF.PI.PITimeoutException'>
[-10722] PINET: Timeout on PI RPC or System Call.
   at OSIsoft.AF.PI.PIException.ConvertAndThrowException(PIServer piServer, Exception ex, String message)
   at OSIsoft.AF.PI.PIPoint.InterpolatedValuesByCount(AFTimeRange timeRange, Int32 numberOfValues, String filterExpression, Boolean includeFilteredValues)
   at OSIsoft.AF.PI.PIPoint.InterpolatedValues(AFTimeRange timeRange, AFTimeSpan interval, String filterExpression, Boolean includeFilteredValues)
Traceback (most recent call last):
  File "C:\Users\KHICKEY\AppData\Roaming\Python\Python311\site-packages\qt_data_extractor\worker_thread.py", line 69, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\KHICKEY\AppData\Roaming\Python\Python311\site-packages\qt_data_extractor\mainwindow.py", line 410, in copy_process_run
    self._api.copy_period(
  File "C:\Users\KHICKEY\AppData\Roaming\Python\Python311\site-packages\data_agent\api.py", line 34, in traceapi_closure
    raise e
  File "C:\Users\KHICKEY\AppData\Roaming\Python\Python311\site-packages\data_agent\api.py", line 21, in traceapi_closure
    result = func(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\KHICKEY\AppData\Roaming\Python\Python311\site-packages\data_agent\api.py", line 247, in copy_period
    self._data_exchanger.copy_period(
  File "C:\Users\KHICKEY\AppData\Roaming\Python\Python311\site-packages\data_agent\exchanger.py", line 69, in copy_period
    ).read_tag_values_period(
      ^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\KHICKEY\AppData\Roaming\Python\Python311\site-packages\data_agent\abstract_connector.py", line 29, in inner
    return func(self, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\KHICKEY\AppData\Roaming\Python\Python311\site-packages\data_agent_osisoft_pi\connector.py", line 388, in read_tag_values_period
    records = pt.InterpolatedValues(
              ^^^^^^^^^^^^^^^^^^^^^^
OSIsoft.AF.PI.PITimeoutException: [-10722] PINET: Timeout on PI RPC or System Call.
   at OSIsoft.AF.PI.PIException.ConvertAndThrowException(PIServer piServer, Exception ex, String message)
   at OSIsoft.AF.PI.PIPoint.InterpolatedValuesByCount(AFTimeRange timeRange, Int32 numberOfValues, String filterExpression, Boolean includeFilteredValues)
   at OSIsoft.AF.PI.PIPoint.InterpolatedValues(AFTimeRange timeRange, AFTimeSpan interval, String filterExpression, Boolean includeFilteredValues)

Troubleshooting info - https://customers.osisoft.com/s/knowledgearticle?knowledgeArticleUrl=KB00232

@cloud-rocket cloud-rocket self-assigned this Nov 15, 2023
@cloud-rocket
Copy link
Contributor Author

Should add at least 1 retry on failed timeout call

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant