I have a model that uses two iterators, and so I am using submodels. However, I am having trouble getting my main model to recognize inline variable substitution for a variable from the submodel. When running the intersect tool after running the submodel, I get the following error:
Executing (Intersect): Intersect "E:\BFuda\GIS_Data\Properties_For_Sale\overlap_layers\sg_cor.shp #;E:\BFuda\GIS_Data\Properties_For_Sale\parcels_final\analind.shp #" E:\BFuda\GIS_Data\Default.gdb\%Name_wl% ONLY_FID # INPUT
Start Time: Wed Feb 06 10:12:37 2019
ERROR 000210: Cannot create output E:\BFuda\GIS_Data\Default.gdb\%Name_wl%
The table was not found. [%Name_wl%]
Failed to execute (Intersect).
Failed at Wed Feb 06 10:12:38 2019 (Elapsed Time: 1.35 seconds)
The model and submodel are shown below:
The inputs for the Intersect tool are shown as follows:
Solved! Go to Solution.
I solved this problem by designating the Name_wl variable as a parameter within the submodel. Then within the main model, I right-clicked on the submodel and chose Make Variable | From Parameter | Names_wl.
I solved this problem by designating the Name_wl variable as a parameter within the submodel. Then within the main model, I right-clicked on the submodel and chose Make Variable | From Parameter | Names_wl.