This article provides a workaround to resolve the error when we try to insert higher number than permitted into an integer type of data.
Symptoms:
[date time] error vpxd[7F4AB1866700] [Originator@6876 sub=Default opID=HB-host-xxx@xxxxxx-xxxxxxxx] An unrecoverable problem has occurred, stopping the VMware VirtualCenter service. Error: Error[VdbODBCError] (-1) "ODBC error: (22003) - ERROR: integer out of range; --> Error while executing the query" is returned when executing SQL statement "INSERT INTO VPX_IP_ADDRESS (ENTITY_ID, DEVICE_ID, IP_ADDRESS) VALUES (?, ?, ?)"
[date time] panic vpxd[7F4AB1866700] [Originator@6876 sub=Default opID=HB-host-932@203496-568eee72] --> --> Panic: Unrecoverable VmRootError. Panic! --> Backtrace:
vCenter 6
vCenter 7
vCenter 8
Workaround:
For MSSQL:
For vPostgres:
Error while executing the query" is returned when executing SQL statement "INSERT INTO VPX_DVHOST_HC_VLAN_RESULT (DVS_ID,HOST_ID,UPLINK_PORT_Then the command to run would be:KEY,TRUNKED_FLG,VLAN_ID_START, VLAN_ID_END) VALUES (?,?,?,?,?,?)"
Impact/Risks:
Workaround here would re-initialize the sequence values and no schema changes made to the vCenter database.