Hi,
I'm using the Batch Macro and Directory Input to bring in multiple files at the same time. But I've noticed that some files don't follow the same column structure as the rest.
In my workflow I've used the Formula Tool and Multi Row Formula Tool to look for any rows where the Column Header doesn't match what I'm expecting. Here's an example of the order not matching:

The 3 highlighted rows should match the column headers. The actual columns, Account Group, Reporting Month and Profile, are further to the right in fields with generic headers, like F12, F13 and F14.
I've then filtered the rows that don't match, and pulled out just the file name - I was thinking I could use this for a Pop Up Message to flag to the user that there's an error. Here's how my workflow looks:

But I don't then know how to reorganise this to the correct order, especially if I have more than one file that doesn't match the structure I need. I did see a post that advised creating the file structure then using a Join Tool as below:

But the issue is still that I do
My questions are:
- How can I reorganise the files with the wrong order to match the rest, expecting that there could be multiple files with differing orders
- How can I create a Pop Up that would alert the user to the error
I've attached a copy of the Workflow.
Can anyone help? Or suggest alternatives to this?
Thanks,
Mark