I am trying to upload a graphics layer to a gdb on our local server through a geoproc service..1.In flex, i make a new feature set from the graphics layer. I then build my parameters and execute the geoprocessing task.var myGL:GraphicsLayer = resultsList[resultLayerDataGrid.selectedIndex].graphicLayer;
var fs:FeatureSet = new FeatureSet(ArrayCollection(myGL.graphicProvider).toArray())
var params:Object =
{
"aFeatureSet": fs
};
gp.execute(params);
2. My service runs from the following script:import arcpy
from arcpy import env
userName = "mgiles"
env.workspace = "C:\\Users\\Administrator.GIS\\AppData\\Roaming\\ESRI\\Desktop10.0\\ArcCatalog\\" + userName + '.sde'
env.overwriteOutput = True
aFeatureSet = arcpy.GetParameter(0)
anOutput="output"
arcpy.CopyFeatures_management(aFeatureSet, anOutput)
I have attached an image of the service from the rest services directory. The script works from desktop. When i run it from Flex it returns the error: [RPC Fault faultString="Error Executing Task. Error processing message" faultCode="500" faultDetail=""].Could someone point me in the right direction as to what im doing wrong? Thanks.[ATTACH=CONFIG]16340[/ATTACH]