Please be sure you’ve read the docs and API specs before asking for help. Also, please be sure you’ve searched the forum for your answer before you create a new topic.
I am looking for hep to build XPATH to retrieve action reason from the following XML. My need is to get “Resignation”, which is a descriptor for End_Employment_Reason_Reference.
We do something similar but instead of checking the end employment reason reference at the “position” level in Workday we use the primary termination reason reference at the worker level. You are missing the full tree in the XML sample you provided so I cant provide the XPATH but if you use @ns1:Descriptor at the end of your full path to the attribute it should give you that value. As an example in my case this is my XPATH for the descriptor of the primary termination reason reference: ns1:Worker_Data/ns1:Employment_Data/ns1:Worker_Status_Data/ns1:Primary_Termination_Reason_Reference/@ns1:Descriptor
This should return Resignation from the “Descriptor” attribute.
For the Workday connector, make sure you use the namespace prefix configured for your source. SailPoint’s Workday connector uses “ns1:” for XPath mappings, so if your existing mappings use “ns1:”, I would use that rather than “wd:”.
Also, if the descriptor is not being returned during aggregation, check that Include_Reference_Descriptors_In_Response is enabled.
Its also worth noting that Sailpoint does have an XPATH evaluator tool where you can enter the XML input, your specific XPATH mappings and it will show what the response will include. So you could test these in that tool without having to mess with your existing working source connector. That tool is: XPath Evaluator | SailPoint Developer Community
Hi @HPatel That XPath is good, so maybe post the complete XPath_Schema_Mapping from the Source config json. Could be a rogue trailing space or something like that.
Jeremy’s suggestion makes sense. Since the updated XPath is valid but the same stylesheet compilation error persists, it would be useful to see the complete “Xpath_Schema_Mapping” from the source configuration.
That should help identify whether another XPath contains a trailing/hidden space or invalid expression that is causing the stylesheet compilation to fail.