Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 924
Samselvaprabu Avatar asked Aug 22 '12 13:08

Samselvaprabu


People also ask

How do you create a new file in ClearCase?

In Rational® ClearCase® Explorer, access the view you use for your development task. Navigate to the parent directory to which you want to add the files or directories. If the files or directories are not present, drag them to the parent directory. Select the files and directories you want to add to source control.


1 Answers

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"

  • Type manager size limitation - File too large
  • Text files that contain binary data - Contains a '\000'
  • Line exceeding 8000 bytes
  • Corrupt source container - not the highest on its branch

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>
  • Pro: it allows for checkin/checkouts
  • Cons: you won't be able to "compare with previous version" anymore.
    You might need to instruct that compressed_file to be always copied over instead of merged (see "Clearcase UCM is trying to merge pdf files")

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

like image 182
VonC Avatar answered Oct 21 '22 04:10

VonC