My Oracle Support Banner

TranslateToNative (XPath Extension Function) Does Not Consistently Add Required Padding To Empty String (Doc ID 1290555.1)

Last updated on MARCH 30, 2019

Applies to:

Oracle SOA Suite - Version 11.1.1.1.0 and later
Information in this document applies to any platform.

Symptoms

This note discusses the issue and solution for: TranslateToNative ( XPath Extension Function) when used in a BPEL Process does not consistently add required padding to empty strings.

TranslateToNative in some cases, when the variable used as a parameter to the TranslateToNative is initialized with an empty string using the assign activity does not work as expected and when initialized with an empty string using  XSLT activity works as expected.

To better explain the issue, The expected behavior for TranslateToNative function for an empty string is to pad the empty string with 0s.

See the output of the test case:

Output when a empty string "" was assigned to the variable:


You would notice that when non empty string was passed to TranslateToNative function, it had padded the string with 0s where as with the empty string the padding did not occur.

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.