Archive to Gmail Fails, but only when using the Archive Button on the Toolbar

Go to Mail.app / Preferences / Accounts / MailBoxes and under Trash, uncheck Store deleted messages on the server.

Usually this does the trick.