Why DOES API HR_ASSIGNMENT_API.UPDATE_EMP_ASG_CRITERIA Throws Error 'ORA-20001: Invalid position'? (Doc ID 1569192.1)

Last updated on DECEMBER 21, 2016

Applies to:

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

Symptoms

When attempting to call API HR_ASSIGNMENT_API.UPDATE_EMP_ASG_CRITERIA, the following error occurs.

However, the assignment details can be updated using Applications.

ERROR
ORA-20001: Invalid position

This position does not exist at all, or is not completely within the assignment's date range.
ORA-06512: at "APPS.HR_ASSIGNMENT_API", line 16616
ORA-06512: at "APPS.HR_ASSIGNMENT_API", line 15179
ORA-06512: at "APPS.HR_ASSIGNMENT_API", line 14964
ORA-06512: at line 19



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

1. Call the API HR_ASSIGNMENT_API.UPDATE_EMP_ASG_CRITERIA in SQL Developer or TOAD session.

2. The API throws the above exception.


WORKAROUND
Application can be used to update the assignment records. However, this is not possible to do for all mass assignment records manually.

Cause

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