Phil for Humanity Phil for Humanity
A Guide for the Survival of Humankind and Helping the World, Society, and Yourself.



ClearCase Support: Common ClearCase Checkin Error Message


Here is a common error message in ClearCase when trying to check in a file.

$ cleartool ci -nc FILENAME
text_file_delta: Error: "FILENAME" is not a 'text file': it contains a line exceeding 8000 bytes.
Use a different type manager (such as compressed file).
cleartool: Error: Unable to check in "FILENAME".


Basically, this "text file delta" error message is that the ClearCase element is a text file in the database, and you are trying to check in a non-text version. For instance, you may have only created a few versions (/main/0 and /main/1), and these versions were initially mostly empty files that ClearCase assumed were text files when you created the element for the first time. However, when you finally check in a completed version with all the data in it, this final version could contain non-text data.

To resolve this problem, you have to change the element type before being able to check in the new version. If the file is a regular binary file, then I recommend changing the element type to a compressed file type with this command.


cleartool chtype compressed_file FILENAME

If the file is a Rational Rose RealTime file, then I recommend change the element type to a Rose Unit type with this command.

cleartool chtype rosert_unit FILENAME

You must be the VOB owner or element owner to run either of these commands. Don't forget to check in again afterwards.

by Phil for Humanity
on 20090110

Related Articles
 » ClearCase Support: Automate Checking of ClearCase Server Log Files
 » ClearCase Support: Common ClearCase Labeling Error Message
 » ClearCase Support: Checked Out But Removed Error