When creating a template "Sorry, something went wrong" appears

When creating a template "Sorry, something went wrong" appears

Error message:


System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at Solutions2Share.Solutions.CollaborationManager.Services.Components.Security.Authenticate(SPWebApplication application, String username, String password, String& resultingSharePointLogin)
   at Solutions2Share.Solutions.CollaborationManager.Services.ServiceApplicationProxy.CollaborationManagerServiceApplicationProxy.GetChannel(Uri address)


Cause:

The SecureStore contains a user who does not have sufficient permissions.



Solution:


Store the farm account in the SecureStore under the application ID "Collaboration Manager".