I've created a model with the modelbuilder to retrieve a route event (line). The input is a Record Set with route-ID, from-measure and to-measure. If I excute the model in ArcMap it works fine, if I publish the model to ArcGIS Server the model also works fine if I use it in ArcMap. If I use the model with the REST API I get the message "Error executing task, Error code 500". If I change the (same) model to retrieve point route events everything is fine and dandy. If I look at the windows event logs I see that the ArcSOC process has crashed. Am I doing something that's not possible or is this a bug?