I know I've experienced this type of error before or something related to this.

Try increasing the MAX_CURSOR parameter to 500.

Ed