How can we help you today?

PME Upgrade/Install fails at the "Create Databases" step due to a "FK_Alarm_PQEventID" error

Issue

User is unable to install or upgrade because of an "FK_Alarm_PQEventID" error at the "Create Databases" step.

Upon investigating the ION_Data.log you see the following: "The DELETE statement conflicted with the REFERENCE constraint "FK_Alarm_PQEventID". The conflict occurred in database "ION_Data", table "dbo.Alarm", column 'PQEventID'."

Product

EcoStruxure Power Monitoring Expert

Resolution

*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.*

---------------------------------------

Script:

USE [ION_Data]

GO

ALTER TABLE [dbo].[Alarm] DROP CONSTRAINT [FK_Alarm_PQEventID]

GO

ALTER TABLE [dbo].[Alarm] WITH NOCHECK ADD CONSTRAINT [FK_Alarm_PQEventID] FOREIGN KEY([PQEventID]) REFERENCES [dbo].[PQ_Events] ([EventId])

GO

ALTER TABLE [dbo].[Alarm] CHECK CONSTRAINT [FK_Alarm_PQEventID]

GO

---------------------------------------

After you apply the script you can attempt the install/upgrade again.

Schneider Electric Australia

Explore more
Product:
Range:
Users group

Discuss this topic with experts

Visit our Community for first-hand insights from experts and peers on this topic and more.
Explore more
Product:
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 an expert will connect with you.

Where to buy?

Where to buy?

Easily find the nearest Schneider Electric distributor in your location.

Help Centre

Help Centre

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

  • Products Documentation
  • Software Downloads
  • Product Selector
  • Product Substitution and Replacement
  • Help and Contact Centre
  • Office Locations
  • Where to buy
  • Phone: 13 73 28 (13 SEAU)
  • Schneider Electric Community
  • Careers
  • Company Profile
  • Report a misconduct
  • Newsroom
  • Investors
  • EcoStruxure
  • Job Search
  • Blog
  • Privacy Policy
  • Cookie Notice
  • Terms and Conditions of Sale
  • Change your cookie settings