title: TableLogger.cs Throwing Storageexception 409 conflict
body: <p>Hi guys im using  <a href="https://github.com/Microsoft/BotBuilder-Azure/blob/master/CSharp/Library/Microsoft.Bot.Builder.Azure/TableLogger.cs" rel="nofollow noreferrer">TableLogger.cs</a> implementation to log conversation history to azure table storage. At first fire on my bot emulator it will run smoothly but after you stop it and do a rerun, It will encounters a storageexception 409 conflict error.</p>
  
  <p>TableLogger.cs:
  <a href="https://i.stack.imgur.com/lCXM8.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lCXM8.png" alt="enter image description here"></a></p>
  
  <p>Inner Exception:
  <a href="https://i.stack.imgur.com/H1ON5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/H1ON5.png" alt="enter image description here"></a></p>
  
  <p>im confused, 409 conflict error occurs if table already exists, whats the purpose of the createifnotexists method if it cant handle such case? how can i resolve this? thanks</p>
  
  <p>im using this code on my global.asax to save both botdata and conversation history of the user and the bot, it uses tablelogger.cs implementation.</p>
  
  <p>Global Asax:</p>
  
  <pre><code>  var tableName = ConfigurationManager.AppSettings["TableName"].ToString();
          var account = CloudStorageAccount.Parse(ConfigurationManager.ConnectionStrings["StorageConnectionString"].ConnectionString);
  
          //Azure StateData
          Conversation.UpdateContainer(
              builder =&gt;
              {
                  //azure botdata
                  builder.RegisterModule(new AzureModule(Assembly.GetExecutingAssembly()));
                  var store = new TableBotDataStore(ConfigurationManager.ConnectionStrings["StorageConnectionString"].ConnectionString);
                  builder.Register(c =&gt; store)
                     .Keyed&lt;IBotDataStore&lt;BotData&gt;&gt;(AzureModule.Key_DataStore)
                     .AsSelf()
                     .SingleInstance();
                  //azure conversation history
                  account.CreateCloudTableClient().GetTableReference(tableName).DeleteIfExists();
                  builder.RegisterModule(new TableLoggerModule(account, tableName));
              });
  </code></pre>