I believe the XPath for ON_LEAVE is incorrect, and should be Worker_Data/Employment_Data/Worker_Status_Data/Leave_Status_Data[1]/@On_Leave rather than Worker_Data/Employment_Data/Worker_Status_Data/Leave_Status_Date[1]/@On_Leave
Also note that this is a multi-valued field, and we have found that selecting the first value for a user with multiple leaves will result in pulling a prior leave that has already ended and result in a value of 0 even if the user is currently on leave.
Hi Mike! Thank you for your input. We’ve created a Jira issue to track the effort and we’ll update the comment thread when it’s been addressed: CONDOCS-4837
Hi Mike. I fixed the issue with the filepath, and the page has been updated.
I spoke with our engineering team regarding your point about it being a multi-valued field, and I was told that this attribute is actually a single-valued field. Since this is more of a technical question, I’ve moved your comment to our ISC Discussions and Questions category for greater help from the community. If you are encountering any issues, you can also reach out to our Support team.
Here is an example from our environment (with some redacted data), where the field is multi-valued. You an see the first entry is for a prior leave which is no longer active, and the second entry is for the current active leave. We had to update our XPath to account for this, otherwise the first entry takes precedence and inaccurately reported that this user was not on leave.
Our HR team has also verified that a user could be on multiple active leaves at a given time.