Plsql program fails while downloading attachments in Oracle r12
Hi All,
I am trying to download invoice attachments in a utl_directory . The programs is successful when there are only some attachments for a particular invoice date. But if there are more than 100 invoice attachments then the program fails. Below is the error I am getting.
Cause: FDPSTP failed due to ORA-29282: invalid file ID
ORA-06512: at "SYS.UTL_FILE", line 878
ORA-06512: at "APPS.XXX_INVOICE_PKG", line 726
ORA-29283: invalid file operation
ORA-06512: at "SYS.UTL_FILE", line 31-MAY-2021 07:13:43
Please can anyone guide.
Thanks
Anuja