Alteryx Designer Desktop Discussions

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

using dynamic input to append two different files

Rive11115
6 - Meteoroid

Hi,

I'm using two files via sftp.  They both align on the same column names, but File 2 has an extra field which sometimes is empty field.

Because of the extra field my dynamic input is skipping the second file (File 1).   In this case File 2 is received prior to File 1 but this could change. 

Is there a way to union the files prior to the dynamic input?

I've included a pic of the tools I'm using in the workflow.  

 

 

File 1:

ACCOUNTSITETID
23y2
34y5

File2:

ACCOUNTSITETIDMBUSNAME
56u8 
78u9 

 

Expected Result:

ACCOUNTSITETIDMBUSNAME
23y2 
34y5 
56u8 
78u9 
3 REPLIES 3
edwin_melo
5 - Atom

Yes, you have opportunities to use the Union Tool somewhere in your workflow.  Also, looking at the picture of the tools you are using, I would recommend including the Record ID and Multi-Row Formula tools in your workflow.  The Multi-Row Formula can be used to group by FileName and create an ordinal to include the empty field.

alexnajm
16 - Nebula
16 - Nebula

You can also use a batch macro to overcome this - there is a description and an example here: The Ultimate Input Data Flowchart (alteryx.com)

Rive11115
6 - Meteoroid

Could you please show me how u would do this in a workflow.

Labels