With ACL, Error when i try to evaluate an XPath expression with the function "oid_xpath_nodeset"
Sep 28, 2022
05:18 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Sep 28, 2022
05:18 AM
With ACL, Error when i try to evaluate an XPath expression with the function "oid_xpath_nodeset"
Hello,
With ACL, I try to use this function:
oid_xpath_nodeset(oid_root(), arr, "count(//proceduralStep)>0");
The function fails with the error message:
[A30283] Cannot convert result to requested type: Cannot convert 'number' to 'string'
However, the following function executes successfully:
oid_xpath_boolean(oid_root(),"count(//proceduralStep)>0")
Can you help me to solve this problem ?
1 REPLY 1
Sep 29, 2022
04:08 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Sep 29, 2022
04:08 AM
Hello,
My explanation to the problem:
- Evaluating this expression ""count(//proceduralStep)" returns a number
- Evaluating this expression ""count(//proceduralStep)>0" returns a boolean
- Evaluating this expression ""//proceduralStep" returns a string
The function "oid_xpath_nodeset" must evaluate an expression which returns a result of type string
Regards
David
