piter197
Posts: 832
Joined: Sun Jan 09, 2011 3:32 am

IIS Error each time delete Job Dispatch

Wed Nov 11, 2015 9:05 am

Hi Support,

My GGS Patch.v4 ver 4.0.0.3501, Dispatch ver 4.0.0.3484 and all plugins green.

Each time I delete unassigned Job, I always get error message "Cannot use this method on an unsaved route", checking IIS error log file:

2015-11-11 12:33:33.7112 | Error | 10 | ExtendedRpcDispatcher.OnError | Error executing JSON method | System.Exception: Cannot use this method on an unsaved route
at GpsGate.Dispatch.DAO.RouteReaderDAO.IsRouteNeeded(Int32 routeId)
at GpsGate.Dispatch.RouteManager.RemoveRouteIfUnused(Int32 applicationId, Int32 routeId)
at GpsGate.Dispatch.Web.Service.DispatchFacade.RemoveJob(Int32 iApplicationID, Int32 iJobID)
at GpsGate.Dispatch.Web.Service.json.Dispatch.RemoveJob(Int32 appId, Int32 iJobID)
2015-11-11 12:33:40.7893 | Error | 7 | ExtendedRpcDispatcher.OnError | Error executing JSON method | System.Exception: Cannot use this method on an unsaved route
at GpsGate.Dispatch.DAO.RouteReaderDAO.IsRouteNeeded(Int32 routeId)
at GpsGate.Dispatch.RouteManager.RemoveRouteIfUnused(Int32 applicationId, Int32 routeId)
at GpsGate.Dispatch.Web.Service.DispatchFacade.RemoveJob(Int32 iApplicationID, Int32 iJobID)
at GpsGate.Dispatch.Web.Service.json.Dispatch.RemoveJob(Int32 appId, Int32 iJobID)
2015-11-11 12:33:54.2112 | Error | 7 | ExtendedRpcDispatcher.OnError | Error executing JSON method | System.Exception: Cannot use this method on an unsaved route
at GpsGate.Dispatch.DAO.RouteReaderDAO.IsRouteNeeded(Int32 routeId)
at GpsGate.Dispatch.RouteManager.RemoveRouteIfUnused(Int32 applicationId, Int32 routeId)
at GpsGate.Dispatch.Web.Service.DispatchFacade.RemoveJob(Int32 iApplicationID, Int32 iJobID)
at GpsGate.Dispatch.Web.Service.json.Dispatch.RemoveJob(Int32 appId, Int32 iJobID)
2015-11-11 12:34:01.5393 | Error | 8 | ExtendedRpcDispatcher.OnError | Error executing JSON method | System.Exception: Cannot use this method on an unsaved route
at GpsGate.Dispatch.DAO.RouteReaderDAO.IsRouteNeeded(Int32 routeId)
at GpsGate.Dispatch.RouteManager.RemoveRouteIfUnused(Int32 applicationId, Int32 routeId)
at GpsGate.Dispatch.Web.Service.DispatchFacade.RemoveJob(Int32 iApplicationID, Int32 iJobID)
at GpsGate.Dispatch.Web.Service.json.Dispatch.RemoveJob(Int32 appId, Int32 iJobID)
2015-11-11 12:34:13.8518 | Error | 7 | ExtendedRpcDispatcher.OnError | Error executing JSON method | System.Exception: Cannot use this method on an unsaved route
at GpsGate.Dispatch.DAO.RouteReaderDAO.IsRouteNeeded(Int32 routeId)
at GpsGate.Dispatch.RouteManager.RemoveRouteIfUnused(Int32 applicationId, Int32 routeId)
at GpsGate.Dispatch.Web.Service.DispatchFacade.RemoveJob(Int32 iApplicationID, Int32 iJobID)
at GpsGate.Dispatch.Web.Service.json.Dispatch.RemoveJob(Int32 appId, Int32 iJobID)
2015-11-11 12:49:15.4612 | Error | 10 | PageBase.Page_Error | Unhandled error In ASP.rep


Please suggest. Thank you.

Best Regards,
piter197

User avatar
AndrewC
GpsGate
Posts: 323
Joined: Tue Apr 01, 2014 12:30 pm
Location: Sweden
Contact: Website

RE: IIS Error each time delete Job Dispatch

Wed Nov 11, 2015 12:58 pm

Hi piter197,

Could you please give some basic steps to reproduce this issue on your application?

Thank you.

Regards,
Andrew

GpsGate Support

piter197
Posts: 832
Joined: Sun Jan 09, 2011 3:32 am

RE: IIS Error each time delete Job Dispatch

Wed Nov 11, 2015 2:15 pm

Hi Andrew,

I import some jobs like this:

externalid;description;latitude;longitude;datetime;workerusername
job0015;Visit X;-7.810400;110.398660;2015-11-13T08:00:00;sales09.tm
job0016;Visit Y;-7.781760;110.401170;;sales01.tm
job0017;Visit Z;-7.857020;110.162660;2015-11-13T08:30:00;

then open one of them, then delete it.


Best Regards,
piter197

User avatar
AndrewC
GpsGate
Posts: 323
Joined: Tue Apr 01, 2014 12:30 pm
Location: Sweden
Contact: Website

RE: IIS Error each time delete Job Dispatch

Wed Nov 11, 2015 5:15 pm

Hi piter197,

Thanks very much for the report and the steps. This should be fixed in the next Dispatch plugin update from the beta repository which will be released soon.

Regards,
Andrew

GpsGate Support

Return to “GpsGate Server - How to setup and use”