Hello !
None of the auto triggers work on our octopus server, all failed with following error which is spamming the log file:
It seems to be related to linq limitation but wonder if we can change anything in database etc to fix it:
The incoming tabular data stream (TDS) remote procedure call (RPC) protocol stream is incorrect. Too many parameters were provided in this RPC request. The maximum is 2100.
Thanks
Full error:
2017-01-09 00:00:44.1293 15 ERROR Error when running scheduled task: ProcessAutoDeployments
System.Data.SqlClient.SqlException (0x80131904): The incoming tabular data stream (TDS) remote procedure call (RPC) protocol stream is incorrect. Too many parameters were provided in this RPC request. The maximum is 2100.
at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action1 wrapCloseInAction) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose) at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady) at System.Data.SqlClient.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, SqlDataReader ds) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource
1 completion, Int32 timeout, Task& task, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)
at System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
at System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader()
at Octopus.Core.RelationalStorage.TransientFaultHandling.IDbCommandExtensions.<>c__DisplayClass5_0.b__0() in Y:\Work\refs\tags\3.4.11\source\Octopus.Core\RelationalStorage\TransientFaultHandling\IDbCommandExtensions.cs:line 67
at Octopus.Shared.TransientFaultHandling.RetryPolicy.ExecuteAction[TResult](Func1 func) in Y:\Work\refs\tags\3.4.11\source\Octopus.Shared\TransientFaultHandling\RetryPolicy.cs:line 215 at Octopus.Core.RelationalStorage.RelationalTransaction.<Stream>d__33
1.MoveNext() in Y:\Work\refs\tags\3.4.11\source\Octopus.Core\RelationalStorage\RelationalTransaction.cs:line 388
at System.Linq.Enumerable.WhereSelectEnumerableIterator2.MoveNext() at System.Collections.Generic.List
1…ctor(IEnumerable1 collection) at System.Linq.Enumerable.ToList[TSource](IEnumerable
1 source)
at Octopus.Server.Schedules.AutoDeployments.MachineFinder.GetMachinesThatHaveTriggered(Nullable1 fromDate, DateTimeOffset toDate) in Y:\Work\refs\tags\3.4.11\source\Octopus.Server\Schedules\AutoDeployments\MachineFinder.cs:line 52 at Octopus.Server.Schedules.AutoDeployments.MachineFinder.GetMachinesThatTriggeredWhileDeploymentsInProgress(Nullable
1 fromDate, DateTimeOffset toDate) in Y:\Work\refs\tags\3.4.11\source\Octopus.Server\Schedules\AutoDeployments\MachineFinder.cs:line 85
at Octopus.Server.Schedules.ProcessAutoDeployments.Trigger() in Y:\Work\refs\tags\3.4.11\source\Octopus.Server\Schedules\ProcessAutoDeployments.cs:line 68
at Octopus.Server.Schedules.Scheduler.RunTask(IRunOnASchedule task) in Y:\Work\refs\tags\3.4.11\source\Octopus.Server\Schedules\Scheduler.cs:line 135
ClientConnectionId:2443e462-bc3e-43ca-95a7-df925ae3f3f9
Error Number:8003,State:1,Class:16