I've had 3 intensive days with ArcGIS 9.3 so far and honestly, I'm getting a little annoyed by its flaws.What could be the reason that a geoprocessing script just hangs?My simple python script does the following (pseudo code)for shape_file in directory:
AddField_management(new_field)
CalculateField_management(new_field, fancy_expression)
It does the job fine for some files and then it just hangs when calculating a field. Where hanging means that I can wait for 10 minutes without progress whereas the field of a much larger shape file had been calculated in about 2 minutes. I can abort the script and when I then check the last edited shape file: everything is ok. The new field was added and it was even calculated correctly for all records. So I can adapt my script and restart it each time it hangs. But that is a bad workaround.So I thought: hey, if ArcGIS has problems with external scripts I can build a model for such an easy task. So I did that (just chained AddField and CalculateField together in Modelbuilder) and started a batch process for my last 6 missing files (right click on my model in the toolbox, right click on the input parameter and selecting multiple files gives me multiple rows in the batch grid). AddField was finished for all the six files but none of the six started CalculateField jobs was finished after 20min. The green bar kept moving but nothing happened anymore. I canceld the job and checked the shape files manually: everything was alright, the field was calculated correctly for every shape file. So is there any advice on this? Anything I can do about it?Edit: sry, I think I've posted this in the wrong sub forum.