Owner manual

OpenLNS Programmer's Reference 207
UnrepairedErrors
Summary
Contains the number of errors discovered during the database
validation that were not repaired by OpenLNS. This includes
all errors OpenLNS did not attempt to repair, and all errors
OpenLNS was not able to repair.
You can initiate a database validation on a network by calling
the Validate method on the Network object. To have LNS
attempt to repair the errors it discovers during the validation,
select lcaDbValidateAndRepair (1) as the validationFlags
element when you call the Validate method.
You can determine the number of errors that were repaired
during the validation by reading the RepairedErrors property.
Availability
Local clients.
Syntax
repairedCount = validationReport.UnrepairedErrors
Element
Description
repairedCount
The number of errors discovered
during the database validation that
were not repaired.
validationReport
The DatabaseValidationReport
object to be acted upon.
Data Type
Integer.
Read/Write
Read only.
Added to API
LNS Release 3.20.
DatabaseValidationErrorInstance
The DatabaseValidationErrorInstance object is returned by the GetInstance method of the
DatabaseValidationErrorSummary object. It contains information indicating whether
OpenLNS was able to repair a specific error during a database validation. The returned
DatabaseValidationErrorInstance object also enables you to identify the object that caused
the error, including the class, internal ID, and name of the object, as well as its parent
object.
You can validate a database by calling the Validate method on the Network object. The
database validation generates a DatabaseValidationReport that includes the
DatabaseValidationErrorSummaries object, which contains a collection of
DatabaseValidationErrorSummary objects. Each DatabaseValidationErrorSummary object
contains information about a specific error type that was encountered during the database
validation. This information includes includes the number of times the error type was
encountered, whether OpenLNS can repair the error, and whether OpenLNS attempted to
repair the error.
If the ObjectDetailsAvailable property of the DatabaseValidationErrorSummary object is set
to True, you can use the GetInstance method to access specific details about each instance of
the error type summarized by this object.
The following table summarizes the DatabaseValidationErrorSummary object.