2026-01-13 19:45:20 | Log4Net | Error in getArchivedmaterialsbyprofileid: Response status code does not indicate success: NotFound (404); Substatus: 0; ActivityId: 6b595664-f768-41af-8d47-8d5215369ab4; Reason: (Message: {"Errors":["Resource Not Found. Learn more: https://aka.ms/cosmosdb-tsg-not-found"]}
ActivityId: 6b595664-f768-41af-8d47-8d5215369ab4, Request URI: /apps/b8dde27f-1b43-4794-924c-9cd32c06123f/services/14056db6-4d2e-4b7f-ab9c-af0ad6d463bb/partitions/36dc9efa-35a1-4929-b993-0a5666713b28/replicas/133994560774916806s, RequestStats: , SDK: Microsoft.Azure.Documents.Common/2.14.0, Microsoft.Azure.Cosmos.Tracing.TraceData.ClientSideRequestStatisticsTraceDatum, Windows/10.0.20348 cosmos-netstandard-sdk/3.37.5);
 Microsoft.Azure.Cosmos.CosmosException : Response status code does not indicate success: NotFound (404); Substatus: 0; ActivityId: 6b595664-f768-41af-8d47-8d5215369ab4; Reason: (Message: {"Errors":["Resource Not Found. Learn more: https://aka.ms/cosmosdb-tsg-not-found"]}
ActivityId: 6b595664-f768-41af-8d47-8d5215369ab4, Request URI: /apps/b8dde27f-1b43-4794-924c-9cd32c06123f/services/14056db6-4d2e-4b7f-ab9c-af0ad6d463bb/partitions/36dc9efa-35a1-4929-b993-0a5666713b28/replicas/133994560774916806s, RequestStats: , SDK: Microsoft.Azure.Documents.Common/2.14.0, Microsoft.Azure.Cosmos.Tracing.TraceData.ClientSideRequestStatisticsTraceDatum, Windows/10.0.20348 cosmos-netstandard-sdk/3.37.5);
   at Microsoft.Azure.Cosmos.GatewayStoreClient.<ParseResponseAsync>d__9.MoveNext()
--- 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 Microsoft.Azure.Cosmos.GatewayStoreClient.<InvokeAsync>d__5.MoveNext()
--- 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 Microsoft.Azure.Cosmos.GatewayStoreModel.<ProcessMessageAsync>d__9.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at Microsoft.Azure.Cosmos.GatewayStoreModel.<ProcessMessageAsync>d__9.MoveNext()
--- 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.TaskAwaiter.ValidateEnd(Task task)
   at Microsoft.Azure.Cosmos.Routing.ClientCollectionCache.<ReadCollectionAsync>d__13.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at Microsoft.Azure.Documents.BackoffRetryUtility`1.<ExecuteRetryAsync>d__6`2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at Microsoft.Azure.Documents.ShouldRetryResult.ThrowIfDoneTrying(ExceptionDispatchInfo capturedException)
   at Microsoft.Azure.Documents.BackoffRetryUtility`1.<ExecuteRetryAsync>d__6`2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Microsoft.Azure.Documents.BackoffRetryUtility`1.<ExecuteRetryAsync>d__6`2.MoveNext()
--- 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 Microsoft.Azure.Cosmos.Common.CollectionCache.<>c__DisplayClass10_0.<<ResolveByNameAsync>b__0>d.MoveNext()
--- 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 Microsoft.Azure.Cosmos.Common.AsyncCache`2.<GetAsync>d__8.MoveNext()
--- 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 Microsoft.Azure.Cosmos.Common.CollectionCache.<ResolveByNameAsync>d__10.MoveNext()
--- 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 Microsoft.Azure.Cosmos.ClientContextCore.<GetCachedContainerPropertiesAsync>d__35.MoveNext()
--- Cosmos Diagnostics ---{"Summary":{"GatewayCalls":{"(404, 0)":1}},"name":"Typed FeedIterator ReadNextAsync","start datetime":"2026-01-13T19:45:20.887Z","duration in milliseconds":42.1054,"data":{"Client Configuration":{"Client Created Time Utc":"2026-01-13T19:45:20.8873160Z","MachineId":"hashedMachineName:ad1ef921-d161-42eb-9d95-9bba1990a59e","NumberOfClientsCreated":17095,"NumberOfActiveClients":0,"ConnectionMode":"Direct","User Agent":"cosmos-netstandard-sdk/3.46.1|10|X86|Microsoft Windows 10.0.20348 |.NET Framework 4.8.9315.0|N|","ConnectionConfig":{"gw":"(cps:50, urto:6, p:False, httpf: False)","rntbd":"(cto: 5, icto: -1, mrpc: 30, mcpe: 65535, erd: True, pr: ReuseUnicastPort)","other":"(ed:False, be:False)"},"ConsistencyConfig":"(consistency: NotSet, prgns:[], apprgn: )","ProcessorCount":4},"Synchronization Context":"System.Web.AspNetSynchronizationContext","Query Correlated ActivityId":"feba8b72-2618-45e0-92cc-cc9945d6bff9"},"children":[{"name":"Create Query Pipeline","duration in milliseconds":40.979600000000005,"children":[{"name":"Get Container Properties","duration in milliseconds":40.928200000000004,"children":[{"name":"Get Collection Cache","duration in milliseconds":19.736,"children":[{"name":"Waiting for Initialization of client to complete","duration in milliseconds":19.733}]},{"name":"Read Collection","duration in milliseconds":20.1741,"data":{"Client Side Request Stats":{"Id":"AggregatedClientSideRequestStatistics","ContactedReplicas":[],"RegionsContacted":[],"FailedReplicas":[],"AddressResolutionStatistics":[],"StoreResponseStatistics":[],"HttpResponseStats":[{"StartTimeUTC":"2026-01-13T19:45:20.9185564Z","DurationInMs":15.769900000000002,"RequestUri":"https://vitallog-eastus.documents.azure.com/dbs/theranostix/colls/ArchivedMaterialLog","ResourceType":"Collection","HttpMethod":"GET","ActivityId":"6b595664-f768-41af-8d47-8d5215369ab4","StatusCode":"NotFound","ReasonPhrase":"Not Found"}]},"Exception Message":"Message: {\"Errors\":[\"Resource Not Found. Learn more: https://aka.ms/cosmosdb-tsg-not-found\"]}\r\nActivityId: 6b595664-f768-41af-8d47-8d5215369ab4, Request URI: /apps/b8dde27f-1b43-4794-924c-9cd32c06123f/services/14056db6-4d2e-4b7f-ab9c-af0ad6d463bb/partitions/36dc9efa-35a1-4929-b993-0a5666713b28/replicas/133994560774916806s, RequestStats: , SDK: Microsoft.Azure.Documents.Common/2.14.0, Microsoft.Azure.Cosmos.Tracing.TraceData.ClientSideRequestStatisticsTraceDatum, Windows/10.0.20348 cosmos-netstandard-sdk/3.37.5"}}]}]},{"name":"Query Response Serialization","duration in milliseconds":0.0332}]}
2026-01-13 19:45:45 | Log4Net | Error in getArchivedmaterialsbyprofileid: Response status code does not indicate success: NotFound (404); Substatus: 0; ActivityId: 375fde48-58af-48b5-b627-0682568389c0; Reason: (Message: {"Errors":["Resource Not Found. Learn more: https://aka.ms/cosmosdb-tsg-not-found"]}
ActivityId: 375fde48-58af-48b5-b627-0682568389c0, Request URI: /apps/b8dde27f-1b43-4794-924c-9cd32c06123f/services/14056db6-4d2e-4b7f-ab9c-af0ad6d463bb/partitions/36dc9efa-35a1-4929-b993-0a5666713b28/replicas/133827935008860117s, RequestStats: , SDK: Microsoft.Azure.Documents.Common/2.14.0, Microsoft.Azure.Cosmos.Tracing.TraceData.ClientSideRequestStatisticsTraceDatum, Windows/10.0.20348 cosmos-netstandard-sdk/3.37.5);
 Microsoft.Azure.Cosmos.CosmosException : Response status code does not indicate success: NotFound (404); Substatus: 0; ActivityId: 375fde48-58af-48b5-b627-0682568389c0; Reason: (Message: {"Errors":["Resource Not Found. Learn more: https://aka.ms/cosmosdb-tsg-not-found"]}
ActivityId: 375fde48-58af-48b5-b627-0682568389c0, Request URI: /apps/b8dde27f-1b43-4794-924c-9cd32c06123f/services/14056db6-4d2e-4b7f-ab9c-af0ad6d463bb/partitions/36dc9efa-35a1-4929-b993-0a5666713b28/replicas/133827935008860117s, RequestStats: , SDK: Microsoft.Azure.Documents.Common/2.14.0, Microsoft.Azure.Cosmos.Tracing.TraceData.ClientSideRequestStatisticsTraceDatum, Windows/10.0.20348 cosmos-netstandard-sdk/3.37.5);
   at Microsoft.Azure.Cosmos.GatewayStoreClient.<ParseResponseAsync>d__9.MoveNext()
--- 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 Microsoft.Azure.Cosmos.GatewayStoreClient.<InvokeAsync>d__5.MoveNext()
--- 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 Microsoft.Azure.Cosmos.GatewayStoreModel.<ProcessMessageAsync>d__9.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at Microsoft.Azure.Cosmos.GatewayStoreModel.<ProcessMessageAsync>d__9.MoveNext()
--- 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.TaskAwaiter.ValidateEnd(Task task)
   at Microsoft.Azure.Cosmos.Routing.ClientCollectionCache.<ReadCollectionAsync>d__13.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at Microsoft.Azure.Documents.BackoffRetryUtility`1.<ExecuteRetryAsync>d__6`2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at Microsoft.Azure.Documents.ShouldRetryResult.ThrowIfDoneTrying(ExceptionDispatchInfo capturedException)
   at Microsoft.Azure.Documents.BackoffRetryUtility`1.<ExecuteRetryAsync>d__6`2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Microsoft.Azure.Documents.BackoffRetryUtility`1.<ExecuteRetryAsync>d__6`2.MoveNext()
--- 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 Microsoft.Azure.Cosmos.Common.CollectionCache.<>c__DisplayClass10_0.<<ResolveByNameAsync>b__0>d.MoveNext()
--- 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 Microsoft.Azure.Cosmos.Common.AsyncCache`2.<GetAsync>d__8.MoveNext()
--- 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 Microsoft.Azure.Cosmos.Common.CollectionCache.<ResolveByNameAsync>d__10.MoveNext()
--- 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 Microsoft.Azure.Cosmos.ClientContextCore.<GetCachedContainerPropertiesAsync>d__35.MoveNext()
--- Cosmos Diagnostics ---{"Summary":{"GatewayCalls":{"(404, 0)":1}},"name":"Typed FeedIterator ReadNextAsync","start datetime":"2026-01-13T19:45:45.205Z","duration in milliseconds":36.567,"data":{"Client Configuration":{"Client Created Time Utc":"2026-01-13T19:45:45.2051694Z","MachineId":"hashedMachineName:ad1ef921-d161-42eb-9d95-9bba1990a59e","NumberOfClientsCreated":17106,"NumberOfActiveClients":0,"ConnectionMode":"Direct","User Agent":"cosmos-netstandard-sdk/3.46.1|10|X86|Microsoft Windows 10.0.20348 |.NET Framework 4.8.9315.0|N|","ConnectionConfig":{"gw":"(cps:50, urto:6, p:False, httpf: False)","rntbd":"(cto: 5, icto: -1, mrpc: 30, mcpe: 65535, erd: True, pr: ReuseUnicastPort)","other":"(ed:False, be:False)"},"ConsistencyConfig":"(consistency: NotSet, prgns:[], apprgn: )","ProcessorCount":4},"Synchronization Context":"System.Web.AspNetSynchronizationContext","Query Correlated ActivityId":"2d0c17b4-8d0c-45ea-88ea-e08e12a4d6cd"},"children":[{"name":"Create Query Pipeline","duration in milliseconds":35.3557,"children":[{"name":"Get Container Properties","duration in milliseconds":35.3098,"children":[{"name":"Get Collection Cache","duration in milliseconds":15.361500000000001,"children":[{"name":"Waiting for Initialization of client to complete","duration in milliseconds":15.3567}]},{"name":"Read Collection","duration in milliseconds":19.0156,"data":{"Client Side Request Stats":{"Id":"AggregatedClientSideRequestStatistics","ContactedReplicas":[],"RegionsContacted":[],"FailedReplicas":[],"AddressResolutionStatistics":[],"StoreResponseStatistics":[],"HttpResponseStats":[{"StartTimeUTC":"2026-01-13T19:45:45.2207944Z","DurationInMs":15.679,"RequestUri":"https://vitallog-eastus.documents.azure.com/dbs/theranostix/colls/ArchivedMaterialLog","ResourceType":"Collection","HttpMethod":"GET","ActivityId":"375fde48-58af-48b5-b627-0682568389c0","StatusCode":"NotFound","ReasonPhrase":"Not Found"}]},"Exception Message":"Message: {\"Errors\":[\"Resource Not Found. Learn more: https://aka.ms/cosmosdb-tsg-not-found\"]}\r\nActivityId: 375fde48-58af-48b5-b627-0682568389c0, Request URI: /apps/b8dde27f-1b43-4794-924c-9cd32c06123f/services/14056db6-4d2e-4b7f-ab9c-af0ad6d463bb/partitions/36dc9efa-35a1-4929-b993-0a5666713b28/replicas/133827935008860117s, RequestStats: , SDK: Microsoft.Azure.Documents.Common/2.14.0, Microsoft.Azure.Cosmos.Tracing.TraceData.ClientSideRequestStatisticsTraceDatum, Windows/10.0.20348 cosmos-netstandard-sdk/3.37.5"}}]}]},{"name":"Query Response Serialization","duration in milliseconds":0.0397}]}
