Skip to Main Content
AVEVA Product Feedback


Status No Status
Created by Guest
Created on Aug 19, 2022

Expose backfilling/recalculation status in the AFSDK

Currently analysis runtime information can be accessed programmatically using the AFSDK (AFAnalysisService.RuntimeInformationFields - https://techsupport.osisoft.com/Documentation/PI-AF-SDK/html/P_OSIsoft_AF_Analysis_AFAnalysisService_RuntimeInformationFields.htm). However, there are no fields which can be specified corresponding to backfilling/recalculation status of an analysis. Adding a field for the aforementioned property or introducing a new method which could expose backfilling/recalculation status would be helpful for finding backfilling/recalculation errors programmatically. This approach should be much faster than finding analyses with backfilling errors in PSE.
  • Attach files
  • Guest
    Reply
    |
    Feb 28, 2024

    The original request references AFAnalysisService.QueryRuntimeInformation Method, but I wonder if AFAnalysisService.QueueCalculation Method is more appropriate. The latter contains the remark, "This method queues the list of analyses on the analysis service service [sic] to be calculated. The operation is asynchronous and returning of the method does not indicate that queued analyses were calculated. The status can be queried in the upcoming releases using the returned handle."

    This sounds like the requested functionality is planned but has not been implemented yet.

  • Guest
    Reply
    |
    Aug 19, 2022
    This would be a really useful feature - we're currently using AFSDK to identify and submit complex chains of required backfilling calculations (i.e. if a historic input to Analytic A has been modified, backfill Analytics A, B1, B2, C1, C2, C3, C4, C5). We can identify the dependencies, submit the backfilling request, but then are unable to detect the status of each job, which makes it difficult to ensure the jobs are all processed in order.
    1 reply