How can we help you today?

ENM error: Object reference not set to an instance of an object

Issue
The following error is seen in Monitoring and Diagnostics component of Event Notification Module (ENM):

Error screen in monitoring and diagnostics
HandlingInstanceID: f155d374-d1d5-4c96-8ef8-f8dd3f4d726c
An exception of type 'System.NullReferenceException' occurred and was caught.
-----------------------------------------------------------------------------
02/10/2016 16:05:50
Type : System.NullReferenceException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
Message : Object reference not set to an instance of an object.

Source : jrr2cetk
Help link :
Data : System.Collections.ListDictionaryInternal
TargetSite : Boolean Evaluate()
HResult : -2147467261
Stack Trace :    at eSolutions.PowerLogic.AlarmGen.Expression.Evaluate() at eSolutions.PowerLogic.AlarmGen.Advanced.Prc_Advanced.AlarmStatus(Object& testValue, String& actCond)


Product Line
Event Notification Module (ENM)

Environment
Monitoring and Diagnostics (http://localhost:85)
Alarm Sentry (http://localhost:83)

Cause
A wrong expression when setting up Advanced Alarm in Alarm Sentry.
The Evaluate() function in ENM code evaluates the syntax and generates an error if it is not correct.  The error message indicates a problem when executing the Evaluate() function.

Resolution
The syntax has to conform to C# and always return a boolean true or false:
if((Double)Source("<tag>")==1)
{return true;}
else
{return false;}
Where the <tag> has to be replaced with an OPC tag.


An example:

if((Double)Source("localhost.ION.OpcDaServer.1.GEN_A.Gen_A_1/Eng Op Mode")==1)
{return true;}
else
{return false;}

Schneider Electric USA

Users group

Discuss this topic with experts

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

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 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
  • Tech Support: 877-342-5173
  • Careers
  • Company Profile
  • Investors
  • Newsroom
  • Report a Misconduct
  • Product Documentation
  • Software and Firmware
  • Product Selector
  • Product Replacement
  • DigestPLUS Online Catalogue
  • Blog
  • Events
  • Schneider Electric Community
  • Sustainability
  • Privacy Policy
  • Cookie Notice
  • Terms of use
  • Change your cookie settings