Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Javascript transform: Couldn't parse Date field [timestamp] with value [20230228161206] #2486

Closed
sramazzina opened this issue Feb 28, 2023 · 0 comments
Assignees
Labels
bug P2 Default Priority P3 Nice to have Transforms
Milestone

Comments

@sramazzina
Copy link
Contributor

sramazzina commented Feb 28, 2023

Apache Hop version?

2.3.0

Java version?

OpenJDK 11.0.18

Operating system

Linux

What happened?

When pressing the Javascript transform Test script button and that transform gets in input a timestamp field, if and only if that field has a format mask associated, Hop raised the following exception

2023/02/28 16:14:54 - [Validate data - PREVIEW].## TEST DATA ##.0 - ERROR: Couldn't parse Date field [timestamp] with value [20230228161454] --> org.apache.hop.core.exception.HopValueException:
2023/02/28 16:14:54 - [Validate data - PREVIEW].## TEST DATA ##.0 - timestamp String : couldn't convert string [20230228161454] to a date using format [yyyy/MM/dd HH:mm:ss] on offset location 14
2023/02/28 16:14:54 - [Validate data - PREVIEW].## TEST DATA ##.0 - 20230228161454
2023/02/28 16:14:54 - [Validate data - PREVIEW].## TEST DATA ##.0 - ERROR: Error initializing transform [## TEST DATA ##]

Issue Priority

Priority: 3

Issue Component

Component: Transforms

@sramazzina sramazzina added bug P2 Default Priority labels Feb 28, 2023
@sramazzina sramazzina self-assigned this Feb 28, 2023
@github-actions github-actions bot added P3 Nice to have Transforms labels Feb 28, 2023
@hansva hansva closed this as completed in db2179c Mar 1, 2023
hansva added a commit that referenced this issue Mar 1, 2023
@hansva hansva added this to the 2.4 milestone Mar 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug P2 Default Priority P3 Nice to have Transforms
Projects
None yet
Development

No branches or pull requests

2 participants