I was getting the errors:
SSIS Error Code DTS_E_THREADFAILED.
Thread "SourceThread0" has exited with error code 0xC0047038.
There may be error messages posted before this with more information on why the thread has exited.
SSIS Error Code DTS_E_PRIMEOUTPUTFAILED.
The PrimeOutput method on component "SCR Read fout" (107) returned error code 0x80131502.
The component returned a failure code when the pipeline engine called PrimeOutput().
The meaning of the failure code is defined by the component, but the error is fatal and the pipeline stopped executing.
There may be error messages posted before this with more information about the failure.
This was caused by a SSIS script component, that had a vb substring error in it.
Fixing the substring exception fixed my problem.