My Oracle Support Banner

E-BIP: BI Publisher Reports are Erroring out with "Error invoking 'millis_to_date':'java.lang.NumberFormatException: For input string: "1.692960810921E12" when attempting to use millis_to_date function to add 30 days to the sysdate/current date. (Doc ID 2971666.1)

Last updated on SEPTEMBER 01, 2023

Applies to:

BI Publisher (formerly XML Publisher) - Version 11.1.1.9.0 and later
Information in this document applies to any platform.

Symptoms

When attempting to use millis_to_date function to add 30 days to the sysdate/current date, the following error occurs:

The issue can be reproduced at will with the following steps:
1. Login to xmlpserver (host:port:xmlpserver).
2. Go to Catalog.
3. Create a new BI Publisher report with RTF Template type.
4. Add the following "millis_to_date" function construction to add 30 days to the sysdate/current date:
<?xdoxslt:millis_to_date(xdoxslt:date_to_millis(xdoxslt:sysdate_as_xsdformat())+2592000000)?>
5. From Catalog, create a new xml Data Model using Query Buikder SQL.
6. Associate the data model to the report.
7. View the report.
8. The error occurs.

Changes

 Upgrade from BI Publisher version 10g to BI Publisher version 12c.

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
Changes
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.