This document describes a specific problem and solution related to a SQL bridge (database synchronization) error between ITCM and APM. The following error messages (or similar) will be found in the ITCM Engine log, for the engine running the synchronization task:
NOTIFY | Error Message: ADO Version 10.0 - ExecuteCommandPointer -COM Error: ErrorCode:-2147217833,WordErrorCode:3159, IDispatch error #3159, Arithmetic overflow error for type int, value = 4294406144.000000., Microsoft SQL Server Native Client 11.0, (null)
ERROR | cReplicationJob::DoTableUpdateInsertRow failed to execture db command pointer
ERROR | GetActionOnError: MS SQL dbErrCat=-3, dbDetailedError=-1, errorInfo=ADO Version 10.0 - ExecuteCommandPointer -COM Error: ErrorCode:-2147217833,WordErrorCode:3159, IDispatch error #3159, Arithmetic overflow error for type int, value = 4294406144.000000., Microsoft SQL Server Native Client 11.0, (null)
ERROR | SetIntermediateStatus1: Sync: Connection to Enterprise Database lost - Job aborted
ERROR | DoTableUpdate - Failed to Update, sql=[insert into ca_agent_prop (object_uuid,domain_uuid,creation_user,creation_date,last_update_user,last_update_date,genModel,lockGenModel,genType,lockGenType,genTotMemory,lockGenTotMemory,genNumProcs,lockGenNumProcs,genRegAsset,lockGenRegAsset,genNetName,lockGenNetName,genNetIP,lockGenNetIP,genOS,lockGenOS,genProcType,lockGenProcType,genProcSpeed,lockGenProcSpeed,genTotDisk,lockGenTotDisk,genBatchID,lockGenBatchID,ndIP,lockNdIP,ndMAC,lockNdMAC,ndSwName,lockNdSwName,ndPortName,lockNdPortName,ndPortType,lockNdPortType,ndPortDesc,lockNdPortDesc,ndSwIP,lockNdSwIP,ndSwLoc,lockNdSwLoc,ndSwVendor,lockNdSwVendor,ndSwSite,lockNdSwSite,ndSwCust,lockNdSwCust,ndSwFn,lockNdSwFn,ndSwScDate,lockNdSwScDate) values (?,?,?,1532389357,?,1532389357,?,NULL,?,NULL,4294406144.000000,NULL,4294406144.000000,NULL,?,NULL,?,NULL,?,NULL,?,NULL,?,NULL,0,NULL,80524345344.000000,NULL,?,NULL,?,NULL,?,NULL,?,NULL,?,NULL,?,NULL,?,NULL,?,NULL,?,NULL,?,NULL,?,NULL,?,NULL,?,NULL,?,NULL)]
The key message is:
ERROR | GetActionOnError: MS SQL dbErrCat=-3, dbDetailedError=-1, errorInfo=ADO Version 10.0 - ExecuteCommandPointer -COM Error: ErrorCode:-2147217833,WordErrorCode:3159, IDispatch error #3159, Arithmetic overflow error for type int, value = 4294406144.000000., Microsoft SQL Server Native Client 11.0, (null)
More specifically:
"Arithmetic overflow error for type int"