Hello-
We recently started having issues with a workflow we've been running for several years - we're getting the ___ File have a different schema than the first file in the set. Seems like the files we input suddenly have a schema that doesn't work with our existing workflow. From my research, I think a batch macro will fix it, and I think I'm on the right track, but I'm not sure I've got it right because I'm still getting an error.
I followed the directions in step three of this post, but I've seen another post suggest I need a batch macro tool instead.
Our existing workflow used a directory tool to go out to a location where daily files are saved, then a sort to find the most recent by creation date, then sample tool to reference only the 10 most recent files. From there we've used a dynamic input tool to specify a template, and that where I get the error. Here's what my first attempt at incorporating a batch macro looks like. I'm not sure I have the Control Parameter and Update value tools in the right place, and I'm not sure how the output tool is supposed to work, though now that I'm thinking of it, I suppose it need to go at the end of my workflow, but I still need to add back in the rest of the many tools from the rest of my existing workflow. Basically i just need to know what the beginning looks like for bringing in all these files that are now of varying schema. Help! I'm lost and I need to fix this before I need to run this critical report again next week. 
