title: java.lang.IllegalArgumentException: The workbook already contains a sheet of this name
body: <p>I am getting an exception when inserting more than 1.2 million records. Successfully inserted 1 047 000 records in 1 sheet and when creating the new sheet to insert the rest of the records, I am getting </p>
  
  <blockquote>
    <p>java.lang.IllegalArgumentException: The workbook already contains a
    sheet of this name</p>
  </blockquote>
  
  <p>I am using this condition for creating the new sheet </p>
  
  <pre><code>if(rowCount&gt;1047000){
      wsSheet = createSheet(sheetName, xssfWorkbook);
      createHeader(wsSheet, columsnList, xssfWorkbook, null,listResult.isNameFieldRequired());
      rowCount = 1;
  }
  </code></pre>
  
  <p>Tried of changing the <code>sheetName</code> in </p>
  
  <pre><code>wsSheet = createSheet(sheetName, xssfWorkbook) as sheetName+"1"
  </code></pre>
  
  <p>but still the same exception.</p>