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:
