Fix Google Drive Primary Key Must Be Unique Error

Huge, huge props to the person that posted this information.  What a lifesaver, since our Google Overlords have been merciful and gracious absolutely useless in responding to this problem.  What a bunch of drones!  Anyhow, here's the fix that worked for me (thanks to Guru).
  1. Start Google Drive
  2. Hold the SHIFT key down and click the Google Drive systray icon, which will show the 'Enable diagnostic mode' special menu.
  3. Click 'Enable diagnostic mode' menu.
  4. Wait until Google Drive crashes and shows the "primary key must be unique" error message. Let the application shutdown.
  5. Go to "c:\Users\%username%\AppData\Local\Google\Drive" folder and open "sync_log.log".  (If it opens slowly with Windows Notepad, I recommend using Notepad++ instead)
  6. Search/find (CTRL + F) for this text: "Detected conflict while trying to download file to".
  7. After 'to' is the file name associated with the conflict. Rename it. Do this for all conflicted files (if there are more than one).
  8. Start Google Drive.
That's it.  This technique can be used to debug other Google Drive errors also.

A sigh of relief.  This has been bugging me intermittently for months.

Mad props to Guru.

Obvious caveat: These steps worked for me.  They might not work for you.  You could seriously screw up your PC.  Windows is inherently...susceptible to humans thoroughly damaging it.  In fact, if this little disclaimer creates any doubt or anxiety for you, sell your PC and buy an iPad, or whatever you're less likely to foul up and blame someone else for.  (I love my iPad Mini, but can't escape PC's thanks to the day job).  If you don't already, suck it up and assume full responsibility for your actions, like most of us used to do back in the dark ages.  Dammit, I'm starting to sound really old.

Popular posts from this blog

Best Replacement for Missing Start Menu in Windows 8 & 8.1

Windows Update 0x8024D001 fixed

Endless Loop: whoa google chrome has crashed relaunch now?