Page 1 of 1

startPlanSequence - SoapException - DimaId

Posted: Mon Apr 24, 2017 10:00 am
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?!

Re: startPlanSequence - SoapException - DimaId

Posted: Mon Apr 24, 2017 10:38 am
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