Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AF SDK Reference

AFDataReference.Repair Method (PISystem, EventHandler(AFProgressEventArgs))

AFDataReference.Repair Method (PISystem, EventHandler(AFProgressEventArgs))

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFDataReference.Repair Method (PISystem, EventHandler(AFProgressEventArgs))
Executes the repair function on the PI Point or PI Point Array data references found within the attributes and its children of a PI System. When point ids or point names in the ConfigString no longer match those on the PI Data Archive, a repair fixes the mismatch.

Namespace:  OSIsoft.AF.Asset
Assembly:  OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182

Syntax

public static int Repair(
	PISystem system,
	EventHandler<AFProgressEventArgs> eventHandler
)
Public Shared Function Repair ( 
	system As PISystem,
	eventHandler As EventHandler(Of AFProgressEventArgs)
) As Integer

Dim system As PISystem
Dim eventHandler As EventHandler(Of AFProgressEventArgs)
Dim returnValue As Integer

returnValue = AFDataReference.Repair(system, 
	eventHandler)
public:
static int Repair(
	PISystem^ system, 
	EventHandler<AFProgressEventArgs^>^ eventHandler
)
static member Repair : 
        system : PISystem * 
        eventHandler : EventHandler<AFProgressEventArgs> -> int 

Parameters

system
Type: OSIsoft.AFPISystem
The PI System containing the attributes.
eventHandler
Type: SystemEventHandlerAFProgressEventArgs
Delegate used to receive progress indication on operations.

Return Value

Type: Int32
Returns the number of data reference configurations that were modified.

Version Information

AFSDK

Supported in: 3.1.1, 3.1.0, 3.0.2, 3.0.1, 3.0.0, 2.10.11, 2.10.5, 2.10.0, 2.10, 2.9.5, 2.9, 2.8.5, 2.8, 2.7.5, 2.7, 2.6

See Also

In This Topic
Related Links
TitleResults for “How to create a CRG?”Also Available in