ESRI Pyhton Addin Assistant

918
5
01-31-2014 06:02 AM
ScottShenberger
New Contributor III
Good Morning

I created an Addin using the Addin Assistant using a python script and every time I run the script via the addin I created, ArcGIS crashes. I can reproduce it on another computer with the same results. I am not sure why this tool crashes ArcGIS. I can copy and paste the code into the python window and it runs just fine with no problems. My computer specs are: Win7 64bit Intel i7 32GB Ram ArcGIS 10.1 SP1

Scott Shenberger
GIS Analyst
Tucson Water
Tags (2)
0 Kudos
5 Replies
JasonScheirer
Occasional Contributor III
Can you provide a copy of your add-in?
0 Kudos
ScottShenberger
New Contributor III
See attached
0 Kudos
JasonScheirer
Occasional Contributor III
I'm not seeing any sort of crash, just a failure when calling the TableToTable Tool:

>>> 
Traceback (most recent call last):
  File "C:\...\AssemblyCache\{7E4CFC40-D898-41B3-8BBB-0B634DC2B183}\EsriAddin_addin.py", line 32, in onClick
    arcpy.TableToTable_conversion(NullServiceAddresses, Null_Services, "NullServiceAddresses.dbf", "", "ANCILLARYR \"ANCILLARYR\" true true false 2 Short 0 4 ,First,#,\\ADMIN.PotableNetwork\\ADMIN.Service,ANCILLARYROLE,-1,-1;ENABLED \"ENABLED\" true true true 2 Short 0 4 ,First,#,\\ADMIN.PotableNetwork\\ADMIN.Service,ENABLED,-1,-1;WSA \"WSA\" true true false 3 Text 0 0 ,First,#,\\ADMIN.PotableNetwork\\ADMIN.Service,WSA,-1,-1;SYNERGEN_I \"SYNERGEN_ID\" true true false 17 Text 0 0 ,First,#,\\ADMIN.PotableNetwork\\ADMIN.Service,SYNERGEN_ID,-1,-1;LIFECYCLES \"LifecycleStatus\" true true false 4 Text 0 0 ,First,#,\\ADMIN.PotableNetwork\\ADMIN.Service,LIFECYCLESTATUS,-1,-1;LASTEDITOR \"LASTEDITOR\" true true false 10 Text 0 0 ,First,#,\\ADMIN.PotableNetwork\\ADMIN.Service,LASTEDITOR,-1,-1;LASTEDITDA \"LASTEDITDA\" true true false 36 Date 0 0 ,First,#,\\ADMIN.PotableNetwork\\ADMIN.Service,LASTEDITDATE,-1,-1;LASTEDITSO \"LastEditSource\" true true false 4 Text 0 0 ,First,#,\\ADMIN.PotableNetwork\\ADMIN.Service,LASTEDITSOURCE,-1,-1;DOCUMENTNU \"DOCUMENTNU\" true true false 255 Text 0 0 ,First,#,\\ADMIN.PotableNetwork\\ADMIN.Service,DOCUMENTNUMBER,-1,-1;INSTALLYEA \"INSTALLYEAR\" true true false 2 Short 0 4 ,First,#,\\ADMIN.PotableNetwork\\ADMIN.Service,INSTALLYEAR,-1,-1;OWNERSHIP \"Ownership\" true true false 4 Text 0 0 ,First,#,\\ADMIN.PotableNetwork\\ADMIN.Service,OWNERSHIP,-1,-1;STREETDIR \"STREETDIR\" true true false 3 Text 0 0 ,First,#,\\ADMIN.PotableNetwork\\ADMIN.Service,STREETDIR,-1,-1;STREETNO \"STREETNO\" true true false 15 Text 0 0 ,First,#,\\ADMIN.PotableNetwork\\ADMIN.Service,STREETNO,-1,-1;STREETNAME \"STREETNAME\" true true false 50 Text 0 0 ,First,#,\\ADMIN.PotableNetwork\\ADMIN.Service,STREETNAME,-1,-1;SERVICESUB \"ServiceSubtype\" true true false 4 Long 0 5 ,First,#,\\ADMIN.PotableNetwork\\ADMIN.Service,SERVICESUBTYPE,-1,-1", "")
  File "c:\arcgis\arcpy\arcpy\conversion.py", line 2018, in TableToTable
    raise e
ExecuteError: Failed to execute. Parameters are not valid.
ERROR 000732: Input Rows: Dataset NullServiceAddresses does not exist or is not supported
Failed to execute (TableToTable).

>>> 


Perhaps add some print statements in your onClick implementation to see how far the tool gets and where it crashes on your local machine?
0 Kudos
ScottShenberger
New Contributor III
It seems to crash at the field calculate. I have a dmp file if that helps.
0 Kudos
JasonScheirer
Occasional Contributor III
You may want to contact Esri support.
0 Kudos