Ticket Migrations

Is there a fixed number of documents to migrate? I noticed my number (23k) is not the same as the number someone else mentioned in another thread (40k)

I’ve also got this error:

Can anyone point me in the right direction?

There are around 23k documents in total anyway, so your number is correct.

You’ve probably constructed an incorrect document/structure that’s being parsed to an operator or function. For example, you might be parsing an array where it’s expecting a document or vice versa. Suggest you compare the original code against the changes you’ve made to see where you’ve gone amiss.


Without looking at the code, I suspect that somewhere you are mixing a variable with a literal. May be you are using lastupdated in quotes but it is in fact a variable which should not have quotes.