Error Password Capture Agent when i update the password from AD

I have installed the Password Capture Agent in a DC and when I update password from the AD, I have the error:

2021-06-17 09:54:05.8985 ERROR (PasswordCaptureAgentScript ) : Unexpected Error occured: [810077] Person: The following fields are compulsory and need to be filled: Main identity.

My identity in One Identity have in the field "Identity Type" the value "Primary Identity".