I have a script that does many thing including creating a matrix from a datatable of ~17,500x40.   The entire scrpit works fine when I run in in sections but fails to create the matrix when I run it as a whole.  The issue appears to be at the step where m = dt << Get As Matrix();.  I've inserted wait(0), wait() and even wait(30) but nothing seems to fix the issue.  Any suggestions? Sorry I can't think of a way to share the code. 
 
Thanks!