我們的品牌

Impact-Company-Logo-English Black-01-177x54

歡迎造訪施耐德電機全球網站

歡迎訪問我們的網站
		
我们今天能为您提供什么帮助?
Power Monitoring Expert (PME) How to Correct Misleading Source Names/Duplicate source names and Reassign Data to Correct Source

Issue

"Misleading source names" refers to unwanted sources that have been created in a PME system by the PME software itself. Data will log under these sources instead of the desired source. Examples are show in the screenshot below. The misleading source names typically consist of the meter/VIP name and the name of a specific quantity, or specific data recorder output name.

Tower_5.Main_PM5560-ApparentEnergyDelivered-Received

Product Line

Power Monitoring Expert 9.x

Power Monitoring Expert 2020

Power Monitoring Expert 2021

Power Monitoring Expert 2022

Power Monitoring Expert 2023

Power Monitoring Expert 2024

Environment

Power Monitoring Expert (PME)

SQL Server Management Studio (SSMS)

Cause

PME creates these "misleading sources" to prevent data loss. The is due to how data is stored in the PME SQL databases. Each measurement that logs to a PME source requires a "quantity ID," and if the quantity ID is already being used, the PME software will make an additional source to log the quantities.

Below are some individual causes that should be avoided in the future. The resolution for the causes is the same. There can be additional causes outside of what is described below. If after resolving the issue, the misleading sources return, the PME system should be further investigated.

Cause #1

A common cause of this issue is human error when the PME "Designer" application is utilized to enable software logging for data points and log to data to a custom measurement name (described in this Schneider FAQ https://www.se.com/us/en/faqs/FAQ000265723/).

The default names in ION modules follow the convention of [shorthand ION module name][output register result number]. E.g., in an arithmetic module, the shorthand module name is "art1" and the result number would be 1 - 9. If the framework is saved before renaming the output registers, the default name will be saved. This can cause Art1Result 5 to appear as a new source with the VIP name preceding it, rather than the intended result of a custom measurement logging to a specific meter.

Cause #2

There is some duplicate measurement for the device after enabling software logging using the meter driver. The software logged quantities have a conflict with the quantities already being logged. These should be evaluated to see how necessary they are if there are existing logs using the same SQL quantity IDs.

Cause #3

This can sometimes occur after a PME upgrade depending on the meter type.

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

1. Identify the 'Name' of your original source and the duplicate/misleading source name.  This step is necessary because the display name that appears in management console may differ from the name in the SQL database. Using SQL Server Management Studio (SSMS), run the below query to get the list of sources from your PME system. (If there is greater than 1000 devices, the number can be increased.) Replace "yourMeterGroupName.yourMeterName" with the device name as it appears in the management console/device manager (leave the '%' symbols).

SELECT *
  FROM [ION_Data].[dbo].[Source]
where DisplayName = '%yourMeterGroupName.yourMeterName%'

2. In the results table, your source should appear, as well as the misleading/duplicate source. Copy the full names from the 'Name' column of the results table. Also keep note of the value that appears in the "ID" column.

3. Edit the attached queries (labeled 1 - 3) to include your source names. Replace the places that say 'group_name.misleading_source_name' with the full misleading source name and 'group_name.actual_source_name' with the real source name.

4. A stored procedure to delete the data from the misleading source needs to be added to the PME if it does not already exist. Navigate to the FAQ https://www.se.com/us/en/faqs/FA210105/ to create the stored procedure for your PME version.

5. Stop all ION Services

6. Run these queries in order (if after running query #1 an error on duplicate data appears, refer to the "Optional" section at the end of this article.

1. Reassign_historical_data.txt

2. Delete_misleading_sources.txt

3. Clear_logging_configuration.txt

7. Restart the ION services.

8. You can check if it successfully removed the misleading source by re-running the above query in step #2 and identifying if the extra source was deleted. You can also check if the DataLog2 now contains the data that uses the quantityID of the misleading source.

9. If you have many misleading sources, you can use the attached script "correct_many_misleading_sources." This script will only apply if the misleading sources are named in the convention of CorrectDeviceName-AdditionalText. (E.g., my_Correct_Meter-Art1Result2, my_second_Correct_meter-RealEnergyTotal, etc.). Enter the names of the misleading sources in the Values list at the top of the file.

-- Insert the sources into the temporary table
INSERT INTO #Sources (SourceName)
VALUES
('my_Correct_meter-RealEnergyTotal'),
('my_second_Correct_Meter-Art1Result2'),

Optional

  1. Typically, misleading sources only store data for one measurement. You can run the below query to identify what QuantityID the misleading source is logging data under. 'group_name.misleading_source_name' with the misleading source name found in the previous step. The expected results is a single quantity consistently logged. Make note of the QuantityID for the next step.
    SELECT *
      FROM [ION_Data].[dbo].[DataLog2]
      where (SELECT ID FROM Source WHERE Name = 'group_name.misleading_source_name')
      order by TimestampUTC desc
  2. Run the below query but use the SourceID of your actual device and the QuantityID you found in the previous step. You can identify the last date the quantity logged for the actual source, alternatively there may be no data (expected).
    SELECT *
      FROM [ION_Data].[dbo].[DataLog2]
      where (SELECT ID FROM Source WHERE Name = 'group_name.actual_source_name') and QuantityID = [QuantityID]
      order by TimestampUTC desc
  3. If an error message that shows "duplicate data"  was found, this means the misleading source was logging data at some point in time that the actual source was also logging data. You can trim the data from the actual source that is in the time frame that the misleading source was logging to resolve this issue. (The data will be re-assigned from the misleading source to the correct source after the 1-Reassign_historical_data query is ran.)

施耐德電機Taiwan

附件
1-Reassign_historical_data.txt [208 Bytes]
2-Delete_misleading_sources.txt [97 Bytes]
3-Clear_logging_configuration.txt [893 Bytes]
correct_many_misleading_sources.txt [2.76 KB]

需要協助?

  • 產品選型工具

    快速輕鬆地為您的應用找到合適的產品和附件。

  • 取得報價

    立即線上提交您的銷售需求,專業團隊將主動聯繫您。

  • 購買地點

    輕鬆在您所在地區找到最近的施耐德電機經銷商。

  • 支援中心

    在同一位置找到滿足您所有需求的支援資源。

  • 產品文檔
  • 軟體下載
  • 產品選型工具
  • 產品替代和替換
  • 幫助和聯絡中心
  • 尋找我們的辦公室
  • 取得報價
  • 人才招募
  • 公司簡介
  • 舉報不當行為
  • 無障礙
  • 新聞中心
  • 投資者
  • 專業洞察
  • 台灣施耐德電機學院
  • 綠色影響力落差調查
  • Schneider Go Green 2025
  • 隱私政策
  • Cookie通告
  • 使用條款
  • Change your cookie settings