does it work if you set the fileType to file.Type....
# suitescript
m
does it work if you set the fileType to file.Type.PLAINTEXT?