-
June 22nd, 2020, 08:37 AM
#1
Unexpected UPDATE command
I'm getting the following error message:
Unexpected UPDATE command in snapshot for key KEY1. Event propagated in an inconsistent way.
Last edited by ManKeer; June 22nd, 2020 at 11:40 AM.
-
June 22nd, 2020, 09:20 AM
#2
We are aware only of similar messages, of this form:
- Unexpected UPDATE command in snapshot for key xxxx
- Unexpected UPDATE event for key xxxx
- Unexpected update for item xxxx on yyyy
Please clarify if you refer to one of these; or please specify the Server version.
-
June 22nd, 2020, 11:41 AM
#3
I have updated the original post
-
June 22nd, 2020, 11:55 AM
#4
When the Data Adapter feeds an item subscribed to in COMMAND mode, it has to provide the "snapshot" first, then the real time updates.
Since this kind of item represents a table, by "snapshot" we mean the current contents of the table at the time of subscription.
By convention, these current contents have to be supplied as a sequence of ADD commands, one for each row (i.e. key) in the table.
After that, you should send an "end of snapshot" notification; at this point you can supply ADD, UPDATE, and DELETE commands to reflect real time updates.
You must have sent an UPDATE command before the "end of snapshot" notification, which makes no sense for Lightstreamer Server.
-
June 23rd, 2020, 10:38 AM
#5
Thank you Dario for your suuport,
I have figured out the cause of this problem, I'm using smartUpdate with isSnapshot set to true in all cases, my solution is to pass true for the first call smartUpdate, after that I have passed the isSnapshot with false, and the Unexpected UPDATE command totally disappeared.
-
June 24th, 2020, 09:15 AM
#6
Yes, I confirm that you can just use the isSnapshot flag properly and you don't need to send the end-of-snapshot notification, which is optional.
Just note that if you don't send the end-of-snapshot notification, the client won't receive, in turn, the end-of-snapshot notification, until the first real-time update is produced. Obviously, this may not be important in your case.
Similar Threads
-
By rvkvino in forum General
Replies: 7
Last Post: November 15th, 2017, 09:52 AM
-
By tony99nyr in forum Adapter SDKs
Replies: 3
Last Post: April 7th, 2014, 10:29 AM
-
By darch in forum Adapter SDKs
Replies: 2
Last Post: March 29th, 2013, 03:59 AM
-
By pluczak in forum Adapter SDKs
Replies: 1
Last Post: April 17th, 2012, 10:19 AM
-
By ddhanis in forum Adapter SDKs
Replies: 1
Last Post: August 20th, 2009, 09:47 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
All times are GMT +1. The time now is 07:57 AM.
Bookmarks