SAP Knowledge Base Article - Public

3086713 - Updating the field agreeToPrivacyStatement not working using API


When using API to update the candidate agreeToPrivacyStatement the API call provides the following error:
Candidate upsert failed: while trying to invoke the method com.successfactors.dpcs.bean.DpcsVersion.getDpcs() of a null object loaded from local variable 'currentDpcs' with the index 0


SAP SuccessFactors Recruiting Management.


Candidate didnt have the country field defined in the Candidate profile. As the country field was blank the system was not able to provide a DPCS statement to change the agreeToPrivacyStatement. 


Update the country field of the candidate profile. Once the Country field has been updated with a correct value rerun the API call to set the agreeToPrivacyStatement. 


DPSC, agreeToPrivacyStatement,  , KBA , LOD-SF-RCM-API , Webservices & APIs , Problem


SAP SuccessFactors Recruiting all versions