title: Reporting Services 2008R2 throws "native compiler error [BC30494] Line is too long."
body: <pre><code>An unexpected error occurred while compiling expressions. Native compiler return value: '[BC30494] Line is too long.'.
  </code></pre>
  
  <p>When RS throws this error, the typical scenario appears to be that there are too many text boxes on a specific data region; and the only known measure seems to be to 'minify' text box names (ie. rename TextBox345 to T345).</p>
  
  <p>My report is not <em>that</em> large (&lt;100 text boxes); but I make extensive use of the Lookup() function to set many of the textbox style properties from a styles dataset (>2500 Lookup() calls).</p>
  
  <p>So my guess is that the VB code-behind that gets generated for the Lookup() function is quite verbose and therefore breaks the 64K limit for a generated VB code block per data region.</p>
  
  <ol>
  <li><p>Can I test my hypothesis? Ie. is there a way I can inspect the generated VB code? </p></li>
  <li><p>Any suggestions as to how to fix/dodge this problem? <em>Needless to say that using abbreviated names in my case didn't cut it.</em></p></li>
  </ol>