<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: Invalid sync sequence ID for remote ID 'X' in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/invalid-sync-sequence-id-for-remote-id-x/qaa-p/13820019#M4850862</link>
    <description>&lt;P&gt;I don't see a COMMIT for upload. Does your application set the &lt;A href="http://dcx.sap.com/index.html#sa160/en/uladmin/download-only-synchronization-ulref.html"&gt;Download Only synchronization parameter&lt;/A&gt;?&lt;/P&gt;</description>
    <pubDate>Thu, 27 Aug 2015 12:00:43 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2015-08-27T12:00:43Z</dc:date>
    <item>
      <title>Invalid sync sequence ID for remote ID 'X'</title>
      <link>https://community.sap.com/t5/technology-q-a/invalid-sync-sequence-id-for-remote-id-x/qaq-p/13820002</link>
      <description>&lt;P&gt;Hello experts,&lt;/P&gt;
&lt;P&gt;I've faced this issue for a long time and I hope you guys could help me with this.&lt;/P&gt;
&lt;P&gt;Sometimes when the sync is cancelled in the app an error of upload occurs, with the "invalid sync sequence ID" description in the server.&lt;/P&gt;
&lt;P&gt;We've been using the SQLAnywhere 16 2127 and UltraliteJ for Android. The sync is canceled using the 'syncProgress' callback from 'SyncObserver' class.&lt;/P&gt;
&lt;P&gt;Looking for evidences in the server log, I've noticed that the transaction of the canceled sync is commited, but after a bit of time a log of 'connection drop' is logged.&lt;/P&gt;
&lt;P&gt;This error is a little bit hard to reproduce, but it affects hundred of users every week in my company.&lt;/P&gt;
&lt;P&gt;After that, I'm only able to sync again with this user if I start a new sync with a new database.&lt;/P&gt;
&lt;P&gt;Any suggestions of what could be happening?&lt;/P&gt;
&lt;LI-CODE lang="sql"&gt;I. 2015-08-26 11:06:49. &amp;lt;1084&amp;gt; Request from "UL 16.0.2127" for: remote ID: 2, user name: 24, version: XXX
I. 2015-08-26 11:06:49. &amp;lt;1084&amp;gt; The current synchronization is using a connection with connection ID 'SPID 262'
I. 2015-08-26 11:06:49. &amp;lt;1084&amp;gt; The authenticate_parameters script returned 1000
I. 2015-08-26 11:06:49. &amp;lt;1084&amp;gt; COMMIT Transaction: Authenticate user
I. 2015-08-26 11:06:49. &amp;lt;1084&amp;gt; COMMIT Transaction: Begin synchronization
I. 2015-08-26 11:06:49. &amp;lt;1084&amp;gt; COMMIT Transaction: Prepare for download
I. 2015-08-26 11:06:50. &amp;lt;1084&amp;gt; Sending the download to the remote database
I. 2015-08-26 11:06:50. &amp;lt;1084&amp;gt; COMMIT Transaction: Download
I. 2015-08-26 11:06:57. &amp;lt;1084&amp;gt; COMMIT Transaction: End synchronization
I. 2015-08-26 11:10:54. &amp;lt;1085&amp;gt; Request from "UL 16.0.2127" for: remote ID: 2, user name: 24, version: XXX
I. 2015-08-26 11:10:54. &amp;lt;1085&amp;gt; The current synchronization is using a connection with connection ID 'SPID 262'
I. 2015-08-26 11:10:54. &amp;lt;1085&amp;gt; The authenticate_parameters script returned 1000
I. 2015-08-26 11:10:54. &amp;lt;1085&amp;gt; COMMIT Transaction: Authenticate user
I. 2015-08-26 11:10:54. &amp;lt;1085&amp;gt; The sync sequence ID in the consolidated database: 66e705a64bc911e58000d4b26ffaac50; the remote previous sequence ID: ac77d1964bc811e58000d4b26ffaac50, and the current sequence ID: f8e572bc4bc911e580009bbc92b92a77
E. 2015-08-26 11:10:54. &amp;lt;1085&amp;gt; [-10400] Invalid sync sequence ID for remote ID '2'
I. 2015-08-26 11:10:54. &amp;lt;1085&amp;gt; Synchronization failed
E. 2015-08-26 11:10:59. &amp;lt;1084&amp;gt; [-10279] Connection was dropped due to lack of network activity
I. 2015-08-26 11:10:59. &amp;lt;1084&amp;gt; Synchronization complete&lt;/LI-CODE&gt;


&lt;P&gt;A new log with verbosity -vp&lt;/P&gt;
&lt;LI-CODE lang="sql"&gt;I. 2015-08-27 16:05:16. &amp;lt;38&amp;gt; Request from "UL 16.0.2127" for: remote ID: 2, user name: 24, version: XXX
I. 2015-08-27 16:05:16. &amp;lt;38&amp;gt; The current synchronization is using a connection with connection ID 'SPID 366'
I. 2015-08-27 16:05:16. &amp;lt;38&amp;gt; The authenticate_parameters script returned 1000
I. 2015-08-27 16:05:16. &amp;lt;38&amp;gt; COMMIT Transaction: Authenticate user
I. 2015-08-27 16:05:16. &amp;lt;38&amp;gt; Publication #1: ul_default_pub, subscription id: 1, last download time: 2015-08-27 16:05:06.727000
I. 2015-08-27 16:05:16. &amp;lt;38&amp;gt; The sync sequence ID in the consolidated database: 3c4236b04cbc11e58000c12fcb6170e4; the remote previous sequence ID: 3c4236b04cbc11e58000c12fcb6170e4, and the current sequence ID: 41d955e04cbc11e58000c12fcb6170e4
I. 2015-08-27 16:05:16. &amp;lt;38&amp;gt; Last upload time for subscription id 1: 2015-08-27 15:41:13.180000
I. 2015-08-27 16:05:16. &amp;lt;38&amp;gt; Generation number for publication 'ul_default_pub' is 1
I. 2015-08-27 16:05:16. &amp;lt;38&amp;gt; COMMIT Transaction: Begin synchronization
I. 2015-08-27 16:05:17. &amp;lt;38&amp;gt; COMMIT Transaction: Prepare for download
I. 2015-08-27 16:05:17. &amp;lt;38&amp;gt; Next last download timestamp fetched from the consolidated database is "2015-08-27 16:05:16.297000"
I. 2015-08-27 16:05:18. &amp;lt;38&amp;gt; Sending the download to the remote database
I. 2015-08-27 16:05:18. &amp;lt;38&amp;gt; COMMIT Transaction: Download
I. 2015-08-27 16:05:24. &amp;lt;38&amp;gt; COMMIT Transaction: End synchronization
I. 2015-08-27 16:06:13. &amp;lt;39&amp;gt; Request from "UL 16.0.2087" for: remote ID: 1009, user name: 17, version: XXX
I. 2015-08-27 16:06:13. &amp;lt;39&amp;gt; The current synchronization is using a connection with connection ID 'SPID 366'
I. 2015-08-27 16:06:13. &amp;lt;39&amp;gt; The authenticate_parameters script returned 1000
I. 2015-08-27 16:06:13. &amp;lt;39&amp;gt; COMMIT Transaction: Authenticate user
I. 2015-08-27 16:06:13. &amp;lt;39&amp;gt; Publication #1: ul_default_pub, subscription id: 1, last download time: 2015-08-27 16:04:35.817000
I. 2015-08-27 16:06:13. &amp;lt;39&amp;gt; The sync sequence ID in the consolidated database: 874340d9d4404fc995874938ed708bc5; the remote previous sequence ID: 874340d9d4404fc995874938ed708bc5, and the current sequence ID: 137635d70da644e089e8e42c3ab092cb
I. 2015-08-27 16:06:13. &amp;lt;40&amp;gt; Request from "UL 16.0.2127" for: remote ID: 2, user name: 24, version: XXX
I. 2015-08-27 16:06:13. &amp;lt;40&amp;gt; The current synchronization is using a connection with connection ID 'SPID 357'
I. 2015-08-27 16:06:13. &amp;lt;40&amp;gt; The authenticate_parameters script returned 1000
I. 2015-08-27 16:06:13. &amp;lt;40&amp;gt; COMMIT Transaction: Authenticate user
I. 2015-08-27 16:06:13. &amp;lt;40&amp;gt; Publication #1: ul_default_pub, subscription id: 1, last download time: 2015-08-27 16:05:06.727000
I. 2015-08-27 16:06:13. &amp;lt;40&amp;gt; The sync sequence ID in the consolidated database: 41d955e04cbc11e58000c12fcb6170e4; the remote previous sequence ID: 3c4236b04cbc11e58000c12fcb6170e4, and the current sequence ID: 64255a684cbc11e58000d4570e72fa59
E. 2015-08-27 16:06:13. &amp;lt;40&amp;gt; [-10400] Invalid sync sequence ID for remote ID '2'
I. 2015-08-27 16:06:14. &amp;lt;40&amp;gt; Synchronization failed&lt;/LI-CODE&gt;


&lt;P&gt;A new log with download/upload scenario:&lt;/P&gt;
&lt;LI-CODE lang="sql"&gt;I. 2015-07-31 05:44:16. &amp;lt;1361&amp;gt; Request from "UL 16.0.2087" for: remote ID: 190, user name: 99, version: XXX
I. 2015-07-31 05:44:16. &amp;lt;1361&amp;gt; The current synchronization is using a connection with connection ID 'SPID 110'
I. 2015-07-31 05:44:16. &amp;lt;1361&amp;gt; The authenticate_parameters script returned 1000
I. 2015-07-31 05:44:16. &amp;lt;1361&amp;gt; COMMIT Transaction: Authenticate user
I. 2015-07-31 05:44:16. &amp;lt;1361&amp;gt; COMMIT Transaction: Begin synchronization
I. 2015-07-31 05:44:16. &amp;lt;1361&amp;gt; COMMIT Transaction: Upload
I. 2015-07-31 05:44:17. &amp;lt;1361&amp;gt; COMMIT Transaction: Prepare for download
I. 2015-07-31 05:44:28. &amp;lt;1361&amp;gt; Sending the download to the remote database
I. 2015-07-31 05:44:30. &amp;lt;1361&amp;gt; COMMIT Transaction: Download
I. 2015-07-31 05:44:31. &amp;lt;1362&amp;gt; Request from "UL 16.0.2087" for: remote ID: 190, user name: 99, version: XXX
E. 2015-07-31 05:44:31. &amp;lt;1362&amp;gt; [-10341] The remote database identified by remote ID '190' may already be synchronizing: unable to lock that remote ID
I. 2015-07-31 05:44:32. &amp;lt;1363&amp;gt; Request from "UL 16.0.2087" for: remote ID: 190, user name: 99, version: XXX
E. 2015-07-31 05:44:32. &amp;lt;1363&amp;gt; [-10341] The remote database identified by remote ID '190' may already be synchronizing: unable to lock that remote ID
I. 2015-07-31 05:44:33. &amp;lt;1363&amp;gt; The current synchronization is using a connection with connection ID 'SPID 112'
I. 2015-07-31 05:44:33. &amp;lt;1363&amp;gt; The authenticate_parameters script returned 1000
I. 2015-07-31 05:44:33. &amp;lt;1363&amp;gt; COMMIT Transaction: Authenticate user
E. 2015-07-31 05:44:33. &amp;lt;1363&amp;gt; [-10341] The remote database identified by remote ID '190' may already be synchronizing: unable to lock that remote ID
I. 2015-07-31 05:44:33. &amp;lt;1363&amp;gt; Synchronization failed
I. 2015-07-31 05:44:37. &amp;lt;1361&amp;gt; COMMIT Transaction: End synchronization
I. 2015-07-31 05:45:25. &amp;lt;1364&amp;gt; Request from "UL 16.0.2087" for: remote ID: 190, user name: 99, version: XXX
I. 2015-07-31 05:45:25. &amp;lt;1364&amp;gt; The current synchronization is using a connection with connection ID 'SPID 110'
I. 2015-07-31 05:45:25. &amp;lt;1364&amp;gt; The authenticate_parameters script returned 1000
I. 2015-07-31 05:45:25. &amp;lt;1364&amp;gt; COMMIT Transaction: Authenticate user
I. 2015-07-31 05:45:25. &amp;lt;1364&amp;gt; The sync sequence ID in the consolidated database: e41b0e0add35460091ca651ce0ee2633; the remote previous sequence ID: 25acf6af47234c1192f7203343b5e93e, and the current sequence ID: 1c20ad4023d44353a7b32d021c698c74
E. 2015-07-31 05:45:25. &amp;lt;1364&amp;gt; [-10400] Invalid sync sequence ID for remote ID '190'
I. 2015-07-31 05:45:26. &amp;lt;1364&amp;gt; Synchronization failed
E. 2015-07-31 05:48:26. &amp;lt;1361&amp;gt; [-10279] Connection was dropped due to lack of network activity
I. 2015-07-31 05:48:26. &amp;lt;1361&amp;gt; Synchronization complete&lt;/LI-CODE&gt;


&lt;P&gt;And a very complex scenario which I couldn't figure out what could be happening? Maybe a simultaneos sync in the same device?&lt;/P&gt;
&lt;LI-CODE lang="sql"&gt;I. 2015-07-29 08:07:32. &amp;lt;1112&amp;gt; Request from "UL 16.0.2087" for: remote ID: 170, user name: 11, version: XXX
I. 2015-07-29 08:07:46. &amp;lt;1113&amp;gt; Request from "UL 16.0.2087" for: remote ID: 170, user name: 11, version: XXX
I. 2015-07-29 08:07:46. &amp;lt;1113&amp;gt; The current synchronization is using a connection with connection ID 'SPID 91'
I. 2015-07-29 08:07:46. &amp;lt;1113&amp;gt; The authenticate_parameters script returned 1000
I. 2015-07-29 08:07:46. &amp;lt;1113&amp;gt; COMMIT Transaction: Authenticate user
I. 2015-07-29 08:07:46. &amp;lt;1113&amp;gt; COMMIT Transaction: Begin synchronization
I. 2015-07-29 08:07:46. &amp;lt;1113&amp;gt; COMMIT Transaction: Upload
I. 2015-07-29 08:07:48. &amp;lt;1113&amp;gt; COMMIT Transaction: Prepare for download
I. 2015-07-29 08:07:58. &amp;lt;1113&amp;gt; Sending the download to the remote database
I. 2015-07-29 08:08:00. &amp;lt;1113&amp;gt; COMMIT Transaction: Download
I. 2015-07-29 08:08:08. &amp;lt;1113&amp;gt; COMMIT Transaction: End synchronization
I. 2015-07-29 08:08:12. &amp;lt;1114&amp;gt; Request from "UL 16.0.2087" for: remote ID: 170, user name: 11, version: XXX
I. 2015-07-29 08:08:12. &amp;lt;1114&amp;gt; The current synchronization is using a connection with connection ID 'SPID 91'
I. 2015-07-29 08:08:12. &amp;lt;1114&amp;gt; The authenticate_parameters script returned 1000
I. 2015-07-29 08:08:12. &amp;lt;1114&amp;gt; COMMIT Transaction: Authenticate user
I. 2015-07-29 08:08:12. &amp;lt;1114&amp;gt; COMMIT Transaction: Begin synchronization
I. 2015-07-29 08:08:12. &amp;lt;1114&amp;gt; COMMIT Transaction: Upload
I. 2015-07-29 08:08:13. &amp;lt;1114&amp;gt; COMMIT Transaction: Prepare for download
I. 2015-07-29 08:08:21. &amp;lt;1115&amp;gt; Request from "UL 16.0.2087" for: remote ID: 170, user name: 11, version: XXX
I. 2015-07-29 08:08:21. &amp;lt;1115&amp;gt; The current synchronization is using a connection with connection ID 'SPID 82'
I. 2015-07-29 08:08:21. &amp;lt;1115&amp;gt; The authenticate_parameters script returned 1000
I. 2015-07-29 08:08:21. &amp;lt;1115&amp;gt; COMMIT Transaction: Authenticate user
E. 2015-07-29 08:08:21. &amp;lt;1115&amp;gt; [-10341] The remote database identified by remote ID '170' may already be synchronizing: unable to lock that remote ID
I. 2015-07-29 08:08:21. &amp;lt;1115&amp;gt; Synchronization failed
I. 2015-07-29 08:08:22. &amp;lt;1114&amp;gt; Sending the download to the remote database
I. 2015-07-29 08:08:25. &amp;lt;1114&amp;gt; COMMIT Transaction: Download
I. 2015-07-29 08:08:33. &amp;lt;1114&amp;gt; COMMIT Transaction: End synchronization
I. 2015-07-29 08:08:40. &amp;lt;1116&amp;gt; Request from "UL 16.0.2087" for: remote ID: 170, user name: 11, version: XXX
I. 2015-07-29 08:08:40. &amp;lt;1116&amp;gt; The current synchronization is using a connection with connection ID 'SPID 91'
I. 2015-07-29 08:08:40. &amp;lt;1116&amp;gt; The authenticate_parameters script returned 1000
I. 2015-07-29 08:08:40. &amp;lt;1116&amp;gt; COMMIT Transaction: Authenticate user
I. 2015-07-29 08:08:41. &amp;lt;1116&amp;gt; COMMIT Transaction: Begin synchronization
I. 2015-07-29 08:08:41. &amp;lt;1116&amp;gt; COMMIT Transaction: Upload
I. 2015-07-29 08:08:42. &amp;lt;1116&amp;gt; COMMIT Transaction: Prepare for download
I. 2015-07-29 08:08:48. &amp;lt;1117&amp;gt; Request from "UL 16.0.2087" for: remote ID: 170, user name: 11, version: XXX
I. 2015-07-29 08:08:48. &amp;lt;1117&amp;gt; The current synchronization is using a connection with connection ID 'SPID 82'
I. 2015-07-29 08:08:48. &amp;lt;1117&amp;gt; The authenticate_parameters script returned 1000
I. 2015-07-29 08:08:48. &amp;lt;1117&amp;gt; COMMIT Transaction: Authenticate user
E. 2015-07-29 08:08:48. &amp;lt;1117&amp;gt; [-10341] The remote database identified by remote ID '170' may already be synchronizing: unable to lock that remote ID
I. 2015-07-29 08:08:48. &amp;lt;1117&amp;gt; Synchronization failed
I. 2015-07-29 08:08:52. &amp;lt;1116&amp;gt; Sending the download to the remote database
I. 2015-07-29 08:08:54. &amp;lt;1116&amp;gt; COMMIT Transaction: Download
I. 2015-07-29 08:09:02. &amp;lt;1116&amp;gt; COMMIT Transaction: End synchronization
I. 2015-07-29 08:09:13. &amp;lt;1118&amp;gt; Request from "UL 16.0.2087" for: remote ID: 170, user name: 11, version: XXX
I. 2015-07-29 08:09:13. &amp;lt;1118&amp;gt; The current synchronization is using a connection with connection ID 'SPID 91'
I. 2015-07-29 08:09:13. &amp;lt;1118&amp;gt; The authenticate_parameters script returned 1000
I. 2015-07-29 08:09:13. &amp;lt;1118&amp;gt; COMMIT Transaction: Authenticate user
I. 2015-07-29 08:09:13. &amp;lt;1118&amp;gt; COMMIT Transaction: Begin synchronization
I. 2015-07-29 08:09:13. &amp;lt;1118&amp;gt; COMMIT Transaction: Upload
I. 2015-07-29 08:09:15. &amp;lt;1118&amp;gt; COMMIT Transaction: Prepare for download
I. 2015-07-29 08:09:20. &amp;lt;1119&amp;gt; Request from "UL 16.0.2087" for: remote ID: 170, user name: 11, version: XXX
I. 2015-07-29 08:09:20. &amp;lt;1119&amp;gt; The current synchronization is using a connection with connection ID 'SPID 82'
I. 2015-07-29 08:09:20. &amp;lt;1119&amp;gt; The authenticate_parameters script returned 1000
I. 2015-07-29 08:09:20. &amp;lt;1119&amp;gt; COMMIT Transaction: Authenticate user
E. 2015-07-29 08:09:20. &amp;lt;1119&amp;gt; [-10341] The remote database identified by remote ID '170' may already be synchronizing: unable to lock that remote ID
I. 2015-07-29 08:09:20. &amp;lt;1119&amp;gt; Synchronization failed
I. 2015-07-29 08:09:25. &amp;lt;1118&amp;gt; Sending the download to the remote database
I. 2015-07-29 08:09:27. &amp;lt;1118&amp;gt; COMMIT Transaction: Download
I. 2015-07-29 08:09:27. &amp;lt;1120&amp;gt; Request from "UL 16.0.2087" for: remote ID: 170, user name: 11, version: XXX
I. 2015-07-29 08:09:27. &amp;lt;1120&amp;gt; The current synchronization is using a connection with connection ID 'SPID 82'
I. 2015-07-29 08:09:27. &amp;lt;1120&amp;gt; The authenticate_parameters script returned 1000
I. 2015-07-29 08:09:27. &amp;lt;1120&amp;gt; COMMIT Transaction: Authenticate user
E. 2015-07-29 08:09:27. &amp;lt;1120&amp;gt; [-10341] The remote database identified by remote ID '170' may already be synchronizing: unable to lock that remote ID
I. 2015-07-29 08:09:33. &amp;lt;1121&amp;gt; Request from "UL 16.0.2087" for: remote ID: 170, user name: 11, version: XXX
E. 2015-07-29 08:09:33. &amp;lt;1121&amp;gt; [-10341] The remote database identified by remote ID '170' may already be synchronizing: unable to lock that remote ID
I. 2015-07-29 08:09:33. &amp;lt;1121&amp;gt; The current synchronization is using a connection with connection ID 'SPID 82'
I. 2015-07-29 08:09:33. &amp;lt;1121&amp;gt; The authenticate_parameters script returned 1000
I. 2015-07-29 08:09:33. &amp;lt;1121&amp;gt; COMMIT Transaction: Authenticate user
E. 2015-07-29 08:09:33. &amp;lt;1121&amp;gt; [-10341] The remote database identified by remote ID '170' may already be synchronizing: unable to lock that remote ID
I. 2015-07-29 08:09:35. &amp;lt;1118&amp;gt; COMMIT Transaction: End synchronization
I. 2015-07-29 08:09:39. &amp;lt;1122&amp;gt; Request from "UL 16.0.2087" for: remote ID: 170, user name: 11, version: XXX
I. 2015-07-29 08:09:39. &amp;lt;1122&amp;gt; The sync sequence ID in the consolidated database: 8064c8e9c74d496daacfc651456dbece; the remote previous sequence ID: 3a1fe564a0eb4d0b808709e078925e3b, and the current sequence ID: 7f42f25b36854bacb328cacb822bd6fc
E. 2015-07-29 08:09:39. &amp;lt;1122&amp;gt; [-10400] Invalid sync sequence ID for remote ID '170'
I. 2015-07-29 08:09:39. &amp;lt;1122&amp;gt; Synchronization failed
E. 2015-07-29 08:11:36. &amp;lt;1112&amp;gt; [-10279] Connection was dropped due to lack of network activity
I. 2015-07-29 08:11:36. &amp;lt;1112&amp;gt; Synchronization complete
E. 2015-07-29 08:12:00. &amp;lt;1113&amp;gt; [-10279] Connection was dropped due to lack of network activity
I. 2015-07-29 08:12:00. &amp;lt;1113&amp;gt; Synchronization complete
E. 2015-07-29 08:12:20. &amp;lt;1114&amp;gt; [-10279] Connection was dropped due to lack of network activity
I. 2015-07-29 08:12:20. &amp;lt;1114&amp;gt; Synchronization complete
E. 2015-07-29 08:12:47. &amp;lt;1116&amp;gt; [-10279] Connection was dropped due to lack of network activity
I. 2015-07-29 08:12:47. &amp;lt;1116&amp;gt; Synchronization complete
E. 2015-07-29 08:13:18. &amp;lt;1118&amp;gt; [-10279] Connection was dropped due to lack of network activity
I. 2015-07-29 08:13:18. &amp;lt;1118&amp;gt; Synchronization complete
E. 2015-07-29 08:13:32. &amp;lt;1120&amp;gt; [-10279] Connection was dropped due to lack of network activity
I. 2015-07-29 08:13:32. &amp;lt;1120&amp;gt; Synchronization failed&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 26 Aug 2015 10:57:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/invalid-sync-sequence-id-for-remote-id-x/qaq-p/13820002</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-08-26T10:57:16Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid sync sequence ID for remote ID 'X'</title>
      <link>https://community.sap.com/t5/technology-q-a/invalid-sync-sequence-id-for-remote-id-x/qaa-p/13820003#M4850846</link>
      <description>&lt;P&gt;This could happen if remote database IDs are not unique. I notice that the remote ID is '2' rather than a UUID (which is the default). Since you are using non-default remote IDs, I suspect this is the cause of the problem.&lt;/P&gt;
&lt;P&gt;Further evidence of non-unique remote IDs is found in the sequence IDs. Since they are V1 UUIDs, the last 12 hex digits are a "node id" (often the network interface MAC address); the consolidated sequence ID and previous remote sequence ID came from node id d4b26ffaac50, whereas the current sequence ID came from node id 9bbc92b92a77.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Aug 2015 13:52:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/invalid-sync-sequence-id-for-remote-id-x/qaa-p/13820003#M4850846</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-08-26T13:52:07Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid sync sequence ID for remote ID 'X'</title>
      <link>https://community.sap.com/t5/technology-q-a/invalid-sync-sequence-id-for-remote-id-x/qaa-p/13820007#M4850850</link>
      <description>&lt;P&gt;It is worth investigating whether the remote database IDs are unique.&lt;/P&gt;
&lt;P&gt;Just a clarification for UltraLite on Android.  The node id's are not MAC addresses - they are generated based on system time and randomness among other things.  A node id for a given device will very likely be different after an application restart.  It will stay constant for the in-memory life cycle of the application though.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Aug 2015 15:19:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/invalid-sync-sequence-id-for-remote-id-x/qaa-p/13820007#M4850850</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-08-26T15:19:36Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid sync sequence ID for remote ID 'X'</title>
      <link>https://community.sap.com/t5/technology-q-a/invalid-sync-sequence-id-for-remote-id-x/qaa-p/13820008#M4850851</link>
      <description>&lt;P&gt;The remote database IDs are unique, for sure. In fact, I could reproduce this scenario with one single device syncing in a environment with only one user. About the node id, I've restarted my application after the cancelation (in fact, the sync is canceled prior the application closing), which can be the cause of the generation of two different "node ids", as Andy explained. Maybe the Mobilink is accepting a new request before closing the resources from the last one which can be leading to a bug.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Aug 2015 16:15:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/invalid-sync-sequence-id-for-remote-id-x/qaa-p/13820008#M4850851</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-08-26T16:15:31Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid sync sequence ID for remote ID 'X'</title>
      <link>https://community.sap.com/t5/technology-q-a/invalid-sync-sequence-id-for-remote-id-x/qaa-p/13820009#M4850852</link>
      <description>&lt;P&gt;Thanks Andy. In other words, the Android device would have to have be rebooted, or the application closed, cleared from memory, and then restarted, for there to be two different "node ids" from the same remote. In this case, that would have to be between 11:06:50 and 11:10:54. If that didn't happen, then it seems two remote databases have the remote ID of '2'. &lt;A href="http://dcx.sap.com/index.html#sa160/en/mlclient/mc-users-s-6422554.html"&gt;Remote IDs must be unique&lt;/A&gt;!&lt;/P&gt;</description>
      <pubDate>Wed, 26 Aug 2015 16:19:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/invalid-sync-sequence-id-for-remote-id-x/qaa-p/13820009#M4850852</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-08-26T16:19:29Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid sync sequence ID for remote ID 'X'</title>
      <link>https://community.sap.com/t5/technology-q-a/invalid-sync-sequence-id-for-remote-id-x/qaa-p/13820010#M4850853</link>
      <description>&lt;P&gt;Did you see different "node ids" (in the sequence IDs) after restarting the application? Normally an Android app stays in memory after closing, which is what Andy meant by "in-memory life cycle of the application".&lt;/P&gt;
&lt;P&gt;(A different "node id" in sequence IDs isn't a problem for MobiLink. It just seemed like evidence of non-unique remote IDs.)&lt;/P&gt;
&lt;P&gt;A new request from the same remote ID kicks out an in-progress sync, but it may be that your application is not &lt;A href="http://dcx.sap.com/index.html#sa160/en/mlserver/ml-synchtech-s-5287936.html"&gt;handling failed downloads correctly&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Aug 2015 16:27:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/invalid-sync-sequence-id-for-remote-id-x/qaa-p/13820010#M4850853</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-08-26T16:27:38Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid sync sequence ID for remote ID 'X'</title>
      <link>https://community.sap.com/t5/technology-q-a/invalid-sync-sequence-id-for-remote-id-x/qaa-p/13820011#M4850854</link>
      <description>&lt;P&gt;Also, since you can reproduce the scenario, please provide the steps to reproduce and/or a MobiLink server log where -vp verbosity was specified.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Aug 2015 17:25:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/invalid-sync-sequence-id-for-remote-id-x/qaa-p/13820011#M4850854</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-08-26T17:25:36Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid sync sequence ID for remote ID 'X'</title>
      <link>https://community.sap.com/t5/technology-q-a/invalid-sync-sequence-id-for-remote-id-x/qaa-p/13820012#M4850855</link>
      <description>&lt;P&gt;The application doesn't stay in memory because we force kill the process. I've made some tests and the node id do change if I restart the application. About the remote IDs, they are assigned at the moment of the first application run, server-side, stored in a identity database column. We don't have any evidences of duplicated remote IDs so far.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Aug 2015 17:54:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/invalid-sync-sequence-id-for-remote-id-x/qaa-p/13820012#M4850855</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-08-26T17:54:40Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid sync sequence ID for remote ID 'X'</title>
      <link>https://community.sap.com/t5/technology-q-a/invalid-sync-sequence-id-for-remote-id-x/qaa-p/13820013#M4850856</link>
      <description>&lt;P&gt;I'll try to reproduce again with a higher verbosity and I'll post the log. Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 26 Aug 2015 17:57:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/invalid-sync-sequence-id-for-remote-id-x/qaa-p/13820013#M4850856</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-08-26T17:57:18Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid sync sequence ID for remote ID 'X'</title>
      <link>https://community.sap.com/t5/technology-q-a/invalid-sync-sequence-id-for-remote-id-x/qaa-p/13820014#M4850857</link>
      <description>&lt;P&gt;About the download error handling, I'm not sure what it is. Since we cancel the sync using the Ultralite callbacks and, after the Ultralite return (which its thread has been locked during the synchronize method call) we kill the process. So, where am I supposed to handle the download failure if I want to abort the process?&lt;/P&gt;</description>
      <pubDate>Wed, 26 Aug 2015 18:06:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/invalid-sync-sequence-id-for-remote-id-x/qaa-p/13820014#M4850857</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-08-26T18:06:14Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid sync sequence ID for remote ID 'X'</title>
      <link>https://community.sap.com/t5/technology-q-a/invalid-sync-sequence-id-for-remote-id-x/qaa-p/13820015#M4850858</link>
      <description>&lt;P&gt;How does the remote get the remote ID from server?&lt;/P&gt;</description>
      <pubDate>Wed, 26 Aug 2015 18:09:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/invalid-sync-sequence-id-for-remote-id-x/qaa-p/13820015#M4850858</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-08-26T18:09:52Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid sync sequence ID for remote ID 'X'</title>
      <link>https://community.sap.com/t5/technology-q-a/invalid-sync-sequence-id-for-remote-id-x/qaa-p/13820016#M4850859</link>
      <description>&lt;P&gt;You shouldn't need to kill the process to cancel the sync! I think you just need to return True from SyncObserver.syncProgress. These posts might help:&lt;BR /&gt;
&lt;A href="http://sqlanywhere-forum.sap.com/questions/8110/mobilink-synchronization-with-progress-bar-in-ultralitej-for-android-updating-ui-during-sync"&gt;http://sqlanywhere-forum.sap.com/questions/8110/mobilink-synchronization-with-progress-bar-in-ultralitej-for-android-updating-ui-during-sync&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://sqlanywhere-forum.sap.com/questions/10734/mobilink-connection-timeout"&gt;http://sqlanywhere-forum.sap.com/questions/10734/mobilink-connection-timeout&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;A partial download should be automatically rolled back as long as you have not enabled the &lt;A href="http://dcx.sap.com/index.html#sa160/en/uladmin/mc-ulsync-s-5653206.html"&gt;Keep partial download&lt;/A&gt; synchronization parameter. But killing the process may cause problems with rollback.&lt;/P&gt;
&lt;P&gt;The reason we want to see -vp verbosity is to make sure that your application is doing a "check status" sync after a failed download (if not keeping partial downloads) or a &lt;A href="http://dcx.sap.com/index.html#sa160/en/uladmin/mc-ulsync-s-5773994.html"&gt;"resume" sync&lt;/A&gt; (if keeping partial downloads).&lt;/P&gt;</description>
      <pubDate>Wed, 26 Aug 2015 18:18:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/invalid-sync-sequence-id-for-remote-id-x/qaa-p/13820016#M4850859</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-08-26T18:18:25Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid sync sequence ID for remote ID 'X'</title>
      <link>https://community.sap.com/t5/technology-q-a/invalid-sync-sequence-id-for-remote-id-x/qaa-p/13820017#M4850860</link>
      <description>&lt;P&gt;I'm not killing the process because the sync. I'm canceling the sync to kill the process for other reasons. I've checked here and we don't use partial downloads, since we have such a complex download preparation logics which don't fit to this feature. I couldn't reproduce the error yet (it is hard to reproduce), but as soon as I do it I update the question with this information. Thanks again!&lt;/P&gt;</description>
      <pubDate>Thu, 27 Aug 2015 08:03:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/invalid-sync-sequence-id-for-remote-id-x/qaa-p/13820017#M4850860</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-08-27T08:03:08Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid sync sequence ID for remote ID 'X'</title>
      <link>https://community.sap.com/t5/technology-q-a/invalid-sync-sequence-id-for-remote-id-x/qaa-p/13820018#M4850861</link>
      <description>&lt;P&gt;My concern was that the force kill of the process may interfere with proper clean up of the cancelled sync, eg. if it is killed after UltraLite returns, but Android may still be flushing to persistent storage, such as an SD card.  &lt;/P&gt;
&lt;P&gt;(BTW the box with an arrow on a comment is for replying to that comment.)&lt;/P&gt;</description>
      <pubDate>Thu, 27 Aug 2015 11:08:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/invalid-sync-sequence-id-for-remote-id-x/qaa-p/13820018#M4850861</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-08-27T11:08:56Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid sync sequence ID for remote ID 'X'</title>
      <link>https://community.sap.com/t5/technology-q-a/invalid-sync-sequence-id-for-remote-id-x/qaa-p/13820019#M4850862</link>
      <description>&lt;P&gt;I don't see a COMMIT for upload. Does your application set the &lt;A href="http://dcx.sap.com/index.html#sa160/en/uladmin/download-only-synchronization-ulref.html"&gt;Download Only synchronization parameter&lt;/A&gt;?&lt;/P&gt;</description>
      <pubDate>Thu, 27 Aug 2015 12:00:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/invalid-sync-sequence-id-for-remote-id-x/qaa-p/13820019#M4850862</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-08-27T12:00:43Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid sync sequence ID for remote ID 'X'</title>
      <link>https://community.sap.com/t5/technology-q-a/invalid-sync-sequence-id-for-remote-id-x/qaa-p/13820020#M4850863</link>
      <description>&lt;P&gt;We're investigating if there is a potential problem specific to cancelling download-only synchronizations. As an experiment or potential workaround, you could try disabling the Download Only sync parameter in your Android application. (If there are any changes on the remote to downloaded tables, you may also need to define &lt;A href="http://dcx.sap.com/index.html#sa160/en/mlserver/ml-scripts-s-4998234.html"&gt;ignored&lt;/A&gt; &lt;CODE&gt;upload_insert&lt;/CODE&gt; and &lt;CODE&gt;upload_update&lt;/CODE&gt; scripts.)&lt;/P&gt;</description>
      <pubDate>Thu, 27 Aug 2015 13:35:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/invalid-sync-sequence-id-for-remote-id-x/qaa-p/13820020#M4850863</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-08-27T13:35:37Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid sync sequence ID for remote ID 'X'</title>
      <link>https://community.sap.com/t5/technology-q-a/invalid-sync-sequence-id-for-remote-id-x/qaa-p/13820021#M4850864</link>
      <description>&lt;P&gt;Only if the Ultralite performs IO operations asynchronously, what I doubt. We kill the process only after the Ultralite fininshes the synchronize call.&lt;/P&gt;
&lt;P&gt;(BTW, tks for the tip, but not a suggestive icon anyway)&lt;/P&gt;</description>
      <pubDate>Thu, 27 Aug 2015 14:22:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/invalid-sync-sequence-id-for-remote-id-x/qaa-p/13820021#M4850864</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-08-27T14:22:18Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid sync sequence ID for remote ID 'X'</title>
      <link>https://community.sap.com/t5/technology-q-a/invalid-sync-sequence-id-for-remote-id-x/qaa-p/13820022#M4850865</link>
      <description>&lt;P&gt;There is some scenarios (not in general) where the download-only can be used. But, unfortunatelly, we cannot disable that to avoid data inconsistent (not allowed upload of data which may colide with others). I'll include this scenario in my tests. Tks.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Aug 2015 14:26:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/invalid-sync-sequence-id-for-remote-id-x/qaa-p/13820022#M4850865</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-08-27T14:26:53Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid sync sequence ID for remote ID 'X'</title>
      <link>https://community.sap.com/t5/technology-q-a/invalid-sync-sequence-id-for-remote-id-x/qaa-p/13820023#M4850866</link>
      <description>&lt;P&gt;Question edited with a new log with higher verbosity, as requested.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Aug 2015 15:21:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/invalid-sync-sequence-id-for-remote-id-x/qaa-p/13820023#M4850866</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-08-27T15:21:12Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid sync sequence ID for remote ID 'X'</title>
      <link>https://community.sap.com/t5/technology-q-a/invalid-sync-sequence-id-for-remote-id-x/qaa-p/13820004#M4850847</link>
      <description>&lt;P&gt;I've reproduced an scenario which leads to this issue (and I hope all the others derives from this one, for the sake of simplicity =p)&lt;/P&gt;
&lt;P&gt;Steps to reproduce (using an Android device with UltraliteJ 16 2127):&lt;/P&gt;
&lt;P&gt;1) Synchronize the client
2) As soon as the message "COMMIT Transaction: Download" is logged on the Mobilink log, close the application
3) Start the application again the synchronize the client. The error will occurs.&lt;/P&gt;
&lt;P&gt;Note that the first synchronization hangs on the connection until the timeout of this connection is reached.&lt;/P&gt;
&lt;P&gt;I've tried different sync parameters, even enabling/disabling the download ack, but without success.&lt;/P&gt;
&lt;P&gt;Can I consider this issue as a bug?&lt;/P&gt;
&lt;LI-CODE lang="sql"&gt;I. 2015-08-27 16:50:40. &amp;lt;435&amp;gt; Request from "UL 16.0.2127" for: remote ID: 2, user name: 24, version: XXX
I. 2015-08-27 16:50:40. &amp;lt;435&amp;gt; The current synchronization is using a connection with connection ID 'SPID 357'
I. 2015-08-27 16:50:40. &amp;lt;435&amp;gt; The authenticate_parameters script returned 1000
I. 2015-08-27 16:50:40. &amp;lt;435&amp;gt; COMMIT Transaction: Authenticate user
I. 2015-08-27 16:50:40. &amp;lt;435&amp;gt; Publication #1: ul_default_pub, subscription id: 1, last download time: 2015-08-27 16:50:23.517000
I. 2015-08-27 16:50:40. &amp;lt;435&amp;gt; The sync sequence ID in the consolidated database: 8fbe74104cc211e58000a93d68080ea7; the remote previous sequence ID: 8fbe74104cc211e58000a93d68080ea7, and the current sequence ID: 992957904cc211e58000a93d68080ea7
I. 2015-08-27 16:50:40. &amp;lt;435&amp;gt; Last upload time for subscription id 1: 2015-08-27 15:41:13.180000
I. 2015-08-27 16:50:40. &amp;lt;435&amp;gt; Generation number for publication 'ul_default_pub' is 1
I. 2015-08-27 16:50:40. &amp;lt;435&amp;gt; COMMIT Transaction: Begin synchronization
I. 2015-08-27 16:50:40. &amp;lt;435&amp;gt; COMMIT Transaction: Prepare for download
I. 2015-08-27 16:50:40. &amp;lt;435&amp;gt; Next last download timestamp fetched from the consolidated database is "2015-08-27 16:50:39.337000"
I. 2015-08-27 16:50:41. &amp;lt;435&amp;gt; Sending the download to the remote database
I. 2015-08-27 16:50:41. &amp;lt;435&amp;gt; COMMIT Transaction: Download
I. 2015-08-27 16:50:47. &amp;lt;435&amp;gt; COMMIT Transaction: End synchronization
I. 2015-08-27 16:51:13. &amp;lt;436&amp;gt; Request from "UL 16.0.2127" for: remote ID: 2, user name: 24, version: XXX
I. 2015-08-27 16:51:13. &amp;lt;436&amp;gt; The current synchronization is using a connection with connection ID 'SPID 357'
I. 2015-08-27 16:51:13. &amp;lt;436&amp;gt; The authenticate_parameters script returned 1000
I. 2015-08-27 16:51:13. &amp;lt;436&amp;gt; COMMIT Transaction: Authenticate user
I. 2015-08-27 16:51:13. &amp;lt;436&amp;gt; Publication #1: ul_default_pub, subscription id: 1, last download time: 2015-08-27 16:50:23.517000
I. 2015-08-27 16:51:13. &amp;lt;436&amp;gt; The sync sequence ID in the consolidated database: 992957904cc211e58000a93d68080ea7; the remote previous sequence ID: 8fbe74104cc211e58000a93d68080ea7, and the current sequence ID: ad024bd24cc211e58000e6d39f5d0b49
E. 2015-08-27 16:51:13. &amp;lt;436&amp;gt; [-10400] Invalid sync sequence ID for remote ID '2'
I. 2015-08-27 16:51:13. &amp;lt;436&amp;gt; Synchronization failed
E. 2015-08-27 16:54:48. &amp;lt;435&amp;gt; [-10279] Connection was dropped due to lack of network activity
I. 2015-08-27 16:54:48. &amp;lt;435&amp;gt; Synchronization complete&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 27 Aug 2015 16:02:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/invalid-sync-sequence-id-for-remote-id-x/qaa-p/13820004#M4850847</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-08-27T16:02:11Z</dc:date>
    </item>
  </channel>
</rss>

