views:

1010

answers:

1

I'm trying to add a fairly large number of files to a Perforce depot. On submit, I get the following error, which I think means it's having trouble working out the file type for one of the files:

  • Locking 16380 files ...
  • Translation of file content failed near line 1
  • Submit aborted -- fix problems then use 'p4 submit -c 5851'.
  • Some file(s) could not be transferred from client.

How do I get more information about this, specifically which file it's actually having trouble with? The error isn't entirely helpful when it comes to fixing the problem.

+2  A: 

Typically, I found the answer 5 minutes after posting. Turns out the file log from p4v shows more information than the log window. Turn on file logging, and the log file will show you where the problem is.

James Sutherland
What was it choking on?
Thomas L Holaday
It had decided a new file was UTF-16, when it was actually just a random binary file. So it then failed to parse it as UTF-16 on checkin.The log let me find the file, and manually setting the file type to binary solved the problem.
James Sutherland