cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Retrieved 'jobInfo.country_of_company'. Value: 'null' when using Time off Calendar.

former_member64013
Discoverer
0 Kudos
1,270

Hi,

We are try to import SAP EC system in our company. After setting up all Time Off related object and rule, we use rule trace to trace some problem. we use 'jobInfo.country_of_company' in the rule to determine the amount need to be post. But sometimes 'jobInfo.country_of_company' return 'null'. (Same employee, sometime the country is null, sometime is normal value.)

Here are two rule logs for reference. Is anyone can help me with this issue? Thanks very much.

Accepted Solutions (1)

Accepted Solutions (1)

former_member64013
Discoverer

I use userID.jobInfo.company.countryOfRegistration instead of jobInfo.country_of_company to solve this problem. it's work now...

Answers (1)

Answers (1)

Mary_MR
Product and Topic Expert
Product and Topic Expert

Hi Hank,

The country-of-company field is determined by system logic, derived from the Legal Entity/Company of the user. These derivation occurs as a background logic, which in some cases is not completed when rules are being processed. Due to this, it is recommended to use .jobInfo.company.countryOfRegistration instead of jobInfo.country_of_companyas you have stated.

Kind Regards,
Mary