Error adding to source control. Type manager “text_file_delta” failed create_version operation

When I was trying to check in loads of Javascript files from the Dojo library into Clearcase, I received the following error dialog.

Error adding C:clearcaseprojectviewlibrarydojodojodojo.js to source control. Created banch “dev” from “C:clearcaseprojectviewlibrarydojodojodojo.js” version “main”. Type manager “text_file_data” failed create_version operation.

 I was told by the Clearcase experts in our office that there seems to be some binary data in the file which Clearcase does not like. So instead of a text file, it was marked as a binary file by setting the file type to be a compressed file using the following command.

cleartool chtype compressed_file C:clearcaseprojectviewlibrarydojodojodojo.js

Confirm by typing yes and enter. I’m able to check in the file after that.