Recently, I encountered many UTL.FILE.WRITE_ERROR , but the doc does not explain all the causes.
For example: Oracle PL/SQL UTL_FILE.PUT buffering describes one situation that causes this issue that when we called put(even we fflush after every single char) to write to a file without new line terminator.
Hope to summarize the common causes for this error. Thank you!