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]: Replace Value in 'Fieldname' or 'Rename to' Not Working – Leaves Null Values #4953

Open
alexdesousapereira opened this issue Feb 26, 2025 · 1 comment
Assignees
Labels

Comments

@alexdesousapereira
Copy link

Apache Hop version?

2.12

Java version?

Java 17

Operating system

Windows

What happened?

I tried using the Replace value in 'Fieldname' or 'Rename to' option in a JavaScript - Functions transform, but it is not working. Instead of replacing the values, the output field becomes null.

Image

Image

Issue Priority

Priority: 2

Issue Component

Component: Transforms

@hansva
Copy link
Contributor

hansva commented Feb 28, 2025

This looks like an edge case, and a weird one at that.
Why have you set StatusPedido as an output field? it is not being used in the script.
So the value of StatusPedido = null (it's not being set in the script) and this is overwriting your Status_Pedido field

@hansva hansva removed the bug label Mar 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants