Sounds like you have a read only cursor, and that the error handler is disabled so the error isn't caught.
>Hello all,
>
>I am building a cursor for a report. I scan all the data from a given table. For each of those records I scan I insert a record in a new cursor that will be used for the report.
>
>When the scan is finished I want to insert other records in that created cursor. The problem is that the insert is not inserting after the Scan...EndScan sequence.
>
>This is really weird.
>
>I use the same insert after the SCAN that I used in the SCAN.
>
>I really don't get it.
>
>Heeeeelp!