How To Add Terminated Resource To A New Organization Through Resource WebService (Doc ID 1994363.1)

Last updated on JUNE 21, 2017

Applies to:

Oracle Fusion Sales Cloud Service - Version 11.1.8.0.0 to 11.1.10.0.0 [Release 1.0]
Information in this document applies to any platform.

Goal

While trying to add a person to new Org in Sales Cloud, before adding him to new Org, user is deleting the Old assigned org to the user via terminateResource method in Resource web service (r8).

This happens fine and the user's role and org get end dated. Then add the resource to a new org via mergeResource method.

Now, when try to query the resource from Manage Resources page, then navigate to Org Tab, then go to Roles tab, and then back to Org Tab, see the error.

Can see two rows in the roles, one for the newly created role and the other one as end dated, with end date of today.
The error goes if end date the user's role to a day earlier than sysdate and save.

In order to replicate the same thing, and so that the error goes, added one more logic in the program to end date the user's old role to a date lesser than sysdate. - this is after adding the new org.
The error gets corrected and was able to navigate to the user's role and org tab correctly.

But the real problem now is, not able to terminate the same resource second time (running the program on a different date), and get the same message via the webservices:
Error: JBO-27024: Failed to validate a row with key oracle.jbo.Key[100000028322550 ] in ResourceRoleAssignEOJBO-HZ:::HZ_RS_OVERLAP_DATE_ERR: A role assignment with an overlapping date range already exists for this resource and this role.

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