I am working on a script to project the contents of a geodatabase from NAD 1983 UTM Zone 17N to NAD 1983 CSRS UTM Zone 17N and apply an already created custom geographic transformation (using the ntv2 grid shift file for Ontario - ON83CSv1.gsb). The transformation fails with:
"ERROR 000365: Invalid geographic transformation".
I have tried the transformation name and also the full path to the gtf file. I have even tried creating a transformation file in python, but all fail with this error. Applying the transformation in ArcMap, using the Project tool manually or in Model Builder, works fine. I see several threads on this error but none have lead me to a solution. Any ideas?
#Set var for output coordinate systems
out_coords = arcpy.SpatialReference(r"H:\ArcTesting\CSRS\NAD 1983 CSRS UTM Zone 17N.prj")
#Set var for custom geographic transformation
#customGT = r"C:\Users\pm506\AppData\Roaming\ESRI\Desktop10.5\ArcToolbox\CustomTransformations\NAD83_to_NAD83CSRS.gtf"
customGT = "NAD83_to_NAD83CSRS"
arcpy.Project_management(fc, fc_temp_name, out_coords, customGT)