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.
Employee Central 2.0
Payment Information V3
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.
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.
2. To make sure you are selecting the correct base object use it's externalCode for example in this case search with PaymentInformationV3
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.
When rule is set according to above 3 steps, system will not throw any error.
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 , rule execution failed with error , error when adding payment information , since missing instance of , errormessage=cannot read property 'name' , employee central , successfactors , business rule , LOD-SF-EC-PAY , Payment Information , LOD-SF-EC-RUL , Business Rules & Event Derivation , Problem