How can we help you today?

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.

Schneider Electric Canada

Explore more
Range:
Users group

Discuss this topic with experts

Visit our community and get advice from experts and peers on this topic and more
Explore more
Range:

Need help?

Need help?

Product Selector

Product Selector

Quickly and easily find the right products and accessories for your applications.

Get a Quote

Get a Quote

Start your sales inquiry online and en expert will connect with you.

Where to buy?

Where to buy?

Easily find the nearest Schneider Electric distributor in your location.

Help Center

Help Center

Find support resources for all your needs, in one place.

  • Help and Contact Center
  • Contact Sales
  • Find our Offices
  • Where to Buy
  • Careers
  • Company Profile
  • Investors
  • Newsroom
  • Report a Misconduct
  • Product Documentation
  • Product Selectors
  • Software and Firmware
  • Product Substitution and Replacement
  • Blog
  • Events
  • Schneider Electric Community
  • Sustainability
  • Legal Information
  • Privacy Policy
  • Cookie Notice
  • Terms of use
  • Change your cookie settings