My Oracle Support Banner

R12: IBY: Format Payment Instructions with Text Output Ends with Error: oracle.xdo.parser.v2.XPathException: Extension function error: Error invoking 'lpad':'java.lang.NegativeArraySizeException' (Doc ID 2954016.1)

Last updated on JUNE 13, 2023

Applies to:

Oracle Payables - Version 12.2.5 and later
Information in this document applies to any platform.

Symptoms

When attempting to run IBY_FD_PAYMENT_FORMAT_TEXT: Format Payment Instructions with Text Output,
the following error occurs.

...
size of extract reader before calling Template Helper ::44iby.engine.ExtractFormatter.applyFormat
Before TemplateHelper.processTemplate Call: Fri Oct 28 07:24:13 UTC 2022
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
...
Caused by: oracle.xdo.parser.v2.XPathException: Extension function error: Error invoking 'lpad':'java.lang.NegativeArraySizeException'
at oracle.xdo.parser.v2.XSLStylesheet.flushErrors(XSLStylesheet.java:1534)
at oracle.xdo.parser.v2.XSLStylesheet.execute(XSLStylesheet.java:521)
...
Error: an error occurred during formatting. Please verify the template is valid.
oracle.apps.iby.exception.PSException: Internal Error to Payment Server:
at oracle.apps.iby.engine.ExtractFormatter.applyFormat(ExtractFormatter.java:163)
at oracle.apps.iby.engine.ExtractFormatter.applyFormat(ExtractFormatter.java:281)
...
at oracle.apps.iby.scheduler.FDExtractAndFormatting.runProgram(FDExtractAndFormatting.java:159)
at oracle.apps.fnd.cp.request.Run.main(Run.java:159)

Internal Error to Payment Server:
An error occurred. Roll back any changes.
Done roll back changes.
Request completed in error.
CP main completed runProgram for oracle.apps.iby.scheduler.FDExtractAndFormatting
...
Get_Doc_Ext_Agg 28-OCT-22 07.23.02.881881000 AM +00:00
Program firing the request:Format Payment Instructions with Text Output
Program firing the request Type:FORMAT


The issue can be reproduced at will with the following steps:
1. Responsibility: Oracle Payable
2. Path: Payment Manager ==> Payment Process Request
3. Create a Payment Process Request (payment batch)
4. Run Format Payment Instructions.

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.