IBM Support

Clearimport fails when importing text files that are seen as binary files into a VOB

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.

  1. Open the command line (Start > Run type cmd)

  2. Change to the view and change directory (cd) into the VOB directory that contains the file

  3. Run cleartool unco <filename>

  4. Run cleartool chtype compressed_file <filename>

  5. cd into the directory that contains the Visual SourceSafe data

  6. Run clearexport_ssafe <filename>

    Note:
    Export can be run on individual files.

  7. Set into the view and cd into the VOB directory where the file will be imported

  8. Run clearimport <c:\VSS\cvt_data>

  9. 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.

[{"Product":{"code":"SSSH27","label":"Rational ClearCase"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Converter: clearimport","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF015","label":"IRIX"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"2002.05.00;2003.06.00;7.0","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}},{"Product":{"code":"SSSH27","label":"Rational ClearCase"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Converter: clearexport_ssafe","Platform":[{"code":"","label":""}],"Version":"","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
16 June 2018

UID

swg21146932