title: How to use clearfsimport to import files into an empty VOB
body: <p>I created a VOB and a snapshot view that loads it. The VOB is empty and I wanted to add some files to initialize it, but I got errors for all files that I wanted to import. Here is the details.</p>
  
  <p>The VOB is created by this command:</p>
  
  <pre><code>ct mkvob -tag /vobs/sqlite -comment "testing VOB for Sqlite" -public /var/clearcase/vobs/sqlite.vbs
  </code></pre>
  
  <p>The view is created by this command:</p>
  
  <pre><code>ct mkview -tag sqlite-dev -snapshot /home/clearcase/working/sqlite-dev
  </code></pre>
  
  <p>The config spec is:</p>
  
  <pre><code>element * CHECKEDOUT
  element * /main/LATEST 
  load /vobs/sqlite
  </code></pre>
  
  <p>I checked out the "vobs/sqlite".</p>
  
  <p>In the view directory <code>/home/clearcase/working/sqlite-dev</code>, I run <code>clearfsimport</code> to import some files:</p>
  
  <pre><code>clearfsimport -rec /home/clearcase/tmp/sqlite-3.6.23.1/* vobs/sqlite
  </code></pre>
  
  <p>But I got errors for all files and directories. Fore example, for the file "VERSIONS", I saw errors like:</p>
  
  <pre><code>Creating element "vobs/sqlite/VERSION".
  clearfsimport: Error: Unable to lookup "VERSION" in "/vobs/sqlite@@/main/CHECKEDOUT": no version selected in configuration specification.
  clearfsimport: Error: Unable to access "/vobs/sqlite/VERSION": no version selected in configuration specification.
  clearfsimport: Warning: Trouble updating name "VERSION" in snapshot view: error detected by ClearCase subsystem.
  A separate update may need to be performed in order to reflect the results of the operation in the snapshot view.
  clearfsimport: Warning: Unable to check if new version of "vobs/sqlite/VERSION" is identical.
  clearfsimport: Warning: Element "vobs/sqlite/VERSION" is no longer being loaded and will not be updated as part of this operation.
      version "/main/1".
  </code></pre>
  
  <p>Can anybody please point out what I did wrong here? Should I change the config spec somehow?</p>
  
  <hr>
  
  <p>Updates after I tried VonC's answer.</p>
  
  <p>Thanks for the response. I tried to run <code>clearfsimport</code> again and I saw some different errors:</p>
  
  <pre><code>Validating directory "/home/clearcase/working/sqlite-dev/vobs/sqlite/tool".
  clearfsimport: Error: Cannot checkout a directory when directory doesn't exist in the snapshot view.
  clearfsimport: Error: Could not checkout directory "/home/clearcase/working/sqlite-dev/vobs/sqlite/tool".
  Validating element "/home/clearcase/working/sqlite-dev/vobs/sqlite/VERSION".
  clearfsimport: Error: Could not access "/home/clearcase/working/sqlite-dev/vobs/sqlite/VERSION".
  clearfsimport: Warning: Trouble importing element "/home/clearcase/working/sqlite-dev/vobs/sqlite/VERSION".
  </code></pre>
  
  <p><code>tool</code> is a directory and <code>VERSION</code> is a file. The same error happens to all files/directories.</p>
  
  <p>The CC is installed on Linux, so I cannot try the ClearCase explorer.</p>
  
  <p>I tried the full path but I saw the same errors.</p>
  
  <p>I am running these command as root, I guess "-nset" won't help. I tried adding it but still saw the same error.</p>
  
  <p>Are there other ways to add files if I only want to add them once?</p>