Hello all,
I have a fairly large project going on (at least by my standards). I'll try to summarize it very briefly so my issue has some context.
I have a script that does the following:
- refreshes an excel file to get current data
- creates a pandas dataframe from that excel file
- manipulates the pandas dataframe
- turns it back into an excel file
- converts that final excel file into a table using arcpy.conversion.ExcelToTable
- The table already exists in the geodatabase and is intended to be overwritten with new data.
- afterwards it creates some relationship classes, but the problem seems to lie in the step above
This script works fine and I have a working copy that does all of the above. However, when I refactored in order to add timeout functionality (using the python multiprocessing library), ExcelToTable stopped working for me. I essentially gave the entire original script to a child process that would terminate if it failed to complete in a certain period of time.
I have isolated the issue to the ExcelToTable step.
Here are some screenshots:
After line 452 runs, the excel file is set up correctly with all the data from the dataframe.

Below is a screenshot of what is inside my geodatabase all the way until I run line 453 (the ExcelToTable line). Keep your eye on "WRCPTTable".

After running that line, here is my geodatabase:

Anything related to the WRCPTTable is deleted. Does anyone have any idea why this could be happening? It does not throw an error until I try to create a relationship class and then I get
"arcgisscripting.ExecuteError: Failed to execute. Parameters are not valid.
ERROR 000732: Destination Table: Dataset C:\Users\tommy\Documents\parcels_2024.gdb\\\WRCPTTable does not exist or is not supported
Failed to execute (CreateRelationshipClass)."
which makes sense as the WRCPTTable no longer exists by that point.
I am at a loss. I have set arcpy.env.overwriteOutput = True, the path to my gdb is correct and still works using the initial version of my script.
Any ideas would be much appreciated. If any other details are needed, please let me know.
Thank you