[python-win32] Shape file field update problem

Gabriel Genellina gagsl-p32 at yahoo.com.ar
Fri Aug 25 23:53:50 CEST 2006


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



More information about the Python-win32 mailing list