Ready-To-Use Services (logistics) fail with an error message, "ERROR 030158: Invalid travel mode value: <travel mode name>" returned if a custom travel mode name from ArcGIS Online is provided.
上次发布: October 30, 2019ArcGIS Pro
漏洞 ID 编号
BUG-000125736
已提交
October 3, 2019
上次修改时间
July 24, 2025
适用范围
ArcGIS Pro
找到的版本
2.4.1
操作系统
Windows OS
修正版本
2.5
状态
Fixed
此漏洞已得到修复。 有关详细信息,请参阅“版本修复”和“其他信息”(如果适用)。
解决办法
When working with the ready to use service in ArcMap or ArcGIS Pro, provide the ‘Travel Mode Settings’ present in the ‘Supported Travel Modes’ table in the ‘Travel mode name’ instead of just the name:{"attributeParameterValues": [{"attributeName": "Avoid Unpaved Roads", "parameterName": "Restriction Usage", "value": "AVOID_HIGH"}, {"attributeName": "Avoid Private Roads", "parameterName": "Restriction Usage", "value": "AVOID_MEDIUM"}, {"attributeName": "Driving an Automobile", "parameterName": "Restriction Usage", "value": "PROHIBITED"}, {"attributeName": "Through Traffic Prohibited", "parameterName": "Restriction Usage", "value": "AVOID_HIGH"}, {"attributeName": "Roads Under Construction Prohibited", "parameterName": "Restriction Usage", "value": "PROHIBITED"}, {"attributeName": "Avoid Gates", "parameterName": "Restriction Usage", "value": "AVOID_MEDIUM"}, {"attributeName": "Avoid Express Lanes", "parameterName": "Restriction Usage", "value": "PROHIBITED"}, {"attributeName": "Avoid Carpool Roads", "parameterName": "Restriction Usage", "value": "PROHIBITED"}, {"attributeName": "TravelTime", "parameterName": "Vehicle Maximum Speed (km/h)", "value": "0.0"}], "restrictionAttributeNames": ["Avoid Unpaved Roads", "Avoid Private Roads", "Driving an Automobile", "Through Traffic Prohibited", "Roads Under Construction Prohibited", "Avoid Gates", "Avoid Express Lanes", "Avoid Carpool Roads"], "useHierarchy": true, "simplificationTolerance": 10, "simplificationToleranceUnits": "esriMeters", "uturnAtJunctions": "esriNFSBAtDeadEndsAndIntersections", "distanceAttributeName": "Miles", "timeAttributeName": "TravelTime", "impedanceAttributeName": "TravelTime", "type": "AUTOMOBILE", "description": "Test", "name": "Rohit_Test", "id": "QWKhzfWcdATOvpCn"}When working with ArcGIS Pro (Network Analysis Extension is required):
Navigate to the Analysis menu. Under the Tools category, select the Network Analysis drop down.
Select Closest Facility.
Navigate to the Closest Facility ribbon menu. Select the travel mode in the mode drop-down.