I try to follow tutorial in ESRI training (https://learn.arcgis.com/en/projects/update-real-time-data-with-python/), but have problem in converting JSON to Feature. I think that my error in lines 38-42 in the script I made. but I don't know the details of where the error is.
The first parameter of both the Add Field and Calculate Field tools should be a table, but you have the first parameter as the geodatabase and the second as the table. Try something like the following:
arcpy.management.AddField(os.path.join(gdb_name, "alert_stations"), "alert_level", "SHORT", field_alias="Alert Level") arcpy.management.AddField(os.path.join(gdb_name, "alert_areas"), ... arcpy.management.CalculateField(os.path.join(gdb_name, "alert_stations"), "alert_level", "int(!alert!)") arcpy.management.CalculateField(os.path.join(gdb_name, "alert_areas"), ...
And if i continue to next step, i found this trouble. Here I attach the error and the script that was made.
I'm very happy if you can help me with this problem. Thank you
Thank you very much for your help
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.