cancel
Showing results for 
Search instead for 
Did you mean: 

Convert string to long in Message Mapping or XSLT SAP CPI

0 Kudos
375

Hi All,

I need to upsert a long value to Successfactors through SAP CPI.I am trying to convert the value 145.86 to long through xslt as below:

<cust_1><xsl:value-of select="xs:decimal(SUI)"/></cust_1>

or

Message Mapping:

Have the element cust_1 as xs:long.

but both these mappings returns only as String and getting the error on upsert as below:

Request Payload Parsing Failed for one of the reason: (1) Either the OData metadata content available in the server is outdated OR (2) The request payload seems to be incorrect. Error Details : Parsing exception for XML node <cust_1>, com.sap.gateway.core.ip.processor.exception.ODataProcessingException: Cannot convert 145.86 to java.lang.Long, java.lang.NumberFormatException: For input string: "145.86"

Can anyone let me know how to convert this to long through sap cpi?

Accepted Solutions (0)

Answers (0)