title: What is IllegalStateException?
body: <p>I am trying to use the <a href="http://developer.teradata.com/doc/connectivity/jdbc/reference/current/samp/T20208JD.java.txt">following Fastload API</a> </p>
  
  <p>connection ... etc is perfect.</p>
  
  <hr>
  
  <p>I know exactly where it fails</p>
  
  <pre><code> ...........
   System.out.println(" Streaming " + dataFile);
   pstmtFld.setAsciiStream(1, dataStream, -1); // This line fails
   System.out.println("check the above line"); // This does not go to console
   ...........
  </code></pre>
  
  <p>Exception is</p>
  
  <p><code>Exception in thread "main" java.lang.IllegalStateException: Sample failed.</code></p>
  
  <p><code>[ODBC Teradata Driver] Invalid precision: cbColDef value out of range</code></p>
  
  <hr>
  
  <p>Here is my table that I am trying to upload. It is a <code>.csv</code> format and when I open it via notepad it look like this</p>
  
  <pre><code>1,9,Win
  2,9,Winc
  3,9,Wi
  </code></pre>
  
  <p>Why do I get this exception? How can I improve it? As far as I understand the problem is <code>pstmtFld.setAsciiStream(1, dataStream, -1);</code> does not accept the dataset somehow and throw an exception</p>