IBM Support

"Unable to parse the if-then expression" with error "javax.xml.xpath.XPathExpressionException" with Cast Iron

Troubleshooting


Problem

Receiving the error message "Unable to parse the if-then expression" with error "javax.xml.xpath.XPathExpressionException"

Cause

The reason for this error message is that the variable will hold an empty string and when performing the if-condition, the XPATH will convert the empty string to double to perform the validation (if the condition is to check for numeric values) and this will cause the above error message.

Resolving The Problem

To verify, check the maestro.out file which is located under /var/log folder. In this file, if you see the below statements, check the map output section of the activity where the mapping is done for the variable being used in the if-then condition.

SEVERE [com.approuter.maestro]: Unable to parse the if-then expression
; Line#: 1; Column#: -1
net.sf.saxon.trans.DynamicError: ValidationException: Cannot convert string "" to a double

Other possible reasons for this error message are in the Studio release notes under "XPath Expressions".

[{"Product":{"code":"SSGR73","label":"IBM Cast Iron Cloud Integration"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Appliance Runtime","Platform":[{"code":"PF016","label":"Linux"},{"code":"PF033","label":"Windows"}],"Version":"6.3.0.1;6.1.0.15","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Historical Number

00000620

Product Synonym

Cast Iron Solution;Cast Iron Operating System;Cast Iron Studio

Document Information

Modified date:
15 June 2018

UID

swg21453135