MongoDirect.Select Error : Command $eval failed: Error: invalid object id: length : _funcs1@:1:77 . at MongoDB.Driver.Core.WireProtocol.CommandWireProtocol`1.ProcessReply(ConnectionId connectionId, ReplyMessage`1 reply) in d:\jenkins\workspace\mongo-csharp-driver-2.0.x-build\src\MongoDB.Driver.Core\Core\WireProtocol\CommandWireProtocol.cs:line 156 at MongoDB.Driver.Core.WireProtocol.CommandWireProtocol`1.d__0.MoveNext() in d:\jenkins\workspace\mongo-csharp-driver-2.0.x-build\src\MongoDB.Driver.Core\Core\WireProtocol\CommandWireProtocol.cs:line 98 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at MongoDB.Driver.Core.Servers.ClusterableServer.ServerChannel.d__24`1.MoveNext() in d:\jenkins\workspace\mongo-csharp-driver-2.0.x-build\src\MongoDB.Driver.Core\Core\Servers\ClusterableServer.cs:line 665 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult() at MongoDB.Driver.Core.Operations.CommandOperationBase`1.d__2.MoveNext() in d:\jenkins\workspace\mongo-csharp-driver-2.0.x-build\src\MongoDB.Driver.Core\Core\Operations\CommandOperationBase.cs:line 205 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult() at MongoDB.Driver.Core.Operations.WriteCommandOperation`1.d__0.MoveNext() in d:\jenkins\workspace\mongo-csharp-driver-2.0.x-build\src\MongoDB.Driver.Core\Core\Operations\WriteCommandOperation.cs:line 55 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at MongoDB.Driver.Core.Operations.EvalOperation.d__4.MoveNext() in d:\jenkins\workspace\mongo-csharp-driver-2.0.x-build\src\MongoDB.Driver.Core\Core\Operations\EvalOperation.cs:line 146 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at MongoDB.Driver.MongoDatabase.Eval(EvalArgs args) in d:\jenkins\workspace\mongo-csharp-driver-2.0.x-build\src\MongoDB.Driver.Legacy\MongoDatabase.cs:line 332 at MongoDirect.MongoSelect.Render(IHtmlCommandElement htmlCommand) in d:\iteration source - table 13 removed\Components\Direct\MongoDirect\MongoSelect.cs:line 83