Resolution:
Make sure you have write authority on the drive/folder where the file is being written to and that there is enough space left on the drive.