ION_Data database upgrade fails during upgrade to SPM7 or IONE 6.0.1
Issue
During an upgrade to StruxureWare Power Monitoring 7.0, the upgrade to the ION_Data database fails with the following error:
"Arithmetic overflow error converting IDENTITY to data type smallint. Arithmetic overflow occurred."
The EventException table in [ION_SystemLog] will contain an error stating "Exception has been thrown by the target of an invocation. ---> System.Runtime.InteropServices.COMException: Could not upgrade MSDE Database: Arithmetic overflow error converting IDENTITY to data type smallint."
Product Line
ION Enterprise 6.0.1
StruxureWare Power Monitoring 7.0
Cause
Both ION_Data and ION_Network contain a table called pwrmDatabaseBuild. Many of the script files that are run to upgrade the databases contain a command that enters a row into this table. The ID column of this table is datatype smallint, which has a maximum value of 32767. The rows contained in this table will build up over time as the software is upgraded through the various versions. Once this table contains 32767 rows, the next attempt to insert a new row will fail with the error noted above. The SQL statements that will correct his problem simply clear out the table, and reseed the ID column back to 1.
This can happen on systems that have been upgraded through a number of different versions of ION Enterprise over the years.
Resolution
*Warning: Take backups of any files prior to modifying them. Ensure the backups are in a location that will not be overwritten (i.e. the Desktop).*
*Warning: Irreparable database damage can occur. This procedure should only be performed by users familiar with SQL Server Management Studio. Databases should be backed up prior to performing this procedure.*
Run the following query in SQL Server Management Studio, and then restart the upgrade:
TRUNCATE TABLE[ION_Data].[dbo].[pwrmDatabaseBuild]
TRUNCATE TABLE[ION_Network].[dbo].[pwrmDatabaseBuild]
Note: This table will be removed after the StruxureWarePower Monitoring 7.0.1.
게시 대상: 슈나이더 일렉트릭 Korea






도움이 필요하신가요?
제품 선택기
애플리케이션에 적합한 제품과 액세서리를 빠르고 쉽게 찾을 수 있습니다.
견적 받기
영업 관련하여 온라인으로 문의하시면 전문가가 연락드립니다.
구매처
해당 지역의 가장 가까운 슈나이더 일렉트릭 대리점을 쉽게 찾을 수 있습니다.
지원 센터
한 곳에서 모든 요구 사항에 대한 지원 리소스를 찾아보십시오.