Monday, 25 July 2022

REST API call and payload - Reassign a transaction in Oracle Cloud HCM


The below payload is not available in documentation.

Method : PUT

API : bpm/api/4.0/tasks/{task_number}

Payload :

{
  "identities":[
     {
        "id":"finuser2",
        "type":"user"
     }
  ],
  "action":{
     "id":"REASSIGN",
     "type":"system"    
  },
  "comment":{"commentStr":"Second comment","commentScope":"BPM"}
}

Thursday, 21 July 2022

The party identified by the specified party ID does not exist

If you are trying to create a personal payment method for an employee but you are getting below error.

 Error: The party identified by the specified party ID does not exist. (PER-1530186)

To Resolve this issue we need to run the "Synchronize Person Records" process so that a party id will be created for the employee, who is basically a new hire

The from date and to date passed as parameters to this process should be in such a way that the last update date of per_persons record for the employee in question falls between these 2 dates.

select PERSON_ID,LAST_UPDATE_DATE from
per_all_people_f where PERSON_ID in (<Enter Person ID>);

To check if party id exists for any person, we can check with below query

SELECT h.party_id
FROM hz_parties h
,hz_orig_sys_references hosp
,per_all_people_f papf
WHERE hosp.owner_table_id = h.party_id
AND hosp.orig_system_reference = to_char (papf.person_id)
AND hosp.owner_table_name = 'HZ_PARTIES'
AND hosp.orig_system = 'FUSION_HCM'
AND papf.person_id = <Enter Person ID>