go to post Neeraj Mehta · Sep 16, 2016 Hi Dmitry, Thanks for pointing that out, I'm not sure how it happened but the tablename in the query must have got changed somehow.I changed the query back to the query from the log files when it was working and it executes now. Thanks a lot for your help :-)