This problem can also occur when the file does not actually exist on the disk. This can play several scenarios.
- You open the file for 'add' before the file actually exists on disk. This is possible and permitted by Perforce. If you "p4 add" the file before it exists, then try sending the list of changes before actually putting the local file in place, you will get this error.
- You open the file for "editing", and then by some mechanism, delete the file locally before sending. Again, when sending you will see this error.
Honestly, I'm a little surprised that the error mentioned in the original question was caused by a file type mismatch. I have never seen this happen. In case (1), the file that "p4 add'ed" will be added as the default "text" type if the file does not exist on disk. If the file was to be a binary file, this indicates a type mismatch, but this does not cause a failure to transfer the file from the client. It is a fact that the file does not exist.
Anyway, this is my experience. I decided that I would share cases when I saw this error.
source share