question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Azure Cosmos Error when exceeding the number of columns in select statement

See original GitHub issue

We are continuously addressing and improving the SDK, if possible, make sure the problem persist in the latest SDK version.

Describe the bug When trying to execute the following code, the error is thrown (Full error text is in additional context section):

public async STT.Task<List<CheetahReading>> GetWarriorReadingsAsync(int partitionKey, double fromDepth, double toDepth)
{
var container = await _containerFactory
.GetDefaultCosmosContainer()
.GetAsync();

 List<CheetahReading> result = new List<CheetahReading>();
string sql = string.Empty;
double diff = toDepth - fromDepth;

 // Big and ugly if statement, but still WIP
// Cosmos has limitiation on query language, so therefor the weird SQL.
// Using MIN and AVG depth to align the curves better.
sql = @"SELECT
AVG(c.DEPTH) MaxDEPTH,
MAX(c.LTEN) MaxLTEN,
MAX(c.LSPD) MaxLSPD,
MAX(c.CCL) MaxCCL,
MAX(c.MITROT) MaxMITROT,
MAX(c.MITDEV) MaxMITDEV,
MAX(c.MINDIA) MaxMINDIA,
MAX(c.MAXDIA) MaxMAXDIA,
MAX(c.AVEDIA) MaxAVEDIA,
MAX(IS_DEFINED(c.QP) = true ? c.QP : 0) MaxQP,
MAX(IS_DEFINED(c.CFB) = true ? c.CFB : 0) MaxCFB,
MAX(IS_DEFINED(c.CFS) = true ? c.CFS : 0) MaxCFS,
MAX(IS_DEFINED(c.TEMP) = true ? c.TEMP : 0) MaxTEMP,
MAX(IS_DEFINED(c.ILS) = true ? c.ILS : 0) MaxILS,
MIN(c.DEPTH) MinDEPTH,
MIN(c.LTEN) MinLTEN,
MIN(c.LSPD) MinLSPD,
MIN(c.CCL) MinCCL,
MIN(c.MITROT) MinMITROT,
MIN(c.MITDEV) MinMITDEV,
MIN(c.MINDIA) MinMINDIA,
MIN(c.MAXDIA) MinMAXDIA,
MIN(c.AVEDIA) MinAVEDIA,
MIN(IS_DEFINED(c.QP) = true ? c.QP : 0) MinQP,
MIN(IS_DEFINED(c.CFB) = true ? c.CFB : 0) MinCFB,
MIN(IS_DEFINED(c.CFS) = true ? c.CFS : 0) MinCFS,
MIN(IS_DEFINED(c.TEMP) = true ? c.TEMP : 0) MinTEMP,
MIN(IS_DEFINED(c.ILS) = true ? c.ILS : 0) MinILS
FROM c
WHERE c.JobId = @id
AND c.DEPTH >= @from
AND c.DEPTH <= @to";

 if (diff < 1000)
{
sql += " GROUP BY TRUNC(c.DEPTH)";
}
else if (diff >= 1000)
{
sql += " GROUP BY TRUNC(c.DEPTH / 10)";
}

 QueryDefinition query = new QueryDefinition(sql)
.WithParameter("@id", partitionKey)
.WithParameter("@from", fromDepth)
.WithParameter("@to", toDepth);

 List<WarriorDepthReading> tmpResult = new List<WarriorDepthReading>();

 using (FeedIterator<WarriorDepthReading> resultSetIterator = container.GetItemQueryIterator<WarriorDepthReading>(
query,
requestOptions: new QueryRequestOptions()
{
PartitionKey = new PartitionKey(partitionKey),
}))
{
while (resultSetIterator.HasMoreResults)
{
FeedResponse<WarriorDepthReading> response = await resultSetIterator.ReadNextAsync();
tmpResult.AddRange(response);
}
}

 foreach (var tmp in tmpResult)
{
// Min value
result.Add(new CheetahReading
{
DEPTH = tmp.MinDEPTH,
LSPD = tmp.MinLSPD,
LTEN = tmp.MinLTEN,
CCL = tmp.MinCCL,
MITDEV = tmp.MinMITDEV,
MITROT = tmp.MinMITROT,
AVEDIA = tmp.MinAVEDIA,
MINDIA = tmp.MinMINDIA,
MAXDIA = tmp.MinMAXDIA,
QP = tmp.MinQP,
CFB = tmp.MinCFB,
CFS = tmp.MinCFS,
TEMP = tmp.MinTEMP,
ILS = tmp.MinILS,
});

 //Max value
result.Add(new CheetahReading
{
DEPTH = tmp.MaxDEPTH,
LSPD = tmp.MaxLSPD,
LTEN = tmp.MaxLTEN,
CCL = tmp.MaxCCL,
MITDEV = tmp.MaxMITDEV,
MITROT = tmp.MaxMITROT,
AVEDIA = tmp.MaxAVEDIA,
MINDIA = tmp.MaxMINDIA,
MAXDIA = tmp.MaxMAXDIA,
QP = tmp.MaxQP,
CFB = tmp.MaxCFB,
CFS = tmp.MaxCFS,
TEMP = tmp.MaxTEMP,
ILS = tmp.MaxILS,
});
}

 return result.OrderBy(x => x.DEPTH).ToList();
}

If we lower the number of select columns and the rest of the method GetWarriorReadingsAsync stays the same, the query gets executed successfully, for example,:

public async STT.Task<List<CheetahReading>> GetWarriorReadingsAsync(int partitionKey, double fromDepth, double toDepth)
{
...

sql = @"SELECT
AVG(c.DEPTH) MaxDEPTH,
MAX(c.LTEN) MaxLTEN,
MAX(c.LSPD) MaxLSPD,
MAX(c.CCL) MaxCCL,
MAX(c.MITROT) MaxMITROT,
MAX(c.MITDEV) MaxMITDEV,
MAX(c.MINDIA) MaxMINDIA,
MAX(c.MAXDIA) MaxMAXDIA,
MAX(c.AVEDIA) MaxAVEDIA,
MIN(c.DEPTH) MinDEPTH,
MIN(c.LTEN) MinLTEN,
MIN(c.LSPD) MinLSPD,
MIN(c.CCL) MinCCL,
MIN(c.MITROT) MinMITROT,
MIN(c.MITDEV) MinMITDEV,
MIN(c.MINDIA) MinMINDIA,
MIN(c.MAXDIA) MinMAXDIA,
MIN(c.AVEDIA) MinAVEDIA
FROM c
WHERE c.JobId = @id
AND c.DEPTH >= @from
AND c.DEPTH <= @to";

...
}

To Reproduce Cosmos data looks like this: image

Expected behavior There should be a warning on the maximum number of columns if that is applicable to this problem.

Actual behavior Non descriptive error thrown: An unknown error occurred while processing this request.

Environment summary SDK Version: Microsoft.Azure.Cosmos 3.20.1, .NET Standard 2.0.3 OS Version (Windows 10)

Additional context

Response status code does not indicate success: InternalServerError (500); Substatus: 0; ActivityId: dbf0edbd-7d80-49fb-9115-ce56f84ed14e; Reason: (Response status code does not indicate success: InternalServerError (500); Substatus: 0; ActivityId: dbf0edbd-7d80-49fb-9115-ce56f84ed14e; Reason: (Response status code does not indicate success: InternalServerError (500); Substatus: 0; ActivityId: dbf0edbd-7d80-49fb-9115-ce56f84ed14e; Reason: (Message: {"Errors":["An unknown error occurred while processing this request. If the issue persists, please contact Azure Support: http://aka.ms/azure-support"]}
ActivityId: dbf0edbd-7d80-49fb-9115-ce56f84ed14e, Request URI: /apps/36bb182d-27f9-412c-b700-da88dd239ac7/services/15ff138b-64ae-49d9-930b-a619b132a874/partitions/732df60d-8c6f-4d4c-ad1e-27390a4ce980/replicas/132660486141625479p/, RequestStats: Microsoft.Azure.Cosmos.Tracing.TraceData.ClientSideRequestStatisticsTraceDatum, SDK: Windows/10.0.19042 cosmos-netstandard-sdk/3.19.3);););

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
dusanjelcommented, Jul 26, 2021

@dusanjel or @zejtin can you please provide the full exception.ToString()? This should be not be causing a InternalServerError.

Hi, sorry for late response this is the full exception:


"Microsoft.Azure.Cosmos.CosmosException : Response status code does not indicate success: InternalServerError (500); Substatus: 0; ActivityId: 719bfeba-8637-42a8-b992-7d4df1a3756a; Reason: (Response status code does not indicate success: InternalServerError (500); Substatus: 0; ActivityId: 719bfeba-8637-42a8-b992-7d4df1a3756a; Reason: (Response status code does not indicate success: InternalServerError (500); Substatus: 0; ActivityId: 719bfeba-8637-42a8-b992-7d4df1a3756a; Reason: (Message: {\"Errors\":[\"An unknown error occurred while processing this request. If the issue persists, please contact Azure Support: http://aka.ms/azure-support\"]}\r\nActivityId: 719bfeba-8637-42a8-b992-7d4df1a3756a, Request URI: /apps/36bb182d-27f9-412c-b700-da88dd239ac7/services/15ff138b-64ae-49d9-930b-a619b132a874/partitions/732df60d-8c6f-4d4c-ad1e-27390a4ce980/replicas/132684167564724135s/, RequestStats: Microsoft.Azure.Cosmos.Tracing.TraceData.ClientSideRequestStatisticsTraceDatum, SDK: Windows/10.0.18362 cosmos-netstandard-sd
k/3.19.1);););\r\n   at Microsoft.Azure.Cosmos.Query.Core.Pipeline.CrossPartition.Parallel.ParallelCrossPartitionQueryPipelineStage.MoveNextAsync(ITrace trace)\r\n   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.ExecutionContextCallback(Object s)\r\n   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)\r\n   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext(Thread threadPoolThread)\r\n   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.<>c.<OutputWaitEtwEvents>b__12_0(Action innerContinuation, Task innerTask)\r\n   at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(Action action, Boolean allowInlining)\r\n   at System.Threading.Tasks.Task.RunContinuations(Object continuationObject)\r\n   at System.Threading.Tasks.Task`1.TrySetResult(TResult result)
\r\n   at Microsoft.Azure.Cosmos.Pagination.CrossPartitionRangePageAsyncEnumerator`2.MoveNextAsync(ITrace trace)\r\n   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.ExecutionContextCallback(Object s)\r\n   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)\r\n   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext(Thread threadPoolThread)\r\n   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.<>c.<OutputWaitEtwEvents>b__12_0(Action innerContinuation, Task innerTask)\r\n   at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(Action action, Boolean allowInlining)\r\n   at System.Threading.Tasks.Task.RunContinuations(Object continuationObject)\r\n   at System.Threading.Tasks.Task`1.TrySetResult(TResult result)\r\n   at System.Runtime.CompilerServices.Async
TaskMethodBuilder`1.SetResult(TResult result)\r\n   at System.Runtime.CompilerServices.AsyncValueTaskMethodBuilder`1.SetResult(TResult result)\r\n   at Microsoft.Azure.Cosmos.Pagination.PartitionRangePageAsyncEnumerator`2.MoveNextAsync(ITrace trace)\r\n   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.ExecutionContextCallback(Object s)\r\n   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)\r\n   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext(Thread threadPoolThread)\r\n   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.<>c.<OutputWaitEtwEvents>b__12_0(Action innerContinuation, Task innerTask)\r\n   at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(Action action, Boolean allowInlining)\r\n   at System.Threading.Tasks.Task.RunContinuations(Obje
ct continuationObject)\r\n   at System.Threading.Tasks.Task`1.TrySetResult(TResult result)\r\n   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetExistingTaskResult(TResult result)\r\n   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetResult(TResult result)\r\n   at Microsoft.Azure.Cosmos.Pagination.BufferedPartitionRangePageAsyncEnumerator`2.GetNextPageAsync(ITrace trace, CancellationToken cancellationToken)\r\n   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.ExecutionContextCallback(Object s)\r\n   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)\r\n   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext(Thread threadPoolThread)\r\n   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.<>c.<OutputWaitEtwEvents>b__12_0(Action innerContinua
tion, Task innerTask)\r\n   at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(Action action, Boolean allowInlining)\r\n   at System.Threading.Tasks.Task.RunContinuations(Object continuationObject)\r\n   at System.Threading.Tasks.Task`1.TrySetResult(TResult result)\r\n   at System.Runtime.CompilerServices.AsyncValueTaskMethodBuilder.SetResult()\r\n   at Microsoft.Azure.Cosmos.Pagination.BufferedPartitionRangePageAsyncEnumerator`2.PrefetchAsync(ITrace trace, CancellationToken cancellationToken)\r\n   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.ExecutionContextCallback(Object s)\r\n   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)\r\n   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext(Thread threadPoolThread)\r\n   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext()\r\n   at System.Runtime.Compiler
Services.TaskAwaiter.<>c.<OutputWaitEtwEvents>b__12_0(Action innerContinuation, Task innerTask)\r\n   at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(Action action, Boolean allowInlining)\r\n   at System.Threading.Tasks.Task.RunContinuations(Object continuationObject)\r\n   at System.Threading.Tasks.Task`1.TrySetResult(TResult result)\r\n   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetResult(TResult result)\r\n   at System.Runtime.CompilerServices.AsyncValueTaskMethodBuilder`1.SetResult(TResult result)\r\n   at Microsoft.Azure.Cosmos.Pagination.PartitionRangePageAsyncEnumerator`2.MoveNextAsync(ITrace trace)\r\n   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.ExecutionContextCallback(Object s)\r\n   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)\r\n   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext(Thread threadPoolThr
ead)\r\n   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.<>c.<OutputWaitEtwEvents>b__12_0(Action innerContinuation, Task innerTask)\r\n   at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(Action action, Boolean allowInlining)\r\n   at System.Threading.Tasks.Task.RunContinuations(Object continuationObject)\r\n   at System.Threading.Tasks.Task`1.TrySetResult(TResult result)\r\n   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetExistingTaskResult(TResult result)\r\n   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetResult(TResult result)\r\n   at Microsoft.Azure.Cosmos.Pagination.NetworkAttachedDocumentContainer.MonadicQueryAsync(SqlQuerySpec sqlQuerySpec, FeedRangeState`1 feedRangeState, QueryPaginationOptions queryPaginationOptions, ITrace trace, CancellationToken cancellationToken)\r\n   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachine
Box`1.ExecutionContextCallback(Object s)\r\n   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)\r\n   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext(Thread threadPoolThread)\r\n   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.<>c.<OutputWaitEtwEvents>b__12_0(Action innerContinuation, Task innerTask)\r\n   at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(Action action, Boolean allowInlining)\r\n   at System.Threading.Tasks.Task.RunContinuations(Object continuationObject)\r\n   at System.Threading.Tasks.Task`1.TrySetResult(TResult result)\r\n   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetExistingTaskResult(TResult result)\r\n   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetResult(TResult result)\r\n   at Microsoft.Azure.Cosmos.CosmosQueryCli
entCore.ExecuteItemQueryAsync(String resourceUri, ResourceType resourceType, OperationType operationType, Guid clientQueryCorrelationId, FeedRange feedRange, QueryRequestOptions requestOptions, SqlQuerySpec sqlQuerySpec, String continuationToken, Boolean isContinuationExpected, Int32 pageSize, ITrace trace, CancellationToken cancellationToken)\r\n   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.ExecutionContextCallback(Object s)\r\n   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)\r\n   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext(Thread threadPoolThread)\r\n   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.<>c.<OutputWaitEtwEvents>b__12_0(Action innerContinuation, Task innerTask)\r\n   at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(
Action action, Boolean allowInlining)\r\n   at System.Threading.Tasks.Task.RunContinuations(Object continuationObject)\r\n   at System.Threading.Tasks.Task`1.TrySetResult(TResult result)\r\n   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetResult(TResult result)\r\n   at Microsoft.Azure.Cosmos.Handlers.RequestInvokerHandler.SendAsync(String resourceUriString, ResourceType resourceType, OperationType operationType, RequestOptions requestOptions, ContainerInternal cosmosContainerCore, FeedRange feedRange, Stream streamPayload, Action`1 requestEnricher, ITrace trace, CancellationToken cancellationToken)\r\n   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.ExecutionContextCallback(Object s)\r\n   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)\r\n   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext(Thread threadPoolThread)\r\n   at System.Runtime.
CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.<>c.<OutputWaitEtwEvents>b__12_0(Action innerContinuation, Task innerTask)\r\n   at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(Action action, Boolean allowInlining)\r\n   at System.Threading.Tasks.Task.RunContinuations(Object continuationObject)\r\n   at System.Threading.Tasks.Task`1.TrySetResult(TResult result)\r\n   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetResult(TResult result)\r\n   at Microsoft.Azure.Cosmos.Handlers.RequestInvokerHandler.SendAsync(RequestMessage request, CancellationToken cancellationToken)\r\n   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.ExecutionContextCallback(Object s)\r\n   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)\r\n   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMach
ineBox`1.MoveNext(Thread threadPoolThread)\r\n   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.<>c.<OutputWaitEtwEvents>b__12_0(Action innerContinuation, Task innerTask)\r\n   at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(Action action, Boolean allowInlining)\r\n   at System.Threading.Tasks.Task.RunContinuations(Object continuationObject)\r\n   at System.Threading.Tasks.Task`1.TrySetResult(TResult result)\r\n   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetResult(TResult result)\r\n   at Microsoft.Azure.Cosmos.RequestHandler.SendAsync(RequestMessage request, CancellationToken cancellationToken)\r\n   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.ExecutionContextCallback(Object s)\r\n   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)\r\n   at System.Runtime.Compi
lerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext(Thread threadPoolThread)\r\n   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.<>c.<OutputWaitEtwEvents>b__12_0(Action innerContinuation, Task innerTask)\r\n   at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(Action action, Boolean allowInlining)\r\n   at System.Threading.Tasks.Task.RunContinuations(Object continuationObject)\r\n   at System.Threading.Tasks.Task`1.TrySetResult(TResult result)\r\n   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetResult(TResult result)\r\n   at Microsoft.Azure.Cosmos.RequestHandler.SendAsync(RequestMessage request, CancellationToken cancellationToken)\r\n   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.ExecutionContextCallback(Object s)\r\n   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback ca
llback, Object state)\r\n   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext(Thread threadPoolThread)\r\n   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.<>c.<OutputWaitEtwEvents>b__12_0(Action innerContinuation, Task innerTask)\r\n   at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(Action action, Boolean allowInlining)\r\n   at System.Threading.Tasks.Task.RunContinuations(Object continuationObject)\r\n   at System.Threading.Tasks.Task`1.TrySetResult(TResult result)\r\n   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetResult(TResult result)\r\n   at Microsoft.Azure.Cosmos.Handlers.AbstractRetryHandler.SendAsync(RequestMessage request, CancellationToken cancellationToken)\r\n   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.ExecutionContextCallback(Object s)\r\n   at System.Threading.ExecutionContext
.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)\r\n   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext(Thread threadPoolThread)\r\n   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.<>c.<OutputWaitEtwEvents>b__12_0(Action innerContinuation, Task innerTask)\r\n   at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(Action action, Boolean allowInlining)\r\n   at System.Threading.Tasks.Task.RunContinuations(Object continuationObject)\r\n   at System.Threading.Tasks.Task`1.TrySetResult(TResult result)\r\n   at Microsoft.Azure.Cosmos.Handlers.AbstractRetryHandler.ExecuteHttpRequestAsync(Func`1 callbackMethod, Func`3 callShouldRetry, Func`3 callShouldRetryException, CancellationToken cancellationToken)\r\n   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.ExecutionContextCallback(Object s
)\r\n   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)\r\n   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext(Thread threadPoolThread)\r\n   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.<>c.<OutputWaitEtwEvents>b__12_0(Action innerContinuation, Task innerTask)\r\n   at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(Action action, Boolean allowInlining)\r\n   at System.Threading.Tasks.Task.RunContinuations(Object continuationObject)\r\n   at System.Threading.Tasks.Task`1.TrySetResult(TResult result)\r\n   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetResult(TResult result)\r\n   at Microsoft.Azure.Cosmos.RequestHandler.SendAsync(RequestMessage request, CancellationToken cancellationToken)\r\n   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.Async
StateMachineBox`1.ExecutionContextCallback(Object s)\r\n   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)\r\n   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext(Thread threadPoolThread)\r\n   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.<>c.<OutputWaitEtwEvents>b__12_0(Action innerContinuation, Task innerTask)\r\n   at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(Action action, Boolean allowInlining)\r\n   at System.Threading.Tasks.Task.RunContinuations(Object continuationObject)\r\n   at System.Threading.Tasks.Task`1.TrySetResult(TResult result)\r\n   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetResult(TResult result)\r\n   at Microsoft.Azure.Cosmos.Handlers.RouterHandler.SendAsync(RequestMessage request, CancellationToken cancellationToken)\r\n   at Sys
tem.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.ExecutionContextCallback(Object s)\r\n   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)\r\n   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext(Thread threadPoolThread)\r\n   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.<>c.<OutputWaitEtwEvents>b__12_0(Action innerContinuation, Task innerTask)\r\n   at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(Action action, Boolean allowInlining)\r\n   at System.Threading.Tasks.Task.RunContinuations(Object continuationObject)\r\n   at System.Threading.Tasks.Task`1.TrySetResult(TResult result)\r\n   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetResult(TResult result)\r\n   at Microsoft.Azure.Cosmos.Handlers.TransportHandler.SendAsync(RequestMess
age request, CancellationToken cancellationToken)\r\n   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.ExecutionContextCallback(Object s)\r\n   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)\r\n   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext(Thread threadPoolThread)\r\n   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.<>c.<OutputWaitEtwEvents>b__12_0(Action innerContinuation, Task innerTask)\r\n   at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(Action action, Boolean allowInlining)\r\n   at System.Threading.Tasks.Task.RunContinuations(Object continuationObject)\r\n   at System.Threading.Tasks.Task.FinishStageThree()\r\n   at System.Threading.Tasks.Task.FinishStageTwo()\r\n   at System.Threading.Tasks.Task.FinishSlow(Boolean userDelegat
eExecute)\r\n   at System.Threading.Tasks.Task.TrySetException(Object exceptionObject)\r\n   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetException(Exception exception)\r\n   at Microsoft.Azure.Cosmos.Handlers.TransportHandler.ProcessMessageAsync(RequestMessage request, CancellationToken cancellationToken)\r\n   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.ExecutionContextCallback(Object s)\r\n   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)\r\n   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext(Thread threadPoolThread)\r\n   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.<>c.<OutputWaitEtwEvents>b__12_0(Action innerContinuation, Task innerTask)\r\n   at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(Action action, Boole
an allowInlining)\r\n   at System.Threading.Tasks.Task.RunContinuations(Object continuationObject)\r\n   at System.Threading.Tasks.Task.FinishStageThree()\r\n   at System.Threading.Tasks.Task.FinishStageTwo()\r\n   at System.Threading.Tasks.Task.FinishSlow(Boolean userDelegateExecute)\r\n   at System.Threading.Tasks.Task.TrySetException(Object exceptionObject)\r\n   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetException(Exception exception)\r\n   at Microsoft.Azure.Documents.StoreClient.ProcessMessageAsync(DocumentServiceRequest request, CancellationToken cancellationToken, IRetryPolicy retryPolicy, Func`2 prepareRequestAsyncDelegate)\r\n   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.ExecutionContextCallback(Object s)\r\n   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)\r\n   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext(Thread threa
dPoolThread)\r\n   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.<>c.<OutputWaitEtwEvents>b__12_0(Action innerContinuation, Task innerTask)\r\n   at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(Action action, Boolean allowInlining)\r\n   at System.Threading.Tasks.Task.RunContinuations(Object continuationObject)\r\n   at System.Threading.Tasks.Task.FinishStageThree()\r\n   at System.Threading.Tasks.Task.FinishStageTwo()\r\n   at System.Threading.Tasks.Task.FinishSlow(Boolean userDelegateExecute)\r\n   at System.Threading.Tasks.Task.TrySetException(Object exceptionObject)\r\n   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetException(Exception exception)\r\n   at Microsoft.Azure.Documents.RequestRetryUtility.ProcessRequestAsync[TRequest,IRetriableResponse](Func`1 executeAsync, Func`1 prepareRequest, IRequestRetryPolicy`2 policy, CancellationToken cancellationToken, Func`1 inBac
koffAlternateCallbackMethod, Nullable`1 minBackoffForInBackoffCallback)\r\n   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.ExecutionContextCallback(Object s)\r\n   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)\r\n   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext(Thread threadPoolThread)\r\n   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext()\r\n   at System.Runtime.CompilerServices.YieldAwaitable.YieldAwaiter.<>c.<OutputCorrelationEtwEvent>b__6_0(Action innerContinuation, Task continuationIdTask)\r\n   at System.Runtime.CompilerServices.YieldAwaitable.YieldAwaiter.RunAction(Object state)\r\n   at System.Threading.QueueUserWorkItemCallbackDefaultContext.Execute()\r\n   at System.Threading.ThreadPoolWorkQueue.Dispatch()\r\n   at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()\r\n\r\n--- Cosmos Di
agnostics ---{\"name\":\"Typed FeedIterator ReadNextAsync\",\"id\":\"b315f99d-2dc4-4ecb-95bb-3572bdad1bf3\",\"caller info\":{\"member\":\"OperationHelperWithRootTraceAsync\",\"file\":\"ClientContextCore.cs\",\"line\":219},\"start time\":\"05:58:07:709\",\"duration in milliseconds\":1130.6353,\"data\":{\"Client Configuration\":{\"Client Created Time Utc\":\"2021-07-26T05:57:34.4635988Z\",\"NumberOfClientsCreated\":1,\"User Agent\":\"cosmos-netstandard-sdk/3.19.0|3.19.1|02|X64|Microsoft Windows 10.0.18362|.NET Core 3.1.17|N|\",\"ConnectionConfig\":{\"gw\":\"(cps:50, urto:10, p:False, httpf: False)\",\"rntbd\":\"(cto: 5, icto: -1, mrpc: 30, mcpe: 65535, erd: False, pr: ReuseUnicastPort)\",\"other\":\"(ed:False, be:False)\"},\"ConsistencyConfig\":\"(consistency: NotSet, prgns:[])\"}},\"children\":[{\"name\":\"Create Query Pipeline\",\"id\":\"d0e632f5-37d8-4c6b-8141-35a920d2cd4e\",\"caller info\":{\"member\":\"TryCreateCoreContextAsync\",\"file\":\"CosmosQueryExecutionContextFactory.cs\",\"line\":85},\"start time\"
:\"05:58:07:743\",\"duration in milliseconds\":400.122,\"children\":[{\"name\":\"Get Container Properties\",\"id\":\"6294cf7f-3963-46e6-9552-6f582c9bbb37\",\"caller info\":{\"member\":\"GetCachedContainerPropertiesAsync\",\"file\":\"ClientContextCore.cs\",\"line\":366},\"start time\":\"05:58:07:750\",\"duration in milliseconds\":110.6937,\"children\":[{\"name\":\"Get Collection Cache\",\"id\":\"a1e20435-2b48-449e-94ff-da5a11e95600\",\"caller info\":{\"member\":\"GetCollectionCacheAsync\",\"file\":\"DocumentClient.cs\",\"line\":546},\"start time\":\"05:58:07:753\",\"duration in milliseconds\":0.0359},{\"name\":\"Read Collection\",\"id\":\"14482075-1b9d-49c7-b7dd-396b10ed05b4\",\"caller info\":{\"member\":\"ReadCollectionAsync\",\"file\":\"ClientCollectionCache.cs\",\"line\":68},\"start time\":\"05:58:07:778\",\"duration in milliseconds\":74.186,\"data\":{\"Client Side Request Stats\":{\"Id\":\"AggregatedClientSideRequestStatistics\",\"ContactedReplicas\":[],\"RegionsContacted\":[],\"FailedReplicas\":[],\"Addres
sResolutionStatistics\":[],\"StoreResponseStatistics\":[],\"HttpResponseStats\":[{\"StartTimeUTC\":\"2021-07-26T05:58:07.8497805Z\",\"EndTimeUTC\":\"2021-07-26T05:58:07.8497849Z\",\"RequestUri\":\"https://qdom-digital-dev-westeurope.documents.azure.com/dbs/StreamedData/colls/CheetahData\",\"ResourceType\":\"Collection\",\"HttpMethod\":\"GET\",\"ActivityId\":\"f303f66e-b5f6-4263-bbab-e4561a0b6675\",\"StatusCode\":\"OK\"}]}}}]},{\"name\":\"Service Interop Query Plan\",\"id\":\"50b54e8c-9bf1-4dad-a2c4-7641cb4b7297\",\"caller info\":{\"member\":\"GetQueryPlanWithServiceInteropAsync\",\"file\":\"QueryPlanRetriever.cs\",\"line\":58},\"start time\":\"05:58:07:874\",\"duration in milliseconds\":107.8045},{\"name\":\"Get Partition Key Ranges\",\"id\":\"4626517b-6ba7-4123-b61c-a2ee7e5c79db\",\"caller info\":{\"member\":\"GetTargetPartitionKeyRangesAsync\",\"file\":\"CosmosQueryClientCore.cs\",\"line\":242},\"start time\":\"05:58:07:988\",\"duration in milliseconds\":129.6135,\"children\":[{\"name\":\"Try Get Overlapping
 Ranges\",\"id\":\"9e090cee-d461-42a6-904a-3a2e12f2cd8f\",\"caller info\":{\"member\":\"TryGetOverlappingRangesAsync\",\"file\":\"PartitionKeyRangeCache.cs\",\"line\":53},\"start time\":\"05:58:07:997\",\"duration in milliseconds\":119.16}]}]},{\"name\":\"MoveNextAsync\",\"id\":\"ed999572-04ef-45e6-ac5b-0644bfc1fc4e\",\"caller info\":{\"member\":\"MoveNextAsync\",\"file\":\"CrossPartitionRangePageAsyncEnumerator.cs\",\"line\":113},\"start time\":\"05:58:08:162\",\"duration in milliseconds\":644.507,\"children\":[{\"name\":\"Prefetching\",\"id\":\"3178f985-cfec-428f-8e50-f969ae641930\",\"caller info\":{\"member\":\"PrefetchInParallelAsync\",\"file\":\"ParallelPrefetch.cs\",\"line\":31},\"start time\":\"05:58:08:174\",\"duration in milliseconds\":0.1233},{\"name\":\"[,FF) move next\",\"id\":\"f047d6ac-59a6-4de5-9541-e455ed2caedf\",\"caller info\":{\"member\":\"MoveNextAsync\",\"file\":\"PartitionRangePageAsyncEnumerator.cs\",\"line\":49},\"start time\":\"05:58:08:180\",\"duration in milliseconds\":619.9878,\"chi
ldren\":[{\"name\":\"Prefetch\",\"id\":\"939e809e-4ac2-4ce9-b275-636688815473\",\"caller info\":{\"member\":\"PrefetchAsync\",\"file\":\"BufferedPartitionRangePageAsyncEnumerator.cs\",\"line\":50},\"start time\":\"05:58:08:182\",\"duration in milliseconds\":617.0868,\"children\":[{\"name\":\"[,FF) move next\",\"id\":\"b7067985-c024-414b-a932-891477030695\",\"caller info\":{\"member\":\"MoveNextAsync\",\"file\":\"PartitionRangePageAsyncEnumerator.cs\",\"line\":49},\"start time\":\"05:58:08:182\",\"duration in milliseconds\":615.8042,\"children\":[{\"name\":\"Microsoft.Azure.Cosmos.Handlers.RequestInvokerHandler\",\"id\":\"bf25eb86-66a6-4bd2-8e35-b571eada0e33\",\"start time\":\"05:58:08:186\",\"duration in milliseconds\":606.2182,\"children\":[{\"name\":\"Microsoft.Azure.Cosmos.Handlers.DiagnosticsHandler\",\"id\":\"edae29ac-efd0-4589-ba89-e0a2424a5ebb\",\"start time\":\"05:58:08:190\",\"duration in milliseconds\":601.8325,\"data\":{\"CPU Load History\":{\"CPU History\":\"(2021-07-26T05:57:37.4500604Z 54.819), (
2021-07-26T05:57:48.7305229Z 15.651), (2021-07-26T05:57:58.1315280Z 26.776), (2021-07-26T05:58:07.7030075Z 29.048)\"}},\"children\":[{\"name\":\"Microsoft.Azure.Cosmos.Handlers.RetryHandler\",\"id\":\"6577365d-d584-40ad-a16f-7747223446ce\",\"start time\":\"05:58:08:190\",\"duration in milliseconds\":601.8042,\"children\":[{\"name\":\"Microsoft.Azure.Cosmos.Handlers.RouterHandler\",\"id\":\"eb40e82d-f544-43ff-a7fe-e31389f5fb1d\",\"start time\":\"05:58:08:190\",\"duration in milliseconds\":586.8757,\"children\":[{\"name\":\"Microsoft.Azure.Cosmos.Handlers.TransportHandler\",\"id\":\"b9ed3d7d-5e98-453e-be71-b35360958a31\",\"start time\":\"05:58:08:190\",\"duration in milliseconds\":586.8566,\"children\":[{\"name\":\"Microsoft.Azure.Documents.ServerStoreModel Transport Request\",\"id\":\"adba6d32-6377-4f94-957e-aeb58fec42c1\",\"caller info\":{\"member\":\"ProcessMessageAsync\",\"file\":\"TransportHandler.cs\",\"line\":109},\"start time\":\"05:58:08:191\",\"duration in milliseconds\":578.5168,\"data\":{\"Client Sid
e Request Stats\":{\"Id\":\"AggregatedClientSideRequestStatistics\",\"ContactedReplicas\":[],\"RegionsContacted\":[\"https://qdom-digital-dev-westeurope.documents.azure.com/\"],\"FailedReplicas\":[],\"AddressResolutionStatistics\":[{\"StartTimeUTC\":\"2021-07-26T05:58:08.2073093Z\",\"EndTimeUTC\":\"2021-07-26T05:58:08.2509003Z\",\"TargetEndpoint\":\"https://qdom-digital-dev-westeurope.documents.azure.com//addresses/?$resolveFor=dbs%2fg54UAA%3d%3d%2fcolls%2fg54UAJvpDiQ%3d%2fdocs&$filter=protocol eq rntbd&$partitionKeyRangeIds=0\"}],\"StoreResponseStatistics\":[{\"ResponseTimeUTC\":\"2021-07-26T05:58:08.7583003Z\",\"ResourceType\":\"Document\",\"OperationType\":\"Query\",\"LocationEndpoint\":\"https://qdom-digital-dev-westeurope.documents.azure.com/\",\"StoreResult\":{\"ActivityId\":\"719bfeba-8637-42a8-b992-7d4df1a3756a\",\"StatusCode\":\"InternalServerError\",\"SubStatusCode\":\"Unknown\",\"LSN\":4418028,\"PartitionKeyRangeId\":\"0\",\"GlobalCommittedLSN\":4418027,\"ItemLSN\":-1,\"UsingLocalLSN\":true,\"Quorum
AckedLSN\":-1,\"SessionToken\":\"-1#4418028\",\"CurrentWriteQuorum\":-1,\"CurrentReplicaSetSize\":-1,\"NumberOfReadRegions\":0,\"IsClientCpuOverloaded\":false,\"IsValid\":true,\"StorePhysicalAddress\":\"rntbd://cdb-ms-prod-westeurope1-fd51.documents.azure.com:14330/apps/36bb182d-27f9-412c-b700-da88dd239ac7/services/15ff138b-64ae-49d9-930b-a619b132a874/partitions/732df60d-8c6f-4d4c-ad1e-27390a4ce980/replicas/132684167564724135s/\",\"RequestCharge\":1,\"BELatencyInMs\":\"7.236\",\"TransportException\":null}}],\"HttpResponseStats\":[{\"StartTimeUTC\":\"2021-07-26T05:58:08.2496616Z\",\"EndTimeUTC\":\"2021-07-26T05:58:08.2496622Z\",\"RequestUri\":\"https://qdom-digital-dev-westeurope.documents.azure.com//addresses/?$resolveFor=dbs%2fg54UAA%3d%3d%2fcolls%2fg54UAJvpDiQ%3d%2fdocs&$filter=protocol eq rntbd&$partitionKeyRangeIds=0\",\"ResourceType\":\"Document\",\"HttpMethod\":\"GET\",\"ActivityId\":\"719bfeba-8637-42a8-b992-7d4df1a3756a\",\"StatusCode\":\"OK\"}]},\"Point Operation Statistics\":{\"Id\":\"PointOperationS
tatistics\",\"ActivityId\":\"719bfeba-8637-42a8-b992-7d4df1a3756a\",\"ResponseTimeUtc\":\"2021-07-26T05:58:08.7761448Z\",\"StatusCode\":500,\"SubStatusCode\":0,\"RequestCharge\":1,\"RequestUri\":\"dbs/StreamedData/colls/CheetahData\",\"ErrorMessage\":\"Microsoft.Azure.Documents.InternalServerErrorException: Message: {\\\"Errors\\\":[\\\"An unknown error occurred while processing this request. If the issue persists, please contact Azure Support: http://aka.ms/azure-support\\\"]}\\r\\nActivityId: 719bfeba-8637-42a8-b992-7d4df1a3756a, Request URI: /apps/36bb182d-27f9-412c-b700-da88dd239ac7/services/15ff138b-64ae-49d9-930b-a619b132a874/partitions/732df60d-8c6f-4d4c-ad1e-27390a4ce980/replicas/132684167564724135s/, RequestStats: Microsoft.Azure.Cosmos.Tracing.TraceData.ClientSideRequestStatisticsTraceDatum, SDK: Windows/10.0.18362 cosmos-netstandard-sdk/3.19.1\\r\\n   at Microsoft.Azure.Documents.StoreResult.ToResponse(RequestChargeTracker requestChargeTracker)\\r\\n   at Microsoft.Azure.Documents.ConsistencyReader.
ReadSessionAsync(DocumentServiceRequest entity, ReadMode readMode)\\r\\n   at Microsoft.Azure.Documents.BackoffRetryUtility`1.ExecuteRetryAsync(Func`1 callbackMethod, Func`3 callShouldRetry, Func`1 inBackoffAlternateCallbackMethod, TimeSpan minBackoffForInBackoffCallback, CancellationToken cancellationToken, Action`1 preRetryCallback)\\r\\n   at Microsoft.Azure.Documents.ShouldRetryResult.ThrowIfDoneTrying(ExceptionDispatchInfo capturedException)\\r\\n   at Microsoft.Azure.Documents.BackoffRetryUtility`1.ExecuteRetryAsync(Func`1 callbackMethod, Func`3 callShouldRetry, Func`1 inBackoffAlternateCallbackMethod, TimeSpan minBackoffForInBackoffCallback, CancellationToken cancellationToken, Action`1 preRetryCallback)\\r\\n   at Microsoft.Azure.Documents.ReplicatedResourceClient.<>c__DisplayClass30_0.<<InvokeAsync>b__0>d.MoveNext()\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n   at Microsoft.Azure.Documents.RequestRetryUtility.ProcessRequestAsync[TRequest,IRetriableResponse](
Func`1 executeAsync, Func`1 prepareRequest, IRequestRetryPolicy`2 policy, CancellationToken cancellationToken, Func`1 inBackoffAlternateCallbackMethod, Nullable`1 minBackoffForInBackoffCallback)\\r\\n   at Microsoft.Azure.Documents.ShouldRetryResult.ThrowIfDoneTrying(ExceptionDispatchInfo capturedException)\\r\\n   at Microsoft.Azure.Documents.RequestRetryUtility.ProcessRequestAsync[TRequest,IRetriableResponse](Func`1 executeAsync, Func`1 prepareRequest, IRequestRetryPolicy`2 policy, CancellationToken cancellationToken, Func`1 inBackoffAlternateCallbackMethod, Nullable`1 minBackoffForInBackoffCallback)\\r\\n   at Microsoft.Azure.Documents.StoreClient.ProcessMessageAsync(DocumentServiceRequest request, CancellationToken cancellationToken, IRetryPolicy retryPolicy, Func`2 prepareRequestAsyncDelegate)\\r\\n   at Microsoft.Azure.Cosmos.Handlers.TransportHandler.ProcessMessageAsync(RequestMessage request, CancellationToken cancellationToken)\\r\\n   at Microsoft.Azure.Cosmos.Handlers.TransportHandler.SendAsync(Requ
estMessage request, CancellationToken cancellationToken)\",\"RequestSessionToken\":null,\"ResponseSessionToken\":\"0:-1#4418028\",\"BELatencyInMs\":\"7.236\"}}}]}]}]}]}]},{\"name\":\"Get Cosmos Element Response\",\"id\":\"1843b22c-2d18-4ae2-b6ec-0b16112ea488\",\"caller info\":{\"member\":\"GetCosmosElementResponse\",\"file\":\"CosmosQueryClientCore.cs\",\"line\":284},\"start time\":\"05:58:08:792\",\"duration in milliseconds\":3.235}]}]}]}]},{\"name\":\"POCO Materialization\",\"id\":\"37ccf9e6-e154-4864-b11f-2a623da7978d\",\"caller info\":{\"member\":\"ReadNextAsync\",\"file\":\"FeedIteratorCore.cs\",\"line\":247},\"start time\":\"05:58:08:833\",\"duration in milliseconds\":6.6993}]}"
1reaction
timsander1commented, Aug 18, 2021

Hey @zejtin, let me know if you were able to get this issue resolved. Based on the query you shared, I suspect that you’ve hit the limit in number of aggregates per GROUP BY query. This is documented here: https://docs.microsoft.com/azure/cosmos-db/sql/sql-query-group-by#remarks.

We will work on making this error message more specific. Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to increase the limit of columns per select statement in ...
I have dynamic query which has more than 4096 columns in select statement and I am getting this error while executing this. The...
Read more >
Azure Cosmos DB Number of Columns Limit
According to my test(I tired to add 260 properties into an entity), Azure Cosmos DB Table API accept that properties exceed 255. enter...
Read more >
Increasing or Decreasing Scale for Azure Cosmos DB
We cannot set a scale of 750 RUs for our SQL API database in our Azure Cosmos DB. We see that the error...
Read more >
Features and pitfalls of Azure Cosmos DB | by Yuriy Ivon
⚠️ In case a database exceeds the provisioned throughput while running a query — it throttles incoming requests by immediately throwing special HTTP...
Read more >
Azure Cosmos Query | Matillion ETL Docs
Provides an upper limit on the number of rows retrieved from the Azure Cosmos DB server. Blank means fetch all records. Type, Select,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found