I have setup a nested model to run through folders of shapefiles for different feature classes.
There are over a hundred of these folders one for each department of France. Each of these folders has sub-folders and each sub folder contains multiple shapefiles for different types of data.
My aim is to iterate through these numerous folders and only select those shapefiles that I want to merge together into the national dataset - e.g I want to grab all the shapefiles describing vegetation and merge them into a single vegetation shapefile with national coverage.
To do this I built the attached sub-model and main model to process all the files called ZONE_VEGETATION.SHP.
The data for each department has the same name so all the files I want are called ZONE_VEGETATION.SHP
The model runs but only gives me a single department (i.e. one ZONE_VEGETATION.SHP) as the output of Merge.
I am sure I am missing something obvious but it escapes me for now....
This is the beginning of a larger model I will need to run repeatedly as we plug in different test datasets and adjust certain weightings etc as part of a research project, so I need to automate as many steps as possible.
Model structure (Export of the python attached).
I am running ArcGIS Pro 2.5