where totalprice and discountPercent are string type and are extracted from two separate elements from the input message. The Custom XPath statement in the IIB10 Mapping node fails and the output from debug is as follows
Insert
Type:INTEGER:5
Text:CHARACTER:{default}:decisionServiceResponseToOutputJSON
Insert
Type:INTEGER:5
Text:CHARACTER:XPath: xs:integer($totalPrice) * (100 - xs:integer($discountPercent))/100
RecoverableException
File:CHARACTER:Undefined
Line:INTEGER:-1
Function:CHARACTER:throwableToMbException
Type:CHARACTER:
Name:CHARACTER:
Label:CHARACTER:
Catalog:CHARACTER:BIPmsgs
Severity:INTEGER:3
Number:INTEGER:3949
Text:CHARACTER:Caught BrokerXCIDynamicException
Insert
Type:INTEGER:5
Text:CHARACTER:IXJXE0458E: [ERR 0407][ERR FORG0001] The operand cannot be cast to type 'xs:integer?'.
If i have missed any info required to understand and resolve the issue, please let me know.
where totalprice and discountPercent are string type and are extracted from two separate elements from the input message. The Custom XPath statement in the IIB10 Mapping node fails and the output from debug is as follows
Insert
Type:INTEGER:5
Text:CHARACTER:{default}:decisionServiceResponseToOutputJSON
Insert
Type:INTEGER:5
Text:CHARACTER:XPath: xs:integer($totalPrice) * (100 - xs:integer($discountPercent))/100
RecoverableException
File:CHARACTER:Undefined
Line:INTEGER:-1
Function:CHARACTER:throwableToMbException
Type:CHARACTER:
Name:CHARACTER:
Label:CHARACTER:
Catalog:CHARACTER:BIPmsgs
Severity:INTEGER:3
Number:INTEGER:3949
Text:CHARACTER:Caught BrokerXCIDynamicException
Insert
Type:INTEGER:5
Text:CHARACTER:IXJXE0458E: [ERR 0407][ERR FORG0001] The operand cannot be cast to type 'xs:integer?'.
If i have missed any info required to understand and resolve the issue, please let me know.
where totalprice and discountPercent are string type and are extracted from two separate elements from the input message. The Custom XPath statement in the IIB10 Mapping node fails and the output from debug is as follows
Insert
Type:INTEGER:5
Text:CHARACTER:{default}:decisionServiceResponseToOutputJSON
Insert
Type:INTEGER:5
Text:CHARACTER:XPath: xs:integer($totalPrice) * (100 - xs:integer($discountPercent))/100
RecoverableException
File:CHARACTER:Undefined
Line:INTEGER:-1
Function:CHARACTER:throwableToMbException
Type:CHARACTER:
Name:CHARACTER:
Label:CHARACTER:
Catalog:CHARACTER:BIPmsgs
Severity:INTEGER:3
Number:INTEGER:3949
Text:CHARACTER:Caught BrokerXCIDynamicException
Insert
Type:INTEGER:5
Text:CHARACTER:IXJXE0458E: [ERR 0407][ERR FORG0001] The operand cannot be cast to type 'xs:integer?'.
If i have missed any info required to understand and resolve the issue, please let me know.
The error message is clear:
Quote:
The operand cannot be cast to type 'xs:integer
i understand that it could be input data and function mismatch. My main intention was to confirm whether the xpath statement is correct assuming integer input.
The XPATH statement is wrong. The price needs to be a float or a double.
The result of the operation is not an integer... _________________ MQ & Broker admin
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum