Model Builder select by inline variable substitution using like %value%

757
0
07-08-2020 08:16 AM
BartłomiejGajc
New Contributor

I am stuck. Have Model Builder selecting features by attributes using text string which is a variable. I need to use LIKE operator (I use 'contains the text' from the drop-down list) but this gives me empty result:

LIKE '%\%rname\%%' ESCAPE '\'

rname is my variable name. I select a feature class form file geodatabase. No error but empty result.

When using the same tool 'manually' it selects what I expect, it gives empty output in model builder. It looks like is does not substitute %rname% with a variable value..

0 Kudos
0 Replies