At Friday 25/8/2006 17:49, Ahmed, Shakir wrote:
I generated this python script from Arc GIS Model, tried to run from
python win but getting error. I am trying to update a text field from a
date filed data. Any help is highly appreciated.
# Calculating the fields to the date as a text field
gp.calculatefield_management("br_er_primary.shp", "LEGAL_CDT",
"[APP_NO]")
#the above line works fine
gp.calculatefield_management("br_er_primary.shp", "FINAL_CDT",
"FORMAT([final_acti],'mm/dd/yyyy')")
# this above line is not working getting the following error.
File "<COMObject esriGeoprocessing.GpDispatch.1>", line 2, in
calculatefield_management
com_error: (-2147467259, 'Unspecified error', None, None)
Since the first call to calculatefield_management succeeds with the
same argument types, I think this is not related to Python nor the
Pythonwin wrapper.
Check the docs for that function or contact the vendor.
Gabriel Genellina
Softlab SRL
__________________________________________________
Preguntá. Respondé. Descubrí.
Todo lo que querías saber, y lo que ni imaginabas,
está en Yahoo! Respuestas (Beta).
¡Probalo ya!
http://www.yahoo.com.ar/respuestas
_______________________________________________
Python-win32 mailing list
Python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32