Module 3 - Debug & Error Handling
Hello, this is my blogpost for module #3.
For the first script I fixed the errors by correcting the capitalization of the variable FC. The next step was to correct the typo that was made for the field variable by changing it to fields. This allowed the script to run smoothly.
When it came to the second script I continued to run into an error message that I believe had to do with the way the data was being referenced from the filepath. However, when running the script on ArcGIS Notebooks I was able to get the code to print the correct result, even though I was still getting an error message. The errors I did happen to correct in the code include correcting the capitalization of the “Filepath” variable, correcting the spatial reference spelling error, and also corrected the map typo to maps which did improve the code although not perfect.
Part #3 of the lab proved confusing so not much can be said with regards to Part #3 on my end. In the future I will set aside more time or reach out for help if needed, however, for this instance this was not the case and I have run out of time.
Also, these screenshots are from my phone because whenever I try to screenshot on the citrix server it never seems to save my picture.
Script #1
Script #2 (you can see the code did get a working result but still experiencing an error message)


Comments
Post a Comment