Pipelined Function Terminates Unexpectedly without Reporting an Error when NO_DATA_NEEDED or OTHERS Exception are not used.

(Doc ID 1466789.1)

Last updated on JULY 05, 2017

Applies to:

PL/SQL - Version 11.2.0.2 and later
Information in this document applies to any platform.

Symptoms

A Pipelined function may terminate unexpectedly without reporting any errors if it does not return all rows.  

For example:



The pipelined function only fetches 2 rows and stops executing with an exception as no more rows are needed.   (This is similar to ORA-1403 no data found.)

 

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms