Error message when using asynchrony method…

deals with computation of distance matrices
Post Reply
logintegra
Posts: 7
Joined: Mon Feb 03, 2020 3:38 pm

Error message when using asynchrony method…

Post by logintegra »

Hi,

We get the following error message ("AccessDeniedFault", "is not allowed") when we try to calculate a distance matrix with the asynchronous protocol at

https://xserver2-europe-test.cloud.ptvgroup.com

Code: Select all

{
  "faultInfo": {
    "$type": "AccessDeniedFault"
  },
  "message": "Feature XDima.startCreateDistanceMatrix is not allowed. Current configuration: !XCluster.startPlanClusters,!XCluster.startCoverLocations,!XCluster.startPlanVisits,!XCluster.startOptimizeVisitSequence,!XCrash.startLoopInfinite,!XData.startCreateHighPerformanceRoutingNetwork,!XData.startCreateFeatureLayer,!XDima.startCreateDistanceMatrix,!XDima.startUpdateDistanceMatrix,!XLoad.startPackBins,!XLocate.startSearchLocationsInBulk,!XRoute.startCalculateRoute,!XRoute.startCalculateReachableAreas,!XTour.startPlanTours,!XTour.startChangeTours,!XTour.startFindChangeToursProposals,!XTour.startEvaluateToursInExecution,!xdata.deleteFeatureLayer,!xdata.startCreateFeatureLayer,!xdata.fetchFeatureLayerResponse"
}
Any clue what causes this behavior and how we can get rid of it?
User avatar
Bernd Welter
Site Admin
Posts: 2695
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: Error message when using asynchrony method…

Post by Bernd Welter »

Hello Pawel,

the message occurs because the asynchronous protocol requires you to use the full qualified path to the proper datacenter: Please also check the following page:
https://www.ptvgroup.com/en/solutions/p ... formation/
On the regular details page of a specific cluster you will find more info about the routed URL Scheme.

Best regards,
Bernd

PS: For other users: asynchronous protocol means to proceed as follows:
- use a startWHATEVER method to gather a JobID
- use watchJob( JobID ) to poll for the status of a transaction in progress
- use fetchJob( JobID ) to consume the same logical answer as "WHATEVER" method would provide
The asynchronous protocol is required for cloud transactions exceeding some cloud timeouts, that means a distance matrix calculation with 15min of internal computation time won't work without the asynch version because AZURE cut's the HTTP connection after 2-3 minutes.
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:
logintegra
Posts: 7
Joined: Mon Feb 03, 2020 3:38 pm

Re: Error message when using asynchrony method…

Post by logintegra »

Hello,

thank you for the answer - changing URL to https://xserver2-europe-eu-test.cloud.p ... anceMatrix solved the problem :D now we can use asynchronous protocol.

Best regards,
Paweł
Post Reply