I have been struggling for several days trying to convert a legacy Python 2/ArcMap based script to run in the Python 3/ArcPro environment. It is a multi-step, data management script that involves clearing out the old data and putting in the new data. The script kept failing before a call to TruncateTable with "ERROR 000187: Only supports Geodatabase tables and feature classes." and/or at Compact with "ERROR 000535: Workspace does not exist." This didn't make sense since the data being feed to TruncateTable was a feature class and the Workspace being compacted did exist. And this script works just fine in the ArcMap runtime.