I have a model that creates a census tract segment layer by intersecting with a .5 mile buffer around every park in the city. It iterates through each park buffer individually on the GISPROPNUM field, and then appends the census tract segments onto a master shapefile. This model works great but I would like to turn it into a tool that can iterate through any layer and intersect it with any other selected layer in any mxd it opens in.
My problem is that after the first iteration, it stalls at the Append step because the schema does not match the target shapefile (because there is no target shapefile yet). Ideally, I would like the schema of the output to match the source (in this case, the park layer).
SO in a nutshell, at the append step it needs a target shapefile whose schema matches the source (the park buffer layer), but how can there be a target dataset if the tool has never been run within an mxd? How do I create a shapefile after the first iteration that can be used as a target dataset?