Task Bug error was due to 'group by' clause in the returntask query