startPlanSequence - SoapException - DimaId

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
peter.detzner
Posts: 12
Joined: Fri Feb 10, 2017 6:57 am

startPlanSequence - SoapException - DimaId

Post by peter.detzner »

Hi!

I am sending a startPlanSequence-Request to the xServer where I am receiving the following error message:

Code: Select all

An exception of type 'System.Web.Services.Protocols.SoapException' occurred in System.Web.Services.dll but was not handled in user code

Additional information: Could not plan sequence (Reason: Could not calculate distance table for dima with ID 1). Engine error: Locations not linked (code: -1023).
About my setup:
- 7 TransportOrderSteps (Ids: 1-7)

- 1 Vehicle

Code: Select all

seqVehicle.depotIdEnd = 10;
seqVehicle.depotIdStart = 10;
seqVehicle.dimaId = 1;
seqVehicle.dimaIdSpecified = true;
- 1 Depot

Code: Select all

basisDepot.id = 10;

Here some futher lines of code:

Code: Select all

         
SequencingParams sParams = new SequencingParams()
{
    wrappedDistanceMatrixCalculation = new[] {new DistanceMatrixByRoad
    {
        dimaId = 1,
        deleteBeforeUsage = true,
        deleteAfterUsage = true,
        profileName = "dimaTruck",
    }},
    availableMachineTime = 15,
    availableMachineTimeSpecified = true
};
What am I missing resp doing wrong?!
User avatar
Bernd Welter
Site Admin
Posts: 2695
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: startPlanSequence - SoapException - DimaId

Post by Bernd Welter »

Hello Peter,

probably the request itself is ok but there might be a problem with the coordinates of the locations.
Locations not linked means that one or more involved coordinates are located too far away from the street network configured in the xtour.properties maps.path.

Please ensure whether the path is configured to a map that fits the cordinates.
Otherwise please capture the request and provide it to your technical contact at PTV. (The deeper analysis of the request isn't of public interest - but maybe the result is worth being shared).

Furthermore I recommend to use planBasicTours instead of planSequence because it is more powerful and flexible.

Best regards from Germany,
Bernd Welter
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