none
Issue when rescanning host or cluster - Failed to convert parameter value from a UInt32 to a Int32

    General discussion

  • Hi

    We are getting errors when rescanning Hyperv hosts ->

    --------------- Bucketing Parameters ---------------
    ----------------------------------------------------
    EventType=VMM20
    P1(appName)=vmmservice.exe
    P2(appVersion)=3.2.8377.0
    P3(assemblyName)=unknown
    P4(assemblyVer)=0.0.0.0
    P5(methodName)=System.UInt32.System.IConvertible.ToInt32
    P6(exceptionType)=System.OverflowException
    P7(callstackHash)=9e55

    SCVMM Version=3.2.8377.0
    SCVMM flavor=C-buddy-RTL-AMD64
    Default Assembly Version=3.2.8377.0
    Executable Name=vmmservice.exe
    Executable Version=3.2.8145.0
    Base Exception Target Site=140712224757680
    Base Exception Assembly name=mscorlib.dll
    Base Exception Method Name=System.UInt32.System.IConvertible.ToInt32
    Exception Message=Failed to convert parameter value from a UInt32 to a Int32.
    EIP=0x00007ffa264795fc
    Build bit-size=64
    ----------------------------------------------------
    ------------ exceptionObject.ToString() ------------
    ----------------------------------------------------

    System.OverflowException: Failed to convert parameter value from a UInt32 to a Int32. ---> System.OverflowException: Value was either too large or too small for an Int32.
       at System.UInt32.System.IConvertible.ToInt32(IFormatProvider provider)
       at System.Convert.ChangeType(Object value, Type conversionType, IFormatProvider provider)
       at System.Data.SqlClient.SqlParameter.CoerceValue(Object value, MetaType destinationType, Boolean& coercedToDataFeed, Boolean& typeChanged, Boolean allowStreaming)
       --- End of inner exception stack trace ---
       at System.Data.SqlClient.SqlParameter.CoerceValue(Object value, MetaType destinationType, Boolean& coercedToDataFeed, Boolean& typeChanged, Boolean allowStreaming)
       at System.Data.SqlClient.SqlParameter.GetCoercedValue()
       at System.Data.SqlClient.SqlParameter.Validate(Int32 index, Boolean isCommandProc)
       at System.Data.SqlClient.SqlCommand.SetUpRPCParameters(_SqlRPC rpc, Int32 startCount, Boolean inSchema, SqlParameterCollection parameters)
       at System.Data.SqlClient.SqlCommand.BuildRPC(Boolean inSchema, SqlParameterCollection parameters, _SqlRPC& rpc)
       at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, SqlDataReader ds)
       at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean asyncWrite)
       at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
       at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
       at Microsoft.VirtualManager.DB.SqlRetryCommand.ExecuteNonQuery()
       at Microsoft.VirtualManager.DB.Adhc.HostDisk.Microsoft.VirtualManager.DB.Adhc.IRefresheable<Microsoft.VirtualManager.Remoting.HostDiskData>.Update(HostDiskData data, SqlContext ctx, Guid taskID)
       at Microsoft.VirtualManager.Engine.Adhc.HostDatabaseUpdater.UpdateDbObjects[TObj,TObjData](List`1 existing, List`1 fresh, ObjectDataComparer`2 isEqual, NewObjectCreator`2 createNew, SqlContext ctx, Guid taskID, Boolean deleteNonExisting, Boolean ignoreDeleteErrors, List`1 skipExistingOnDelete)
       at Microsoft.VirtualManager.Engine.Adhc.HostDatabaseUpdater.UpdateDiskAndVolumeInfo(Host host, List`1 existingDisks, List`1 refreshedDisks, List`1 existingVolumes, List`1 refreshedVolumes, Dictionary`2 volumeToDiskMap, CarmineObjectType serverType, Guid serverId, Nullable`1 hostGroupId, Guid taskID, SqlContext context, Boolean deleteNonExisting, ITaskContext taskContext)
       at Microsoft.VirtualManager.Engine.Adhc.HostDatabaseUpdater.UpdateDatabase()
       at Microsoft.VirtualManager.Engine.Adhc.HostRefresher.UpdateAllInformation(Host host, HostUpdateInformation hostUpdateInfo, ITaskContext taskContext)
       at Microsoft.VirtualManager.Engine.Adhc.HostClusterRefresher.UpdateDb(HostClusterProperties refresher, HostCluster cluster, List`1 hosts, Dictionary`2 lockedHosts, ClusterUpdateInformation clusterInfo, List`1 hostInfos, Guid taskID, ITaskContext taskContext)
       at Microsoft.VirtualManager.Engine.Adhc.HostClusterRefresher.Microsoft.VirtualManager.Engine.IRefresher<Microsoft.VirtualManager.DB.Adhc.HostClusterReference>.RefreshData(HostClusterReference clusterRef, Nullable`1& auditTaskId)
       at Microsoft.VirtualManager.Engine.RefreshDriver`1.RefreshThreadFunction(Object obj)

    Any ideas?

    Gergely Boruzs

    Saturday, January 27, 2018 3:32 AM

All replies