I have a script tool in Python that calls mosaic to new raster function to create a mosaicked raster dataset. The tool is working perfectly fine in ArcMap 10.2. I have published this tool as a geoprocessing service and when I am executing this service, the tool just accepts one raster as input. When I am providing more than one raster as input, the tool either fails without any error or gives a warning that 'maximum number of rasters per mosaic exceeds' and the output has just one of the input raster provided. Any help on this issue is much appreciated.