The result map service used to draw the results of a task requires output to be written to disk. It cannot be written to memory.
You must either disable the result map service for the service you are creating or modify the output to be written to disk. If your workflow requires a result map service, follow these steps to modify your workflow:
- Exit the Web Tool pane.
- Open the model or script tool from which you are building your task.
- Modify the final output parameter to write to disk (instead of in_memory) and run your tool.
- Share the history item as a web tool again and enable the option to return a map image layer.