Thursday, January 26, 2012

OSB - XQuery expression validation failed.

Problem:
OSB fault cannot be used directly in exception hanlder and got an error message as "Xquery expression validation failed: The variable "fault" cannot be used here. "

Solution:
In the exception handler, first use "Assign" to assign the $fault to a variable, e.g. $myFault, then you can use the variable as what you need.

3 comments:

Swapnil Subhash Kharwadkar said...

still it won't work. variable fault can be accessed only in error handler node.

Victor Jan said...

You might be right. It still only can be used in error handler node.

Unknown said...

It is still not working even though we are using it in Error Handler Node. Is there any alternative method.

Could you please send the solution to viswas.ofm@gmail.com