ROUTE_OPTIMIZATION_RESTRICTION_EXCEEDED : ROUTE_OPTIMIZATION_ROUTES_FORBIDDEN

Questions refering to the Optiflow based API within PTV Developer (launched on 20.12.2023)
Post Reply
User avatar
Bernd Welter
Site Admin
Posts: 2887
Joined: Mon Apr 14, 2014 10:28 am
Contact:

ROUTE_OPTIMIZATION_RESTRICTION_EXCEEDED : ROUTE_OPTIMIZATION_ROUTES_FORBIDDEN

Post by Bernd Welter »

If you face this error message it is caused because your underlying ApiKey / Plan does not cover the provisioning of input plans in an Optiflow call.
Please get back to us so we can check the licensing

Here's an example of a response that is triuggered by the violation of multiple limits.
You can see the allowed value and the one that violates the threshold:

Code: Select all

{
  "traceId": "...",
  "description": "A product-specific restriction is exceeded.",
  "errorCode": "ROUTE_OPTIMIZATION_RESTRICTION_EXCEEDED",
  "causes": [
    { "description": "The request contains too many vehicles.",
      "errorCode": "ROUTE_OPTIMIZATION_TOO_MANY_VEHICLES",
      "parameter": "$.vehicles",      "details": {        "vehicles": 210,        "limit": 1      }
    },
    { "description": "The request contains too many locations.",
      "errorCode": "ROUTE_OPTIMIZATION_TOO_MANY_LOCATIONS",
      "parameter": "$.locations",      "details": {        "locations": 33,        "limit": 25      }
    },
    { "description": "The request contains too many orders.",
      "errorCode": "ROUTE_OPTIMIZATION_TOO_MANY_ORDERS",
      "parameter": "$.orders",      "details": {        "orders": 30,        "limit": 25      }
    },
    { "description": "The duration of the request is too long.",
      "errorCode": "ROUTE_OPTIMIZATION_TOO_LONG_DURATION",
      "parameter": "$.settings.duration",      "details": {        "duration": 600,        "limit": 120      }
    }
  ],
  "details": {}
}
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