title: How to fix Perforce error "Can't clobber writable file" or Perforce Error Message - Can't Clobber Writable File
body: <pre><code>Error: Can't clobber writable file : //file name//
  </code></pre>
  <p><strong>Solution:</strong> When you try to sync a file, perforce expects your files in workspace will have read-only permissions.  If a file is not checked out (by <code>p4 edit</code>) but has write permission then it will throw the above error. <strong>Changing the file to read-only and syncing again</strong> will solve the issue.  Or try removing the workspace and get the latest revision again.</p>