Solved by tracking the problem using Fiddler:
the stops where given to the html request as follows:
{"features":[{"attributes":{"NAME":"NoName"},"geometry":{"x":5738096.9537,"y":2909726.3224,"spatialReference":{"wkid":102113}}},{"geometry":{"x":5738296.55435,"y":2911561.78485}}],"doNotLocateOnRestrictedElements":false,"type":"features"}
It seams it was past from the graphics the "{"attributes":{"NAME":"Umm Ghuwailina Health Centre"}", after removing this attribute from the graphic, the process completed successfully:
"features":[{"geometry":{"x":5738096.9537,"y":2909726.3224,"spatialReference":{"wkid":102113}}},{"geometry":{"x":5738296.55435,"y":2911561.78485}}],"doNotLocateOnRestrictedElements":false,"type":"features"}