OpsConsole: Error returned when clicking on Push : Sequence contains more than one element

Version 1

    Details

     

    When clicking on the "Push" link between 2 tenants on the Manage Migration screen the following error message is returned:

    [SoapException: Unhandled system exception: System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.InvalidOperationException: Sequence contains more than one element
      ]
       System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall) +690429
       System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) +327
       OpsConsole.Infrastructure.SaaS.MultiInstanceManager.LoginWithTenant(String user, String key, String tenant, String role) +202
       OpsConsole.Infrastructure.Repositories.MultiInstanceManagerService..ctor(MultiInstanceManagerServiceContext context) +903

    [Exception: Unable to authenticate admin using apiKey {32 character API Key} from multi instance web service http://{Servername}/HEAT/services/MultiInstanceManager.asmx for tenant {Tenant Name}: Unhandled system exception: System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.InvalidOperationException: Sequence contains more than one element
      ]

    This article has an explanation of the error and a possible solution.

     


    Resolution

     

    The error "Sequence contains more than one element" is returned when the system is only expecting only one item to be returned but instead unexpectedly received more than one.

    In this case the error means that it found more than one user with the LoginId "Admin" in the Tenant that is referenced in the error message.

    The LoginId is meant to be unique in the HEAT SM Application.

    Change the LoginId of the incorrect "Admin" user to something other than "Admin".