Nos marques

Bienvenue sur le site Web de Schneider Electric

Bienvenue sur notre site Web.
		
En quoi pouvons-nous vous aider aujourd'hui ?
When attempting to select Custom Measurements using Hierarchies in PME 7.2.x and PME 8.0, the following error appears: "An error occurred while attempting to retrieve data"

Issue
An error occurs when selecting Custom Measurements in Hierarchies: "An error occurred while attempting to retrieve data."

Product Line

Power Monitoring Expert 7.2.x

Power Monitoring Expert 8.0



Environment
Reports run from Hierarchy

Cause
An issue occurs with the platform when Custom Measurements are used in conjunction with Hierarchies and Reporting as it produces an error seen below:

--------------------------
ID: 2540356
Timestamp: 1/04/2016 5:04:24.787 PM
Priority: ERROR
Source: ReportView_MultiDeviceUsage
Target: edfe0c00-d1d8-4048-b5d4-d23f541785a2
Category: Reporting View
Description: An error occurred while attempting to retrieve data.
---------------------------

It has been observed that the same report run on the same device and custom measurement can be accessed through “Devices” instead of “Views” in the source selector.


***************************************************
Steps to reproduce the issue (PME 7.2.2 or 8.0 will do it):
- Generate a device with a custom measurement and data;
- Ensure you can generate a report and see the data (Used Single Device Usage Report);
- Now create a Hierarchy Node based on this new source;
- In the report that worked above, change the source from the device to the Hierarchy Representation;
- You'll now get an error or just 'no data available' depending on the version;

This exception log will state:
PowerMeasurement.Reporting.Processor.ProcessingException: Unexpected error while processing rows. ---> System.NullReferenceException: Object reference not set to an instance of an object. at PowerMeasurement.Reporting.View.Processor.MeasurementMetaDataProcessor.GetMeasurementMetaData(DataRow row) at PowerMeasurement.Reporting.View.Processor.MeasurementMetaDataProcessor.Process(DataRow row) at PowerMeasurement.Reporting.Processor.DataProcessor.ProcessRows(DataTable table, IRowProcessor[] processors)


The Measurement ID from the Reporting prerequisite control is mapped to the Datastore ID to process the measurement meta data. The actual custom measurement does not seem to matter since the code fails to even map to the measurement, let alone gather any data. The issue may be in the platform method 'MeasurementMetaDataProcessor.GetMeasurementMetaData' that maps the measurement selector control ID to the Datastore ID by:
IIdentityMapping measurement = MeasurementIdentityMappings.FindIdentityForDataStoreId(measurementId.ToString());
In here it appears there is a mismatch and the mapping is not found.
***************************************************

Resolution
This is a known issue in PME 7.2.X and PME 8.0, but has been fixed in PME 8.1 and on.  Upgrading to the latest version of PME will fix this issue.

Schneider Electric Belgium

En savoir plus
Produit :
En savoir plus
Produit :
  • Documentation produits
  • Téléchargement de logiciels
  • Sélecteur de produits
  • Substitution et remplacement de produits
  • Centre d'aide et de contact
  • Trouver nos sites
  • Obtenir un devis
  • Où acheter
  • Communauté Schneider Electric
  • Carrières
  • Qui sommes-nous ?
  • Signaler une mauvaise conduite
  • Accessibilité
  • Salle de presse
  • Partenaires
  • EcoStruxure
  • Nos emplois
  • Blog
  • Soyez informé des nouveautés en premier ?
  • Protection des données
  • Mention sur les cookies
  • Conditions d utilisation
  • Conditions générales de vente et d'achat
  • Change your cookie settings