Error handling

This forum deals with any kind of trip optimization based on xTour1, xTour2 and the Developer APIs "RouteOptimization" and "SequenceOptimization". No matter whether it is automatic planning or manual dispatching, refering to transport orders or service planning.
Attention: this does not refer to PTV Optiflow SaaS and PTV Developer RouteOptimization Optiflow.
Post Reply
mcarrf90
Posts: 1
Joined: Wed Sep 02, 2020 9:19 pm

Error handling

Post by mcarrf90 »

Hi guys,

We are currently trying to have a better handling of errors directly in our user interface but we are having some difficulties:
  • - When we send, for example, a Transport Point with an error in its intervals, we get back the errorKey 10003 and a message:"Could not plan basic tours (Reason: Could not set transport order). Engine error: Invalid interval (code: -1005) in transport order 1."
  • - If we now send two Transports points with error, say transport point with id of 1 with an error of A and a transport point with id of 2 and an error of B, we only get back the exception concerning the first transport order
With this in mind, is there a way where we can get a more verbose or detailed report of these errors? Does the code: -1005 inside the error message mean something? The documentation is not clear at all regarding this issues.

Thanks in advance!
User avatar
Bernd Welter
Site Admin
Posts: 2695
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: Error handling

Post by Bernd Welter »

Hello Martin,

you are right - looks like the other modules documentation contains a section "Error Codes" which seems to be missing in xTour. I asked the developers whether they have at least a PDF or other style document that we can provide through the forum => stay patient!

About the specific error -1005 you mentioned and it's "Invalid interval": looks like the beginning of the interval is after the end of the interval like in this example.

Code: Select all

<ns2:wrappedOpeningIntervals>
      <ns2:Interval from="64800" till="28800"/>
</ns2:wrappedOpeningIntervals>
Furthermore it is relevant that if a LogisticPoint (base class of Depot and TransportPoint) has more than one interval that these intervals have to be provided in ascending order. In the following example both intervals of the depot are valid but they are given in descending order:

Code: Select all

<ns2:wrappedOpeningIntervals>
            <ns2:Interval from="28800" till="64800"/>
            <ns2:Interval from="0" till="10000"/>
</ns2:wrappedOpeningIntervals>
I hope this helps for the moment - if not: get back to us!

Bernd
Bernd Welter
Technical Partner Manager Developer Components
PTV Logistics - Germany

Bernd at... The Forum,LinkedIn, Youtube, StackOverflow
I like the smell of PTV Developer in the morning... :twisted:
Post Reply