Error writing logs to table storage: Microsoft.Azure.Cosmos.Table.StorageException: Element 0 in the batch returned an unexpected response code.

a07.Kenton_Benfield 1 Reputation point
2022-04-26T19:24:38.03+00:00

Azure Functions Core Tools
Core Tools Version: 3.0.4502 Commit hash: N/A (64-bit)
Function Runtime Version: 3.5.2.0

When running an Azure Function App in Visual Studio debug session, the output window will display a red exception amid other activity. This happens every time and with no specific action being taken. Also, the exception can be caused by trying to trigger, via HTTP, a specific Function. The Function does not work correctly as a result. Other co-workers are getting this issue intermittently but I get it always. What is going on and how do I solve this? It didn't used to happen, but something must have changed quietly.

Full text is below:

[2022-04-26T19:19:01.190Z] Error writing logs to table storage: Microsoft.Azure.Cosmos.Table.StorageException: Element 0 in the batch returned an unexpected response code.
[2022-04-26T19:19:01.210Z] at Microsoft.Azure.Cosmos.Table.RestExecutor.TableCommand.Executor.ExecuteAsyncT
[2022-04-26T19:19:01.213Z] at Microsoft.Azure.WebJobs.Logging.Utility.SafeExecuteAsync(CloudTable table, TableBatchOperation batch) in C:\projects\azure-webjobs-sdk-rqm4t\src\Microsoft.Azure.WebJobs.Logging\Internal\Utility.cs:line 178
[2022-04-26T19:19:01.216Z] at Microsoft.Azure.WebJobs.Logging.Utility.WriteBatchAsyncT in C:\projects\azure-webjobs-sdk-rqm4t\src\Microsoft.Azure.WebJobs.Logging\Internal\Utility.cs:line 268
[2022-04-26T19:19:01.219Z] at Microsoft.Azure.WebJobs.Logging.LogWriter.FlushIntancesAsync() in C:\projects\azure-webjobs-sdk-rqm4t\src\Microsoft.Azure.WebJobs.Logging\Internal\LogWriter.cs:line 302
[2022-04-26T19:19:01.221Z] at Microsoft.Azure.WebJobs.Logging.LogWriter.FlushCoreAsync() in C:\projects\azure-webjobs-sdk-rqm4t\src\Microsoft.Azure.WebJobs.Logging\Internal\LogWriter.cs:line 317
[2022-04-26T19:19:01.223Z] Request Information
[2022-04-26T19:19:01.225Z] RequestID:55f0779e-4898-4dbb-b9f8-f34b2e96e41b
[2022-04-26T19:19:01.237Z] RequestDate:Tue, 26 Apr 2022 19:19:01 GMT
[2022-04-26T19:19:01.241Z] StatusMessage:The table specified does not exist.
[2022-04-26T19:19:01.247Z] ErrorCode:
[2022-04-26T19:19:01.249Z] ErrorMessage:The table specified does not exist.
RequestId:55f0779e-4898-4dbb-b9f8-f34b2e96e41b
Time:2022-04-26T19:19:01.150Z
[2022-04-26T19:19:01.251Z]

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,649 questions
Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,537 questions
{count} votes