AnsweredAssumed Answered

definitionQuery syntax problem

Question asked by colin.berg85 on Sep 28, 2018
Latest reply on Sep 28, 2018 by bixb0012

Hi everyone,

 

can someone please tell me what is wrong with my syntax here?  This should be very simple but any time I run this script tool it does not like the syntax of my definitionQuery..  I can't understand what the problem is

 

I have tried all of these and it wont work:

lyr.definitionQuery = '"BANDID" = \'GRNN00A\''

lyr.definitionQuery = "BANDID" = 'GRNN00A'

lyr.definitionQuery = """"BANDID" = 'GRNN00A'"""

lyr.definitionQuery = '"BANDID" = 'GRNN00A''

lyr.definitionQuery = ("BANDID" = 'GRNN00A')

lyr.definitionQuery = ("BANDID" = \'GRNN00A\')

 

What am I doing wrong? 

Outcomes