Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Done
-
6.6.7
-
None
-
JIRAXPORTER 2021 Sprint 2
-
Description
Description
Error NumberFormatException returned when setting up a variable with a formatted date.
It happens when using "set" "dateformat" and Javascrip to set the date into a variable.
How to reproduce
- Create a template with the following code:
${set(newRunDate, %{'${dateformat("yyyyMMddhhmm"):TestRuns[n].Finished On}'})} - Execute the report
Actual result/Attachments
The date value is not set up and the error below is shown in the logs:
_java.lang.NumberFormatException: For input string: "202009080254" _
Expected result
The date value is processed and shown in the output document.
Version
- Xporter 6.6.7