SAP Knowledge Base Article - Public

2661660 - Error when adding payment information

Symptom

When adding New Payment information details on the employee’s record, this is error is generated Rule "setBankData_PaymentInfoDetails" execution failed with error "[Error: could not access: paymentInformation; Since missing instance of paymentInformation] " This happens soon the Create button is pressed.

Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental.

Environment

  • SAP SuccessFactors
  • Employee Central 2.0
  • Payment Information V3

Cause

Rule was using old payment information as base object and no null check on the field was being performed. In the rule base object dropdown selection two Payment information shows. Second one is payementInformationV3.

Resolution

1. To correct this issue, recreate a new rule or modify the existing rule to be based on 2nd Payment Information object appearing in Base Object Dropdown.

Base selection.png

2. To make sure you are selecting the correct base object use it's externalCode for example in this case search with PaymentInformationV3

Search with externalCode.png

3. In the rule logic where your requirement is to set values / copy values from other fields make sure that you check that the source field has a value.

You can do this by comparing source value to null, check the if statement in below screenshot for an example.

search for paymentInformationV3.png

When rule is set according to above 3 steps, system will not throw any error.

Keywords

error when adding payment information, Rule execution failed with error, Error: could not access: paymentInformation; Since missing instance of paymentInformation, errorId=null, timestamp=null, errorMessage=Cannot read property 'name' of undefined, errorName=TypeError , KBA , employee central , successfactors , error when adding payment information , errormessage=cannot read property 'name' , rule execution failed with error , since missing instance of , business rule , LOD-SF-EC-PAY , Payment Information (Bank Information) , LOD-SF-EC-RUL , DO NOT USE - Business Rules & Event Derivation , Problem

Product

SAP SuccessFactors Employee Central all versions ; SAP SuccessFactors HCM Core all versions