villalba

Phyton script from Modelbuilder (9.3.1 SP2). Command error

Discussion created by villalba on May 22, 2013
Latest reply on May 22, 2013 by villalba
Dear colleagues,
I'm having a problem with a py script generated from a Model (export to py). The model works fine, and input and output projection data is included, but the script gives an error while projecting data, and it looks like is not taking the input data projection info when exporting to py.

I can not see where the problem lies, especially because the model works fine, but I need script to create a daily execution task.

Below is the history record of the operation, highlighted in bold the command and the error message.

Any help is appreciated.

<CommandLine>Project_management E:\A.gdb\SDE_GIS_APROV_HIDRO_CopyFeatures E:\FileGeodatabase\A.gdb\SDE_GIS_APROV_HIDRO_CopyFeatures_pr PROJCS['ETRS_1989_UTM_Zone_29N',GEOGCS['GCS_ETRS_1989',DATUM['D_ETRS_1989',SPHEROID['GRS_1980',6378137.0,298.257222101]],PRIMEM['Greenwich',0.0],UNIT['Degree',0.0174532925199433]],PROJECTION['Transverse_Mercator'],PARAMETER['False_Easting',500000.0],PARAMETER['False_Northing',0.0],PARAMETER['Central_Meridian',-9.0],PARAMETER['Scale_Factor',0.9996],PARAMETER['Latitude_Of_Origin',0.0],UNIT['Meter',1.0]] ED_1950_To_ETRS_1989_12_NTv2_Spain_v2 Unknown</CommandLine>
<ToolSource>C:\Program Files (x86)\ArcGIS\ArcToolbox\Toolboxes\Data Management Tools.tbx\Projections and Transformations\Feature\Project</ToolSource>
<StartTime>Wed May 22 13:52:19 2013</StartTime>
<Parameters>
<Inputs>
<Parameter Label="Input Dataset or Feature Class" Type="Dataset">E:\FileGeodatabase\CHMS_pub.gdb\SDE_GIS_APROV_HIDRO_CopyFeatures</Parameter>
<Parameter Label="Output Coordinate System" Type="Scalar">PROJCS['ETRS_1989_UTM_Zone_29N',GEOGCS['GCS_ETRS_1989',DATUM['D_ETRS_1989',SPHEROID['GRS_1980',6378137.0,298.257222101]],PRIMEM['Greenwich',0.0],UNIT['Degree',0.0174532925199433]],PROJECTION['Transverse_Mercator'],PARAMETER['False_Easting',500000.0],PARAMETER['False_Northing',0.0],PARAMETER['Central_Meridian',-9.0],PARAMETER['Scale_Factor',0.9996],PARAMETER['Latitude_Of_Origin',0.0],UNIT['Meter',1.0]]</Parameter>
<Parameter Label="Geographic Transformation" Type="Scalar">ED_1950_To_ETRS_1989_12_NTv2_Spain_v2</Parameter>
<Parameter Label="Input Coordinate System" Type="Scalar">Unknown</Parameter>
</Inputs>
<Outputs>
<Parameter Label="Output Dataset or Feature Class" Type="Dataset">E:\FileGeodatabase\CHMS_pub.gdb\SDE_GIS_APROV_HIDRO_CopyFeatures_pr</Parameter>
</Outputs>
</Parameters>
<Environments>
<Environment Label="Precision For New Coverages">SINGLE</Environment>
<Environment Label="Auto Commit">1000</Environment>
<Environment Label="Minimize memory use during analysis on terrains">false</Environment>
<Environment Label="Compression">LZ77</Environment>
<Environment Label="Coincident Points">MEAN</Environment>
<Environment Label="Random number generator">0 ACM599</Environment>
<Environment Label="Raster Statistics">STATISTICS 1 1</Environment>
<Environment Label="Level Of Comparison Between Projection Files">NONE</Environment>
<Environment Label="Output has Z Values">Same As Input</Environment>
<Environment Label="Maintain fully qualified field names">true</Environment>
<Environment Label="Tile Size">128 128</Environment>
<Environment Label="Pyramid">PYRAMIDS -1 NEAREST</Environment>
<Environment Label="Output Spatial Grid 1">0</Environment>
<Environment Label="Cell Size">MAXOF</Environment>
<Environment Label="Output has M Values">Same As Input</Environment>
<Environment Label="Output Spatial Grid 2">0</Environment>
<Environment Label="Output Spatial Grid 3">0</Environment>
<Environment Label="Precision For Derived Coverages">HIGHEST</Environment>
</Environments>
<Errors>
<Error>Failed to execute. Parameters are not valid.</Error>
<Error>ERROR 000517: The coordinate system is not defined for the input dataset.

Outcomes