AnsweredAssumed Answered

EOL while scanning string literal

Question asked by merebears on May 8, 2015
Latest reply on May 12, 2015 by blake.terhune

I'm in the process of creating a tool using a script.  I keep getting the error ERROR 000989: Python syntax error: Parsing error <type 'exceptions.SyntaxError'>: EOL while scanning string literal (line 83) Failed to execute (CalculateField).

 

I have been staring at my script at line 83 trying to figure out what's wrong but I just can't see the problem.  I wanted to know if someone can take a look at this section of my script and see if they spot the problem.  Line 83 is in bold and colored red.  Any help would be greatly appreciated.

 

codeblock3 = """def Reclass(ProjectLd):

      if ProjectLd == "0401H - HARN STATE PLANE LAMBERT CONFORMAL CONIC, CALIFORNIA I ZONE":

                return '0401H'

      if ProjectLd == "0402H - HARN STATE PLANE LAMBERT CONFORMAL CONIC, CALIFORNIA II ZONE":

                return '0402H'

      if ProjectLd == "0403H - HARN STATE PLANE LAMBERT CONFORMAL CONIC, CALIFORNIA III ZONE":

                return '0403H'

      if ProjectLd == "0404H - HARN STATE PLANE LAMBERT CONFORMAL CONIC, CALIFORNIA IV ZONE":

                return '0404H'

      if ProjectLd == "0405H - HARN STATE PLANE LAMBERT CONFORMAL CONIC, CALIFORNIA V ZONE":

                return '0405H'

      if ProjectLd == "0406H - HARN STATE PLANE LAMBERT CONFORMAL CONIC, CALIFORNIA VI ZONE":

                return '0406H'

      if ProjectLd == "0501H - HARN STATE PLANE LAMBERT CONFORMAL CONIC, COLORADO CENTRAL ZONE":

                return '0501H'

      if ProjectLd == "0502H - HARN STATE PLANE LAMBERT CONFORMAL CONIC, COLORADO NORTH ZONE":

                return '0502H'

      if ProjectLd == "0503H - HARN STATE PLANE LAMBERT CONFORMAL CONIC, COLORADO SOUTH ZONE":

                return '0503H'

      if ProjectLd == "0600H - HARN STATE PLANE LAMBERT CONFORMAL CONIC, CONNECTICUT ZONE":

                return '0600H'

      if ProjectLd == "0903H - HARN STATE PLANE LAMBERT CONFORMAL CONIC, FLORIDA NORTH ZONE":

                return '0903H'

      if ProjectLd == "1501H - HARN STATE PLANE LAMBERT CONFORMAL CONIC, KANSAS NORTH ZONE":

                return '1501H'

      if ProjectLd == "1502H - HARN STATE PLANE LAMBERT CONFORMAL CONIC, KANSAS SOUTH ZONE":

Outcomes