Oracle Message DRG-12401 - invalid template: query within a loop

ERRORinvalid template: query within a loop
CAUSEA CTX EXEC tag cannot occur within a CTX REPEAT tag.
ACTIONRemove the CTX EXEC tag.