Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

join tool not updating

avuong6
8 - Asteroid

hello 

i have this process:

avuong6_0-1674066348197.png

i recently updated the sql to pull an extra field from the database as show in orange

avuong6_1-1674066498905.png

 

when i look in the join tool, the new field is not coming thru:

avuong6_2-1674066576762.png

 

so how to get the join tool to recognize the new column 'hiekey'

 

 

8 REPLIES 8
Felipe_Ribeir0
16 - Nebula

Hi @avuong6 

 

Did you run the workflow (not the app) at least 1 time with this new config to generate the metadata?

 

Try doing this.

avuong6
8 - Asteroid

yes, pressed this button:

avuong6_0-1674067272072.png

 

avuong6
8 - Asteroid

not in meta data window:

avuong6_1-1674067406852.png

 

 

avuong6
8 - Asteroid

 

yes, pressed run button.

data is not in data stream out tool:

avuong6_0-1674068258418.png

 

 

RobertOdera
13 - Pulsar

Hi, @avuong6 

 

Consider the following:

1. In the Join Tool configuration: Options --> Save/Load --> Load Field Names

2. In the Union Tool configuration: either click into the tool (and that should be enough) OR Configuration --> Output All Fields

3. Inspect whether that new field is in both streams and therefore outputting through the J node versus L or R (and if so, add a connect to the Union)

 

Cheers!

avuong6
8 - Asteroid

1) did that and it only opens up a dialog box:

avuong6_0-1674075432583.png

 

2) already set as is

avuong6_1-1674075473001.png

3) new field is not there

avuong6_2-1674075513989.png

 

StellaBon
11 - Bolide

You could

1) If you are writing back to the database, create the new field in the database first, just as a field name- so it exists.

2) Alternately, use a Text Input Tool to create and add the new field name to the data stream before the join.

3) Try both 1 & 2  concurrently

 

S

avuong6
8 - Asteroid

so i figured out what the issue is:

 

in my sql, i used variable name where i want to update the code:

avuong6_0-1674138156156.png

but this produces an error as it cant find the table. this didnt matter because at run time it updates the variable name to the correct table and runs. but when not running, this error causes the other tools not to work. 

 

so i updated the code to use the correct table name instead of a variable. then i updated the update tool to replace the table name and it worked. any sql code change flowed thru to the join tool.

 

Labels