The geoprocessing service you are creating uses an unsupported output data format. The result of your service can only be returned as an image by using a result map service.
Solution
You need to enable a result map service from the Parameters page of the Service Editor.
Note:
A result map service requires the output to be written to disk (not to the in_memory workspace) and the service set to asynchronous execution.
If you don't want to return the output as a map image, you need to construct your task in another way to return a supported type. See Input modes and parameter data types for suggestions on returning nonsupported outputs.