title: DataTable.ImportSheet operation failed.Invalid file
body: <p>I'm running Excel tests on UFT and sometimes I get the error number 20012 which is "DataTable.ImportSheet operation failed.Invalid file".</p>
  
  <p>This is my way of importing the script:</p>
  
  <pre><code>DataTable.ImportSheet filepath,scriptname,"Action2"
  </code></pre>
  
  <ul>
  <li><p>filepath is the path of my workbook which conatins many excel sheets (scripts)</p></li>
  <li><p>scriptname: the name of the script that I want to run</p></li>
  <li><p>Action2: contains all the call of all possible keywords that may script can contains.</p></li>
  </ul>
  
  <p>Any help please, why I'm getting this error.</p>
  
  <p>The problem is that this is working well for some scripts and for others not after 3 or 4 run times.</p>
  
  <p>I think the problem is on Excel itself and not on the code, are there any problems when working with Excel 2016 and UFT 12 ?  </p>