Page 1 of 1

Problem with Drive&Arrive - SCEMID_INVALID

Posted: Mon Dec 09, 2019 1:20 pm
by mazo96
Hi,
I've got following problem: I'm playing around with REST API (json) to manage Drive&Arrive system. I created Tour with positive result which contains SCEMID of whole Tour and SCEMID of one Stop that it contains. Every method related to Stop work properly e. g. - Read stop, Get stop etas - Stop's SCEMID is recognized and there's no problem. But when I send request like Read tour data there's error SCEMID_INVALID and when I send request which lists all Tours from my token, it results with message "SUCCESS" and nothing more, but there should be already about 8 Tours that I've made.

There are codes and results:

POST Create a tour https://driveandarrive.cloud.ptvgroup.c ... e=ptvemapp
JSON Body

Code: Select all

{
    "Tour": {
        "stops": [
            {
                "locationId": "7UQJCWSHICJF6Z4R34QIG2PNB",
                "coordinate": {
                    "locationX": 52.227747,
                    "locationY": 21.007712
                },
                "earliestArrivalTime": "2019-12-09T10:00:00.0000000+01:00",
                "latestDepartureTime": "2019-12-09T11:00:00.0000000+01:00",
                "pta": "2019-12-09T15:00:00.0000000+01:00",
                "serviceTimeAtStop": 3,
                "useServicePeriodForRecreation": false,
                "weightWhenLeavingStop": 100,
                "stopPositionInTour": 0,
                "useLocationAddress": false
            }
        ],
        "vehicle": {
            "vehicleProfileID": "mg-truck-40t"
        },
        "options": {
            "plannedTourStartTime": "2019-12-09T11:30:00+01:00",
            "additionalInfo": "",
            "doRefRouteCalc": false,
            "disableDepartedEventOnGeofence": false
        }
    }
}
Result

Code: Select all

{
    "tour": {
        "stops": [
            {
                "coordinate": {
                    "locationX": 52.227747,
                    "locationY": 21.007712
                },
                "earliestArrivalTime": "2019-12-09T10:00:00.0000000+01:00",
                "latestDepartureTime": "2019-12-09T11:00:00.0000000+01:00",
                "pta": "2019-12-09T15:00:00.0000000+01:00",
                "serviceTimeAtStop": 3,
                "useServicePeriodForRecreation": false,
                "weightWhenLeavingStop": 100,
                "stopPositionInTour": 0,
                "locationId": "7UQJCWSHICJF6Z4R34QIG2PNB",
                "useLocationAddress": false,
                "scemid": "9YWR7TV8L3",
                "source": "ptvemapp"
            }
        ],
        "vehicle": {
            "vehicleProfileID": "mg-truck-40t"
        },
        "options": {
            "plannedTourStartTime": "2019-12-09T11:30:00.0000000+01:00",
            "additionalInfo": "",
            "doRefRouteCalc": false,
            "disableDepartedEventOnGeofence": false
        },
        "scemid": "YD1ATYO5AN",
        "source": "ptvemapp"
    },
    "responseStatus": {
        "errorCode": "SUCCESS",
        "message": "4714088a-8374-48a4-b5f6-ab1e00c616df"
    }
}
GET Read tour info from SCEMID https://driveandarrive.cloud.ptvgroup.c ... 5AN&Token=**** ...
Result

Code: Select all

{
    "responseStatus": {
        "errorCode": "SCEMID_INVALID",
        "message": "SCEM-ID not valid. SCEM-ID should be a 10-digit, case-sensitive, alphanumeric identifier of an existing tour.|d56e8f1f-d264-4163-a601-ab1e00d79ade",
        "errors": [
            {
                "errorCode": "SCEMID_INVALID",
                "message": "SCEM-ID not valid. SCEM-ID should be a 10-digit, case-sensitive, alphanumeric identifier of an existing tour."
            }
        ]
    }
}
Working result for stop SCEMID and request GETRead stop:

Code: Select all

{
    "stops": [
        {
            "coordinate": {
                "locationX": 52.227747,
                "locationY": 21.007712
            },
            "earliestArrivalTime": "2019-12-09T10:00:00.0000000+01:00",
            "latestDepartureTime": "2019-12-09T11:00:00.0000000+01:00",
            "pta": "2019-12-09T15:00:00.0000000+01:00",
            "serviceTimeAtStop": 3,
            "useServicePeriodForRecreation": false,
            "weightWhenLeavingStop": 100,
            "stopPositionInTour": 0,
            "locationId": "7UQJCWSHICJF6Z4R34QIG2PNB",
            "useLocationAddress": false,
            "scemid": "9YWR7TV8L3",
            "source": "ptvemapp"
        }
    ],
    "responseStatus": {
        "errorCode": "SUCCESS",
        "message": "d6461487-101f-4c5f-897a-ab1e00def5fa"
    }
}
Can anybody explain the issue? thanks

Re: Problem with Drive&Arrive - SCEMID_INVALID

Posted: Tue Dec 10, 2019 12:14 pm
by mazo96
At the moment I'm still not able to get response related to my tour. I'm using only stops to develop my task. Everything seems to be ok except of ETA which isn't calculating despite of frequently posted events with actual localization of vehicle.
I'm afraid it's because of that broken api tour part.

Here's an interesting fact - I have created a Tour and I've got prove for it, a whole succesful response. And then I head to https://dave-apps.cloud.ptvgroup.com/da/index.html and the site says there's no tour for my token.

Edit: I have began tests using pregenerated C# client, as far as I am right now everything works ok