Correct way to set feature set output

Discussion created by codehtmai on Apr 6, 2011
Latest reply on Jul 11, 2012 by KevinBellSLC
I've been all over the documentation and have been going through this forum but can't seem to get it right, so hopefully one of you can help me out. I've got a Python Geoprocessing script, and I need the feature results from it to be accessible via the ArcGIS Server REST interface for consumption in the web APIs. My ArcGIS Server does this correctly with standard GP tools and models such as the GP Service Buffer Points example.

I am trying to output the feature class as seen in the example in Setting Script Tool Parameters.
Specifically the code would be:

//do some work on fc

The script has the parameter set to a Derived Output Feature Set in the toolbox, which is then served to Server. When I execute, I get a "Error Executing Task. Error processing message. Code 500". I'm not sure if I'm just doing it wrong or if there's some other issue going on here. Any help would be greatly appreciated.