Troubleshooting
Problem
This technote explains how to stop the error []clearimport: Error: Type manager "text_file_delta" failed create_version operation on[] when trying to import a clearexport_ssafe data file into an IBM® Rational® ClearCase® VOB.
Cause
Clearimport of a clearexport_ssafe data file fails on certain files with the following error:
Note: The import had successfully imported other files of the same type, from the same directory as well as other directories.
text_file_delta: Error: "C:\Temp\tmp20302\bates.c" is
not a 'text file': it contains a '\000'.
This object's type does not support check-in of binary data.
Use a different type manager (such as compressed file).
clearimport: Error: Type manager "text_file_delta" failed create_version operation on.
clearimport: Error: Could not create version "2".
clearimport: Warning: Trouble importing element "src/bates.c".
The text file may contain binary data.
A known occurrence of this problem can occur if a binary text editor, such as Microsoft® Word®, inserts binary bits into the header or footer of the file.
This causes ClearCase to fail at import time because clearimport attempts to assign a text file type manager to the text file and when the type manager analyzes the file and sees binary data, it flags the file as a binary and will not store the element as a text file.
Resolving The Problem
For each file that fails with this error, the following steps will have to be completed:
Note: Each file will have a "checked out, but removed status" and the uncheckout cannot be done from ClearCase Explorer, rather it must be done from command line, see the below directions.
- Open the command line (Start > Run type cmd)
- Change to the view and change directory (cd) into the VOB directory that contains the file
- Run cleartool unco <filename>
- Run cleartool chtype compressed_file <filename>
- cd into the directory that contains the Visual SourceSafe data
- Run clearexport_ssafe <filename>
Note: Export can be run on individual files.
- Set into the view and cd into the VOB directory where the file will be imported
- Run clearimport <c:\VSS\cvt_data>
- The import will bring over the remaining versions successfully
For more information on using the clearexport_ssafe or clearimport utilities, refer to the IBM Rational ClearCase Command Reference, or run cleartool man clearexport_ssafe or cleartool man clearimport.
Was this topic helpful?
Document Information
Modified date:
16 June 2018
UID
swg21146932