Engine error: Access violation (code: -2)

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
Prakash
Posts: 26
Joined: Mon Sep 14, 2015 5:21 am

Engine error: Access violation (code: -2)

Post by Prakash »

Hi,

I am using plan basic tour and getting below error:
errorKey="10003"
message="Could not analyze unscheduled stops (Reason: invalid Stop id). Engine error: Access violation (code: -2)

This error is generating while Unscheduled Order Analysis. I checked request and response but got no reason.
Request has 42 orders, 4 Vehicle. Each order has Opening Intervals in combination of these four vehicle days.

This issue hasn't produced when I increased the combination of Opening interval than Operating Interval.

Please let me know where/how could I find the reason of this issue.

Thanks in advance,
Prakash
Prakash Kumar
Developer
Webdirekt India Pvt. Ltd.
User avatar
Bernd Welter
Site Admin
Posts: 2695
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: Engine error: Access violation (code: -2)

Post by Bernd Welter »

sounds like the order to be analyzed doesn't exist.
Please send the request / response to me 1:1.
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:
Prakash
Posts: 26
Joined: Mon Sep 14, 2015 5:21 am

Re: Engine error: Access violation (code: -2)

Post by Prakash »

request / response sent via mail.

Thanks regards,
Prakash
Prakash Kumar
Developer
Webdirekt India Pvt. Ltd.
User avatar
PaulBuechs
Posts: 21
Joined: Tue Mar 28, 2017 1:09 pm

Re: Engine error: Access violation (code: -2)

Post by PaulBuechs »

Hi,

Bernd found that we send 0 Break Duration where we have at the same time some restrictions like this:

<ns4:weeklyRestRule weeklyRestPeriod="162000" maximumBiweeklyDrivingPeriod="324000" maximumWeeklyDrivingPeriod="201600" maximumPeriodBetweenWeeklyRests="518400"/>


With increase of breakPeriod we are able to get proper response.


Kind regards,
Paul
User avatar
Bernd Welter
Site Admin
Posts: 2695
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: Engine error: Access violation (code: -2)

Post by Bernd Welter »

Hi there,
let me be a bit more precise:
The bug is triggered by break intervals with break period of 0 seconds. It will be fixed in an upcoming version.
The following can be done to avoid this bug in all versions of xTour:
Don't specify break intervals if the break period associated with these break intervals is 0 seconds.
Thanks to Andreas for the detailed analysis - I love teamwork!

Best regards,
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