Select to view content in your preferred language

Geoprocessing Field Names Mismatch Help

1843
1
10-09-2012 08:37 AM
MaryEllen_Perko
Frequent Contributor
Hello.  This may be a geoprocessing/arcgis server issue, but since I'm seeing the behavior through geoprocessing rest points and using the Silverlight Viewer, I thought I'd start here.

The problem is this:

I have a geoprocessing service (.tbx only) that I've deployed in ArcGIS Server 9.3.1.  It simply does a SELECT from a feature class in SDE based on user input.  A SELECT output is a feature class.  This works fine in ArcMap so I know the geoprocessing service itself is okay.

Viewing the service through a browser at http://<server>/ArcGIS/rest/services/.../GPServer/SDVReturnRoadCharByCountyRoute, the Default Value Field names for the output are the expected SDE field names.

But, after executing, when the geoprocessing service output is placed "in_memory" the field names are truncated to 10 characters I assume because the shapefile format is used.

When the geoprocessing service output is placed in scratch.gdb, the field names returned are the aliases, instead of the SDE field names.

At least that is how it seems the Silverlight Viewer sees them. 

This is a problem because the only attribute values that show up in the silverlight viewer app popups and "Show Table" are those where the Default Value Field names match the returned field names.

I'm sure this is confusing, but does this mean enough to someone to point me in a direction?  Any help is very much appreciated.

Thanks,
Mary Ellen
0 Kudos
1 Reply
ValentinFedulov
Occasional Contributor

...
When the geoprocessing service output is placed in scratch.gdb, the field names returned are the aliases, instead of the SDE field names.

At least that is how it seems the Silverlight Viewer sees them. 
...


I have a similar question
http://forums.arcgis.com/threads/66898-FeatureLayer.Attributes-by-field-alias
that not  answered yet.
I think there is a bug in Silverlight API.
0 Kudos