stable reference of a search graph...
Posted: Fri Nov 13, 2020 2:20 pm
Hi there,
these days a cloud user faced a situation where he encountered the following behaviour on PTV xServer Internet. Completely safe from PTV's perspective - but I'd like to ensure that you can find information what triggered this in case you run into the same conditions / exceptions:
As you may know we offer several so-called (standard) search graphs in the cloud. Their purpose is to speed up distance matrix calculation which is mainly required for
- sequence optimization
- tour optimization
Each search graph is linked to a specific routing profile and as the creation of a Distance Matrix can easily be triggered by using the ID of a graph this is a comfortable approach.
But the ID of a graph may change (e.g. because of a map update). So if you want to stabilize your application you need to ask for the latest ID of the graph that you want to use. For this you need to use the stable element LABEL.
Use xData.listHighPerformanceRoutingNetworks( ..LABEL.. ) to get the proper ID.
Then use this ID in the succeeding xDima.createDistanceMatrix call.
Best regards,
Bernd
these days a cloud user faced a situation where he encountered the following behaviour on PTV xServer Internet. Completely safe from PTV's perspective - but I'd like to ensure that you can find information what triggered this in case you run into the same conditions / exceptions:
No suitable high performance routing network found. The available networks can be retrieved by the listHighPerformanceRoutingNetworks operation of the xData module. See also the technical concept on high performance routing.
Code: Select all
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope"><soap:Body>
<soap:Fault><soap:Code><soap:Value>soap:Receiver</soap:Value></soap:Code>
<soap:Reason><soap:Text xml:lang="en">Due to a specific parameter of the request certain data is required to calculate the response but the data is not available.</soap:Text>
</soap:Reason><soap:Detail>
<ns3:XServerWebFault xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ns3="http://exceptions.xserver.ptvgroup.com"
xmlns:ns2="http://xdima.xserver.ptvgroup.com"
hint="No suitable high performance routing network found. The available networks can be retrieved by the listHighPerformanceRoutingNetworks operation of the xData module. See also the technical concept on high performance routing."
parameter="/CreateDistanceMatrixRequest/distanceMatrixOptions/@routingType"
value="HIGH_PERFORMANCE_ROUTING" xsi:type="ns3:DataNotAvailableFault"/>
</soap:Detail></soap:Fault></soap:Body></soap:Envelope>
- sequence optimization
- tour optimization
Each search graph is linked to a specific routing profile and as the creation of a Distance Matrix can easily be triggered by using the ID of a graph this is a comfortable approach.
But the ID of a graph may change (e.g. because of a map update). So if you want to stabilize your application you need to ask for the latest ID of the graph that you want to use. For this you need to use the stable element LABEL.
Use xData.listHighPerformanceRoutingNetworks( ..LABEL.. ) to get the proper ID.
Then use this ID in the succeeding xDima.createDistanceMatrix call.
Best regards,
Bernd