Syntax error

709
3
01-04-2019 02:02 AM
HarshUpadhyay
New Contributor III

I am working with arcswat and while loading my soil map and selecting an attribute field, I got 2 syntax errors. 

Syntax error near symbol ,

Syntax error in parsing grid expression 

How to rectify these syntax errors? 

0 Kudos
3 Replies
DanPatterson_Retired
MVP Emeritus

your code would help since it appears your syntax is incorrect

0 Kudos
HarshUpadhyay
New Contributor III

You were right. Took me 3 hours to find a missing parentheses. Thank you.

0 Kudos
DanPatterson_Retired
MVP Emeritus

Your python IDE should have tools to check for syntax errors.  

Spyder and many others IDE's use pylint (amongst others) to provide checks on logic improvement, style changes and downright blatant mistakes in code.

You should add code checking to your workflow... 3 hours is way too long to find a missing parenthesis that should have been highlighted inline in your IDE

0 Kudos