Python code question

1779
12
07-14-2017 10:17 AM
LeifJohnson
New Contributor II

Hello, i downloaded a python code that is intended to send email notification to me when a feature has been added to a layer. I'm a novice when it comes to codes and coding and keep getting stuck. To clarify a little further i saw a document (link here) that i am attempting to implement. I downloaded the code and tried for awhile trying to get it to work but unfortunately i haven't had any luck. The error i keep receiving is "Cannot perform query. Invalid query parameters.
Unable to perform query. Please check your parameters.
No where clause specified.
(Error Code: 400)" ....I think it has something with the way i am querying the information but not sure. I marked out all of the username and passwords but if anyone had any suggestions on how i might get the enclosed file to start working it would be greatly appreciated. 

To add on i'm using python 3.5.3

0 Kudos
12 Replies
JonathanQuinn
Esri Notable Contributor
LeifJohnson
New Contributor II

Thanks guys....It's working now...I appreciate your help on this. 

0 Kudos
AllisonMuise1
Occasional Contributor III

Thanks for pointing this out! Syntax is correct on the Solutions site, but incorrect in the comments in the script. I'll get this updated to avoid further confusion

0 Kudos