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

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

dgopois
11-Garnet

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
dgopois
11-Garnet
(To:dgopois)

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

Announcements