Solved! Go to Solution.
This problem occurs only when the data of the MapService is FileGDB based or data is not copied to the server while publishing.
You can workaround this using either of these
1) Choose copy data to the Server while publishing the service
2) Change to Enterprise GDB
3) Change the service configuration to set "hasStaticData": "true", if your service data doesn�??t change.
http://hostname:6080/arcgis/admin/services/WorldCities.MapServer/edit