My colleague is having some issues when trying to export data from an Oracle database to CSV. Oddly enough, if he replaces the spaces in the field oc_cr_comments with NULL then the export works.
TRIM (REPLACE(oc_cr_comments, CHR(32), NULL))
What could be causing the export issue that is fixed by replacing spaces with NULL?
The error output is:
ERROR at line 1:
ORA-29285: file write error
ORA-06512: at "SYS.UTL_FILE", line 140
ORA-06512: at "SYS.UTL_FILE", line 785
ORA-06512: at "EFS.P_CRIMINAL_DISPOSITION", line 151
ORA-06512: at line 1