Perforce sync error

I’m trying to setup UCB for the first time and I’m having trouble getting the initial sync with our Perforce repository to work.

I’m getting the following error:

Caught exception communicating with perforce. Errors encountered while force syncing: error: Usage: sync [ -n -N -p -q ] [-m max] [files…]
2: com.tek42.perforce.PerforceException: Errors encountered while force syncing: error: Usage: sync [ -n -N -p -q ] [-m max] [files…]
3: ERROR: Unable to communicate with perforce. Errors encountered while force syncing: error: Usage: sync [ -n -N -p -q ] [-m max] [files…]

Looking at my Perforce error log, it looks like the build system is generating the following Perforce command:

‘user-sync -f -p //UCB_Stormdefault-web–1618916508/…@947

I think -f and -p are mutually exclusive. If I try to run this on the command line, I get the same error:

$ p4 sync -f -p //UCB_Stormdefault-web–1618916508/…@947

Usage: sync [ -n -N -p -q ] [-m max] [files…]

@max605b - You’re absolutely correct. We have fixed this error in your project and restarted your builds. Please let us know if this happens again. Thanks!

@hypeNate : I would like to know the fix as I m facing same error in my build. I would be very grateful to you if you could tell me that

@vinodjam - sure, can you please file a support ticket at Unity ID and we’ll get that fixed for you!

@vinodjam , glad to see support is on this for you. Hopefully that helps you move forward. Let us know the status in this thread.