Hi All,
We have an excel file with multiple excel sheets with the same schema. We want to pull all the tabs in one tab. We used the dynamic input tool and the output tool but it's not working. I have done it before but it's not working this time. Hope you can help.
Please see the sample file and the workflow.
Solved! Go to Solution.
Hi,
Did you try using in *.xlsx in the input file?
It will take all the files from the same directory
C:\Folder1\*.xlsx
Hi @Taxguy03 ,
The schema is not the same across your different tabs as some of your fields have different names. For example, when comparing the first to the second tab, 3 fields have different names
To overcome this, you can either rename your fields (temporary solution) or create a batch macro for that task (future proof solution).
The file is in *.xlsx format. The file has many tabs. We want all the tabs to be in one tab when we output the file.
Hello,
Please see attached this post:
Hope this helps !
Regards,
So I have created a batch macro and configured it to output the tool based on the fields names (similar to what a Union tool can do).
It turns out that you have many fields across your different tabs having a different name, as shown below:
Instead, if you auto configure based on the fields position (more risky in case you have a new column somewhere in your data in the future) and remove the Tax Year column which is only present at tab "1011", I think you get what you are looking for.
Hope that helps, I've attached the workflow
Regards,
Angelos
Thanks @Taxguy03 for providing a second version of the data.
Now the reason why the Dynamic Input tool is not working this time is because your field types change between the first tab (0711) and the next two (0811 and 0911). If you look at the metadata, the field types between 0711 and 0811 are different for the following field:
This is probably due to the fact that your data had a different format when typed and are misinterpreted by Alteryx. Same goes for tab 0911, whilst all the rest of your tabs are read normally.
Again I think the batch macro I attached above can overcome those issues, except if there is a certain reason why you only want to use a "Dynamic Input" tool.
Hi AngelosPachis,
Thank you so much for your thoughtful and quick reply. I now see the issues with the "data type" which I didn't realize until you noted.
We will use the macro as you suggested instead of the "Dynamic Input Tool"
Have a great day.
@AngelosPachis I download your solution but can't make the workflow portion work immediately due to not having enough knowledge to modify/troubleshoot Alteryx.
Would you please explain on top-level what Marco and workflow do?
My file doesn't have the inconsistent field name issue, do I still need Marco?
Thanks,
Betty
@AngelosPachis wrote:So I have created a batch macro and configured it to output the tool based on the fields names (similar to what a Union tool can do).
It turns out that you have many fields across your different tabs having a different name, as shown below:
Instead, if you auto configure based on the fields position (more risky in case you have a new column somewhere in your data in the future) and remove the Tax Year column which is only present at tab "1011", I think you get what you are looking for.
Hope that helps, I've attached the workflow
Regards,
Angelos