Validation exceptions
A validation exception occurs when an object contains data that violates the method's data validation rules. A validation result object contains the detailed exception information from the exception log. Your application that uses the Dynamics GP service can trap these validation exceptions, and display an appropriate message describing the validation issues.
When a validation exception occurs, the exception contains an ID which identifies the exception in the exception log. The GetLoggedValidationResultByKey method retrieves the validation result object for the specified log ID. The GetLoggedValidationResultByKey method also requires a context object to be passed as the second parameter.