Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am having a slight problem with using the Make Feature Layer tool in model builder.

Basically I have a file geodatabase of points. I am trying to make a model to pull out points according to a reference field value. I could just make the expression for the tool a variable but unfortunatly the users who are going to use it are to dense to create a simple SQL statement.

I have created a model String variable (VRefNo) to take the reference number (Its alphanumeric hense the string. The column in the geodatabase is also a string) and tried to parse it in the usual way to the expression:

"RefNo" = '%VRefNo%' 

and all the other variables are hard coded. I have made the variable a model parameter and checked the add to display check box for the output and made sure nothing is intermediate (There is only one tool in the model and thats it).

The model runs ok with no errors but I am not getting an output........

Any Ideas?

Many thanks in advance


UPDATE: I can get the select tool to work in model builder when run from the toolbox only when I make the output a model parametre.... Thats all nice but I only want to save the results temporarily to memory (in_memory) and would prefer the user not having the option to change this. Thank you ESRI!!

I would make a python script to do it but all the clients dont have python installed on their machines.....

share|improve this question
if they have ArcGIS installed, they should have Python installed. It's installed as part of the defualt configuration. – RyanDalton Sep 14 '12 at 17:21

Use the "like" operator instead of "=". Your double wildcard should then work.

share|improve this answer
Its not a double wild card. As far as I am aware according to ESRI help you use double % to enclose a variable and as it is a string it has single quotes on either end. VRefNo is a model variable and parametre that the user enters when the model runs from a tool box that I am trying to use in the expression. – Chris C Sep 13 '12 at 8:45

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.