Automatic Input
- S'abonner au fil RSS
- Marquer le sujet comme nouveau
- Marquer le sujet comme lu
- Placer ce Sujet en tête de liste pour l'utilisateur actuel
- Marquer
- S'abonner
- Sourdine
- Page imprimable
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler au modérateur
Hello,
on my workflow I have to put 12 files as input (one file per month). For example, for the month of January, I upload the January file, in February I upload the February file (with the January file that is already there), and so on.
I'm looking for a solution that allows Alteryx to go to my directory and take the file directly, without me going to do it manually. Is there a method to automate this task? If so, what is this miraculous solution ?
In addition, the files generally have the same format, but it is possible that for one month, we will have one more column compared to the last few months, or a column that changes its type (for example, it goes from V_string to V_WString).
Thank you in advance for your help.
I didn't put any data because my data is customer data and it's strictly confidential
Résolu ! Accéder à la solution.
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler au modérateur
Hello @Mouhcine ,
Here is an article that detail this. + Workflow examples
- French: https://community.alteryx.com/t5/Blog/Les-4-methodes-pour-charger-dynamiquement-des-fichiers/ba-p/83...
- English: https://community.alteryx.com/t5/Engine-Works/Four-Methods-to-Consolidate-Files/ba-p/912480
Hope it helps.
Sales Engineer
Alteryx

- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler au modérateur
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler au modérateur
Hello @Mouhcine ,
Sorry I was sick and wasn't able to answer sooner.
There is several small issue in your workflow that I am going to adress with you.
But 1st, have you spent time to follow the Macro interactive session ? ( Macros interactive lessons )
As explained Macros are more powerful but also more advanced and for not getting lost for the beginner it is important to understand the concept and menus.
The idea is to rebuild as it is my example. And it should work. You can reuse my workflow and change the directory path or only re use my macro.
That being said, the 1st error is that in your example you are using an INPUT toot and not a DIRECTORY tool, meaning you are retrieving data and not metadata of your files. So your are not feeding the macro with the right info.
The 2nd Error is that you then also need to add the Tab name (in my example "KPI") using a FORMULA tool which is missing in your example.
Here is the formula to add this "KPI" tab name to the path.
3rd issue I see on the screen shot is that the tab Excel does not seems configurate OK as I do not see the KPI tab.
Here is what you have vs what you should have:
vs my example:
4th issue (which is not blocking but more about understanding) is that you input here the path, but this is where you should store the description of your question.
The one that you see when you clic on the macro here:
Hope it helps.
But remember:
- I advise you to follow the macro interactive lesson to have the minimum context to understand the logic of macro. It could help you to understand the steps and why we are doing it.
- you can re use my own example and macro and just change some parameter. For instance you can change the directory for the one of your computer, change the tab name with the one you have and it would work.
Bye
Sales Engineer
Alteryx

- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler au modérateur
Hello again @Stéphane,
I hope you're doing much better now.
Thank you for your feedback. I now understand what is wrong. Thanks again for your help 😊
I took the macros course given by your colleague Christine Bonthius, and I'm going to follow your link as well
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler au modérateur
