Hi!
I am calculating a input tour with the following parameters:
<Tour ... id="9900005157" tourPointFixation="NO_TOUR_POINT_OUT" ...
In the result i am getting
<ns4:Tour ... id="1310070565" ...
When the tour is fixed, I would expect to get the same id back in a successful request .
You can find my request attached.
I am using xTour 1.24.0.1.
Thanks
CB*
Why does the tourid change?
Why does the tourid change?
- Attachments
-
- request.zip
- Request
- (18.43 KiB) Downloaded 413 times
Re: Why does the tourid change?
I took a quick look, looks like your tourId is bigger then a regular integer can be and there is an internal overflow.
9900005157 mod 2147483647 = 1310070565
Are you working with SAP by any chance? I had a similar issue some time ago where the integers from our interface where mapped against int8 instead of i type in SAP.
9900005157 mod 2147483647 = 1310070565
Are you working with SAP by any chance? I had a similar issue some time ago where the integers from our interface where mapped against int8 instead of i type in SAP.
Joost Claessen
Senior Technical Consultant
PTV Benelux
Senior Technical Consultant
PTV Benelux
- Bernd Welter
- Site Admin
- Posts: 2695
- Joined: Mon Apr 14, 2014 10:28 am
- Contact:
Re: Why does the tourid change?
Looks like this topic hits both TourIDs and OrderIDs.
Long story short: as Joost explained it is caused by buffer overflow of the integers and produces an exception (Order ID) or a "replacement" (TourID).
For those (SAP based) users who ran into the issue: you need a mapping between your IDs (however they aber based) and some valid INTs.
The xTour2 API deals with string based IDs instead of INTs, so the problem won't occur anymore.
Besr regards,
Bernd
PS: your depot has more than 1000 intervals covering a period of 3.4 years. A bit weird if you ask me
Long story short: as Joost explained it is caused by buffer overflow of the integers and produces an exception (Order ID) or a "replacement" (TourID).
For those (SAP based) users who ran into the issue: you need a mapping between your IDs (however they aber based) and some valid INTs.
The xTour2 API deals with string based IDs instead of INTs, so the problem won't occur anymore.
Besr regards,
Bernd
PS: your depot has more than 1000 intervals covering a period of 3.4 years. A bit weird if you ask me
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...
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...