AnsweredAssumed Answered

Problem with SelectByAttribute

Question asked by akifsaid on Jan 13, 2015
Latest reply on Jan 14, 2015 by akifsaid


I made a script that use arcpy.SelectLayerByAttribute_management.

The problem that some of the unique values of the field used in this selection have a special character (') ffor example : Gwich'in Conservation land

I know that the " is the problem because I removed the in from the field and the problem happened but when I removed the ' the script run perfectly


the selection was made automatically. I locate my field first after a function put all unique values in a table. an example of my code is in the txt file attached.


I believe that I have to change something in my expression.


Can you please help me to resolve this issue?