Arcpy Erroring on orthorectification

Discussion created by vaishaal on Mar 2, 2014

I'm trying to orthorectify an image I have, and it works fine inside Arcmap (when I click image processing, and feed it a DEM)

but when I try it with the exact same image in python, I get the following errror:

Executing: CreateOrthoCorrectedRasterDataset "C:/Users/vaishaal/My Documents/ArcGIS/5V121005P0012161044B222005301092M_00
0977701/5V121005P0012161044B222005301092M_000977701.ntf" C:\ortho_5V121005P0012161044B222005301092M_000977701.tif DEM 0
"C:/Users/vaishaal/My Documents/ArcGIS/INDIA_DEM.gdb/INDIA_DEM" 1 0 GEOID
Start Time: Sun Mar 02 19:15:59 2014
ERROR 000425: Failed to create ortho-corrected raster dataset
Failed to execute (CreateOrthoCorrectedRasterDataset).
Failed at Sun Mar 02 19:16:00 2014 (Elapsed Time: 0.27 seconds)

Does anybody know what I'm doing wrong? I also tried loading in all the environment variables, but that did not help either.