DBMS_LDAP Code Returns: Error code : -31201 Error Message : ORA-31201: DBMS_LDAP: generic error: Invalid BER ELEMENT Exception encountered .. exiting

(Doc ID 2036248.1)

Last updated on FEBRUARY 22, 2017

Applies to:

Oracle Internet Directory - Version 9.0.4 to 11.1.1 [Release 10gR1 to 11g]
Information in this document applies to any platform.

Goal

Custom dbms_ldap code returns error:

       Error code    : -31201
Error Message : ORA-31201: DBMS_LDAP: generic error: Invalid BER ELEMENT
       Exception encountered .. exiting

What is the meaning of this error and how to resolve it?

Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms