For more information, please refer to this announcement explaining best practices for getting answers to questions.
An attribute in the rule has a null value.
Hi,
We have a requirement that the transaction should go for an approval when there is a change in employee's country or region, this is working fine when we edit the existing address but if we add an new address for the employee who doesn't have any address then the transaction is going into error.
Error - An attribute in the rule has a null value.
Rule: ((transactionApprovalRequest.ViewInstanceName equalsIgnoreCase "PersonAddress") AND (Worker's Assignment.legislationCode equalsIgnoreCase "US") AND (((Current Person Address.result.country == "null") AND (Proposed Person Address.result.country != "null")) OR (((Current Person Address.result.country != "null") AND (Proposed Person Address.result.country == "null")) OR (((Current Person Address.result.country != "null") AND (Proposed Person Address.result.country != "null") AND (Current Person Address.country != Proposed Person Address.country)) OR (((Current Person Address.region1 == "null") AND (Proposed Person Address.region1 != "null")) OR (((Current Person Address.region1 != "null") AND (Proposed Person Address.region1 == "null")) OR ((Current Person Address.region1 != "null") AND (Proposed Person Address.region1 != "null") AND (Current Person Address.region1 != Proposed Person Address.region1))))))))