When publishing a Survey in CRM Online, the error occurs on Survey Administration page:
Could not write assignments due to authentication error.
The error occurs because there is no valid Salesforce Credential configured under the Salesforce Credentials section.
Enter and validate the integration user’s credentials. Once this is done, the Survey can be published as expected.
CRM documentation: Publishing a Survey