NetTalk Central

Author Topic: DisconnectedWeb example sync problem  (Read 3152 times)

Alberto

  • Hero Member
  • *****
  • Posts: 1873
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
DisconnectedWeb example sync problem
« on: July 08, 2021, 09:48:08 AM »
Hi, I am playing with the N12 DisconnectedWeb example.
My problem is the Shippers table is allways syncing, no matter how many time is syncs, it allways gets an everythigafter=0 and then it sync again.
Ive set the Send to Debug... check and this is the trace, see line 501. (there are 8 recs but I delete some to make the post shorter)
only for that file... everything after never changes, why?
example attached

Quote
448   448.742849   13864   server.exe   [st] [netTalk][thread=3] syncShippers START Event=
449   448.758673   13864   server.exe   [st] [netTalk][thread=3] Incoming Parameters Format: xml=0 ; json=1
450   448.758819   13864   server.exe   [st] [netTalk][thread=3] Shippers Records=8
451   448.758913   13864   server.exe   [st] [netTalk][thread=3] Shippers_Action=sync
452   448.759012   13864   server.exe   [st] [netTalk][thread=3]     Record 1(Only 5 fields shown in debug log)
453   448.759107   13864   server.exe   [st] [netTalk][thread=3]         SHI:Guid=AQXZBR2OM7OCVJ9H
454   448.759203   13864   server.exe   [st] [netTalk][thread=3]         SHI:TimeStamp=1625764668632
455   448.759298   13864   server.exe   [st] [netTalk][thread=3]         SHI:ServerTimeStamp=1625764668632
456   448.759393   13864   server.exe   [st] [netTalk][thread=3]         SHI:DeletedTimeStamp=0
457   448.759485   13864   server.exe   [st] [netTalk][thread=3]         SHI:Shipper=US Postal Service
458   448.759601   13864   server.exe   [st] [netTalk][thread=3]     Record 2(Only 5 fields shown in debug log)
459   448.759724   13864   server.exe   [st] [netTalk][thread=3]         SHI:Guid=DOPCE5PFDRGIQFP8
460   448.759819   13864   server.exe   [st] [netTalk][thread=3]         SHI:TimeStamp=1625764668653
461   448.759913   13864   server.exe   [st] [netTalk][thread=3]         SHI:ServerTimeStamp=1625764668653
462   448.760006   13864   server.exe   [st] [netTalk][thread=3]         SHI:DeletedTimeStamp=0
463   448.760113   13864   server.exe   [st] [netTalk][thread=3]         SHI:Shipper=Canadian Post
500   448.764135   13864   server.exe   [st] [netTalk][thread=3] token =
501   448.764272   13864   server.exe   [st] [netTalk][thread=3] everythingafter =0
502   448.880073   13864   server.exe   [st] [netTalk][thread=3] Order: SHI:TimeStamp
503   448.880244   13864   server.exe   [st] [netTalk][thread=3] Filter:
504   448.880366   13864   server.exe   [st] [netTalk][thread=3] SqlFilter: 0
505   448.895197   13864   server.exe   [st] {
506   448.895197   13864   server.exe      "syncshippers_response" : {
507   448.895197   13864   server.exe         "shippers" : [
508   448.895197   13864   server.exe            {
509   448.895197   13864   server.exe               "guid" : "AQXZBR2OM7OCVJ9H",
510   448.895197   13864   server.exe               "ts" : "1625765116727",
511   448.895197   13864   server.exe               "tst" : "1625765116727",
512   448.895197   13864   server.exe               "dts" : "0.00",
513   448.895197   13864   server.exe               "shipper" : "US Postal Service",
514   448.895197   13864   server.exe               "email" : "",
515   448.895197   13864   server.exe               "phone" : ""
516   448.895197   13864   server.exe            },
517   448.895197   13864   server.exe            {
518   448.895197   13864   server.exe               "guid" : "DOPCE5PFDRGIQFP8",
519   448.895197   13864   server.exe               "ts" : "1625765116737",
520   448.895197   13864   server.exe               "tst" : "1625765116737",
521   448.895197   13864   server.exe               "dts" : "0.00",
522   448.895197   13864   server.exe               "shipper" : "Canadian Post",
523   448.895197   13864   server.exe               "email" : "",
524   448.895197   13864   server.exe               "phone" : ""
525   448.895197   13864   server.exe            },
580   448.895197   13864   server.exe         ]
581   448.895197   13864   server.exe      }
582   448.895197   13864   server.exe   }
583   448.895307   13864   server.exe   [st] [netTalk][thread=3] syncShippers END
-----------
Regards
Alberto

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: DisconnectedWeb example sync problem
« Reply #1 on: July 13, 2021, 07:58:54 PM »
it's likely that all the records in the shippers table have the same serverTimeStamp.
(In this case, probably all 0).

I recommend "touching" one of the records, so it has a timestamp later than the others.

Cheers
Bruce