5109 AE_CURSOR_NOT_CLOSED

Advantage Error Guide

The cursor from the previous execute must be closed prior to performing this operation.