clearcaseclearcase-ucm

Clearcase issue while "add file to source control"


I am facing a following issue while adding a file to clearcase (UCM)

---------------------------
Rational ClearCase Explorer
---------------------------
Error adding 'M:\Myviename\Myvob\Myproj\Implementation\DataSource\Deployment\BOM\SupportFiles\Service.config' to source control.

Created branch "Tm6-Proj-Dev2" from M:\Myviename\Myvob\Myproj\Implementation\DataSource\Deployment\BOM\SupportFiles\Service.config' version "\main\0".
Type manager "text_file_delta" failed create_version operation.

I tried rebase and deleted and added the file again. But facing the same. Why this occured and how to solve it?


Solution

  • You will find all the know cases for this error message in this technote "Knowledge Collection: Type manager <text_file_delta> failed create_version operation"

    The main cause is a content incompatible with a text file (line too long, or binary content).


    The OP Samselvaprabu adds:

    Our IT guys used the following command "chtype Compressed_file".
    After that it allowed to check-in.

    As they did it in my collegue system, I was not able to ask what does this mean and how it solved the issue?

    It does solve the issue (and it has nothing to do with UCM): since the text_manager doesn't recognized the content of the file as text (as illustrated, for instance, in this technote), you need to instruct ClearCase to treat it as binary content.

    cleartool chtype compressed_file <filename>
    

    For certain set of files, you could also modify the magic file to automate that process: see "Check in to ClearCase fails".