I would like to export a table from a geodatabase to a csv file with the ConvertTableToCsvFile tool. I have read through the esri help file and adapted the code for my purpose:
import arcpy, os ### Set project path project_path = r"C:\Users\..." arcpy.env.overwriteOutput = 1 ### Set current directory gdb = project_path + "data/raw/ACS/ACS_2014_5YR_BG_06_CALIFORNIA.gdb/" out = project_path + "data/ACS/" ### Convert to csv arcpy.ConvertTableToCsvFile_locref(gdb + "X14_SCHOOL_ENROLLMENT", out + "X14_SCHOOL_ENROLLMENT", "COMMA")
However, I get the error that
the 'module' object has no attribute 'ConvertTableToCsvFile_locref'.
What do I do wrong? I have looked for similar questions but apparently the problem is so trivial that noone would ask. (I am still a beginner with ArcPy and Python.)