Error while creating bulk ES documents

3 views
Skip to first unread message

aash dhariya

unread,
Jan 8, 2013, 7:48:10 AM1/8/13
to elasti...@googlegroups.com

I am getting the following error while doing bulk save using elastictastic

Elastictastic::OperationNotAllowed: Can't re-save transient document with pending save in bulk operation

What does it mean and how do I resolve this error?

--
Thanks, 
Aash

Matthew A. Brown

unread,
Jan 8, 2013, 8:02:23 AM1/8/13
to elasti...@googlegroups.com
Hi Aash,

It means you're calling #save twice on the same new document, before the bulk transaction completes. So to fix it, just remove the duplicate call to #save.

Mat
--
 
 

aash dhariya

unread,
Jan 8, 2013, 8:13:27 AM1/8/13
to elasti...@googlegroups.com
Yeah, I was, by mistake, calling save twice.  

Thanks for your quick reply


--
 
 



--
Thanks, 
Aash
Reply all
Reply to author
Forward
0 new messages