TableLogger.cs Throwing Storageexception 409 conflict

Hi guys, using TableLogger.cs to record conversation history in the azure table repository. At first, the fire on my bot emulator will work smoothly, but after you stop it and try again, it will encounter a conflict error with a storageexception error.

TableLogger.cs: enter image description here

Internal exception: enter image description here

im confused, error 409 occurs if the table already exists, what is the purpose of the createifnotexists method if it cannot handle such a case? how can i solve this? thanks

im, using this code on my global.asax, in order to save both bot files and the conversation history of the user and bot, he uses the implementation of tablelogger.cs.

Global Asax:

var tableName = ConfigurationManager.AppSettings["TableName"].ToString(); var account = CloudStorageAccount.Parse(ConfigurationManager.ConnectionStrings["StorageConnectionString"].ConnectionString); //Azure StateData Conversation.UpdateContainer( builder => { //azure botdata builder.RegisterModule(new AzureModule(Assembly.GetExecutingAssembly())); var store = new TableBotDataStore(ConfigurationManager.ConnectionStrings["StorageConnectionString"].ConnectionString); builder.Register(c => store) .Keyed<IBotDataStore<BotData>>(AzureModule.Key_DataStore) .AsSelf() .SingleInstance(); //azure conversation history account.CreateCloudTableClient().GetTableReference(tableName).DeleteIfExists(); builder.RegisterModule(new TableLoggerModule(account, tableName)); }); 
0
c # azure-table-storage botframework
source share

No one has answered this question yet.

See similar questions:

3
How to get saved conversation data in Azure (Tablelogger)
2
azure table: Duplicate partition key leads to (409) conflict

or similar:

350
What is the correct way to rethrow an exception in C #?
346
Is there a difference between a throw and a throw?
14
The correct way to delete and recreate the WIndows Azure Storage table = Error 409 Conflict - Code: TableBeingDeleted
2
azure table: Duplicate partition key leads to (409) conflict
2
Azure table storage lock exception on insert: (409) Conflict
one
Azure function not working with StorageException
one
Exception from the Cote d'Azur table Exception: 409 Is the conflict unexpected?
0
Error 409 Conflict with Azure table storage and unique records
0
The remote server responded with an error: (409) Conflict
-2
CosmosDb table store functions never return

All Articles