Community Spring Cleaning week is here! Join your fellow Maveryx in digging through your old posts and marking comments on them as solved. Learn more here!

Alteryx Designer Desktop Discussions

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

Reading in Multiple .yxdb

nairB
5 - Atom

Hey community, I am having an issue with reading in and joining multiple .yxdb files at once.

There isn't a tool in the default library but I'm sure someone has invented a work around.

 

Please help!

2 REPLIES 2
Federica_FF
11 - Bolide

Hi @nairB!

 

Easy way: be sure all the files are in the same directory, open the first yxdb file with a Input Tool, change the connection string using metacharacters:

I want to open all the yxdb file in C:\User\Dataset. I start opening the file C:\User\Dataset\First_file.yxdb - then change the string C:\User\Dataset\*.yxdb (Any yxdb file, no matter the file name)

 

 

Classic way: You have to combine 2 tools, Directory tools (or any other way to get the full path list of the yxdb files you want to connect to) + Dynamic Input tool.

 

The Directory Tool gives you a list of all the files inside a folder - and optionally subfolders too. After that you can connect a Dynamic Input tool. To configure the tool properly you'll have to:

  • open one of your yxdb files as template (it only works if the several files have the same structure, number of fields, data type and header names)
  • Select the source of list of files (the field Full Path created by the directory tool)
  • Choose the action Change Entire File Path

The Dynamic Input tool basically opens the file you set as template and then sequentially opens all the other files listed in the directory, changing the entire file path of the first one used as template, and unions them (that's why we need a template).

 

See the attached workflow with a small example!

nairB
5 - Atom

Thank you very much for both solutions! Appreciated greatly :)

Labels