ArcPro crashing when exporting excel to table

418
5
08-19-2021 10:46 AM
RandyMcGregor3
Occasional Contributor II

I have a python script that works fine, but lately is crashing on the following line:

arcpy.conversion.ExcelToTable(ef,out_tab)

I can run excel to table fine from the map but it crashes in the python script. 

Completely shuts down the arcgis pro document.

Is there some known issue with ArcPro and this command in arcpy?

Thank you,

Randy

0 Kudos
5 Replies
JoeBorgione
MVP Esteemed Contributor

Does it work as a stand alone script run from a python console?

That should just about do it....
RandyMcGregor3
Occasional Contributor II

Thank you. Good question. The answer is, 'no' It does not. Instant Arcpro crash. I ran it as a geoprocessing tool and it went fine. I copied the history as a python script and pasted it in and ran from the console.

 

 

 

0 Kudos
RandyMcGregor3
Occasional Contributor II

I spoke to soon - It does not crash when run from the python window within arcpro. It seems to have once, but is working now.

 

0 Kudos
JoeBorgione
MVP Esteemed Contributor

kip-technology.gif

That should just about do it....
RandyMcGregor3
Occasional Contributor II

Ugh. It's working now. This problem comes and goes and it's gone (for now). 

 

0 Kudos