I'm building an ArcMap script tool that will be run on many different input table schemas for geocoding purposes. When importing from CSV to GDB table using the arcpy.conversion.TableToTable function I have several string fields that look like numbers (ID, Zip) that are getting automatically converted to long integers and dropping their leading zeros. I need to preserve these values and leading zeros as strings for joining later. There will not be any actual numeric fields in the input tables that need to be preserved as such.
Is there a way to specify that all fields from any input table will be string type in the output table?