My Oracle Support Banner

Error "ORA-20001: Invalid value for DOCUMENT_TYPE_ID. The value must exist in HR_DOCUMENT_TYPES." While Creating Documents Of Record (DOR) via HR_DOCUMENT_EXTRA_INFO_API (Doc ID 3079919.1)

Last updated on APRIL 07, 2025

Applies to:

Oracle Human Resources - Version 12.2 HRMS RUP18 and later
Information in this document applies to any platform.

Symptoms

When trying to execute DOR API, following error appears

ERROR

ORA-20001: Invalid value for DOCUMENT_TYPE_ID. The value must exist in HR_DOCUMENT_TYPES.


The issue can be reproduced at will with the following steps:

1. Login to database using SQL Developer.

2. Create DOR by calling API "hr_document_extra_info_api.create_doc_extra_info".

3. Encounter the above error.

Cause

To view full details, sign in with your My Oracle Support account.

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


In this Document
Symptoms
Cause
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.