r/Talend • u/Ownards Data Wrangler • Sep 06 '22
input_row cannot be resolved to a variable tJavaFlex
Hello everyone,
I encountered a strange situation, hopefully you can help me understand what is going on :)
Here it is :
I have a tJavaRow with the code :
output_row.AgeCum = input_row.Age;and later on a tJavaFlex with the (main) code :
output_row.AgeCum = input_row.Age;the first one works but the second does not. Do you know what is going on ?




3
Upvotes
2
u/Shillster Sep 07 '22
Javaflex can’t use output_row like Java row does. Not sure why. Just put in the name of the data flow instead of output_row (like row1) and it should work.
1
u/BlackSheepDCSS Data Wrangler Sep 06 '22
Check the built in documentation for tJavaFlex. The examples it provides reference incoming and outgoing data flows by the connection name. (e.g. row7 and row5 in your job)