Skip to main content
13-Aquamarine
September 28, 2022
Question

With ACL, Error when i try to evaluate an XPath expression with the function "oid_xpath_nodeset"

  • September 28, 2022
  • 1 reply
  • 969 views

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

dgopois13-AquamarineAuthor
13-Aquamarine
September 29, 2022

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