Help
  • Explore Community
  • Get Started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Notifications
Login / Register
Community
Community
Notifications
close
  • Forums
  • Knowledge Center
  • Events & Webinars
  • Ideas
  • Blogs
Help
Help
  • Explore Community
  • Get Started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Login / Register
Sustainability
Sustainability

Join our "Ask Me About" community webinar on May 20th at 9 AM CET and 5 PM CET to explore cybersecurity and monitoring for Data Center and edge IT. Learn about market trends, cutting-edge technologies, and best practices from industry experts.
Register and secure your Critical IT infrastructure

EWS Server - Notifications

SmartConnector Forum

Schneider Electric support forum about SmartConnector applications for integration of other building management systems (BMS) into EcoStruxure Building Operation.

cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Home
  • Schneider Electric Community
  • EcoStruxure Building
  • SmartConnector
  • SmartConnector Forum
  • EWS Server - Notifications
Options
  • Subscribe to RSS Feed
  • Mark Topic as New
  • Mark Topic as Read
  • Float this Topic for Current User
  • Bookmark
  • Subscribe
  • Mute
  • Printer Friendly Page
Invite a Co-worker
Send a co-worker an invite to the portal.Just enter their email address and we'll connect them to register. After joining, they will belong to the same company.
You have entered an invalid email address. Please re-enter the email address.
This co-worker has already been invited to the Exchange portal. Please invite another co-worker.
Please enter email address
Send Invite Cancel
Invitation Sent
Your invitation was sent.Thanks for sharing Exchange with your co-worker.
Send New Invite Close
Top Experts
User Count
JeffBowman
Sisko JeffBowman Sisko
164
ardak
ardak Schneider Alumni (Retired)
34
sesa180908_brid
Commander sesa180908_brid Commander
34
mike_meirovitz
Commander mike_meirovitz
21
View All
Related Products
product field
Schneider Electric
EcoStruxure™ Building Operation

Invite a Colleague

Found this content useful? Share it with a Colleague!

Invite a Colleague Invite
Solved Go to Solution
Back to SmartConnector Forum
Solved
mike_meirovitz
Commander mike_meirovitz
Commander

Posted: ‎2021-03-19 09:31 AM

1 Like
6
2683
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2021-03-19 09:31 AM

EWS Server - Notifications

Hi,

We have a customer who is using our EBO-OPC Client (EWS Server). In SmartConnector, under EWS Server, there is a branch called "Notifications" with 25,770 items. See below.

Capture_Jerzy.JPG

Can you please explain what is the meaning of this branch and why there are so many items in it? 

On our server we don't see this branch.

 

Thank you.

 

Mike

 

  • Thumbnail of EcoStruxure™ Building Operation
    Schneider Electric
    EcoStruxure™ Building Operation
View products (1)
Tags (1)
  • Tags:
  • english
Reply
  • All forum topics
  • Previous Topic
  • Next Topic

Accepted Solutions
JeffBowman
Sisko JeffBowman Sisko
Sisko

Posted: ‎2021-03-24 10:05 AM

1 Like
5
2674
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2021-03-24 10:05 AM

Hi Michael,

 

These are there due to Subscriptions from EBO asking for updated values.

 

However! These should be being cleaned up by your Update Processor every run so they don't eventually cause the database to become slow.

 

If you are using the EwsItemManager in the SmartConnector.Utilities library you can call:

 

EwsItemManager.DeleteSubscriptionNotifications();

 

If you are using the DataAdapter directly, you would need to implement it yourself. I have pasted the code from SmartConnector utilities incase you need it.

var dataAdapter = DataAdapter;
try
{
Logger.LogTrace("EwsItemManager", $"DeleteSubscriptionNotifications");
dataAdapter.AutoCommit = false;
if (subscriptions == null)
{
subscriptions = dataAdapter.Subscriptions.ToList();
}

var ewsSubscriptions = subscriptions as IList<EwsSubscription> ?? subscriptions.ToList();
foreach (var subscription in ewsSubscriptions)
{
dataAdapter.DeleteNotifications(subscription);
}

if (ewsSubscriptions.Count > 0)
{
dataAdapter.DeleteSubscription(ewsSubscriptions
.Where(a => a.Status != EwsSubscriptionStatusEnum.Active).ToList());
}

dataAdapter.CommitChanges();
dataAdapter.AutoCommit = true;
}
catch (SqlException ex)
{

// It is possible that there is already too many entries in the tables to delete without timing out. In that case, you need to log into SQL Management Studio and Truncate the EwsNotificationItems, and EwsSubscriptionItems tables manually.

}

 

Best Regards,

 

-Jeff

See Answer In Context

Tags (1)
  • Tags:
  • english
Reply
mike_meirovitz
Commander mike_meirovitz
Commander

Posted: ‎2021-03-24 11:46 AM

0 Likes
4
2673
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2021-03-24 11:46 AM

Hi Jeff,

 

Thank you for your answer. Few questions:

 

1. Can these notifications be avoided/disabled? I had a demo today with a potential customer from Poland. The customer was concerned that with a large number of OPC items (20,000 to 30,000) these notifications will consume space, memory and may slow down the EWS server and the EBO.

 

2. You wrote "These notifications should be cleaned up by your Update Processor every run". Note that our update processor's Runs On Schedule is False . How often we should do the cleanup? Will this affect the performance?

 

3. Why I see these notification events on the customer's SmartConnector EWS and not on my SmartConnector EWS?

 

Thank you.

 

Mike

See Answer In Context

Tags (1)
  • Tags:
  • english
Reply
Replies 6
JeffBowman
Sisko JeffBowman Sisko
Sisko

Posted: ‎2021-03-24 10:05 AM

1 Like
5
2675
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2021-03-24 10:05 AM

Hi Michael,

 

These are there due to Subscriptions from EBO asking for updated values.

 

However! These should be being cleaned up by your Update Processor every run so they don't eventually cause the database to become slow.

 

If you are using the EwsItemManager in the SmartConnector.Utilities library you can call:

 

EwsItemManager.DeleteSubscriptionNotifications();

 

If you are using the DataAdapter directly, you would need to implement it yourself. I have pasted the code from SmartConnector utilities incase you need it.

var dataAdapter = DataAdapter;
try
{
Logger.LogTrace("EwsItemManager", $"DeleteSubscriptionNotifications");
dataAdapter.AutoCommit = false;
if (subscriptions == null)
{
subscriptions = dataAdapter.Subscriptions.ToList();
}

var ewsSubscriptions = subscriptions as IList<EwsSubscription> ?? subscriptions.ToList();
foreach (var subscription in ewsSubscriptions)
{
dataAdapter.DeleteNotifications(subscription);
}

if (ewsSubscriptions.Count > 0)
{
dataAdapter.DeleteSubscription(ewsSubscriptions
.Where(a => a.Status != EwsSubscriptionStatusEnum.Active).ToList());
}

dataAdapter.CommitChanges();
dataAdapter.AutoCommit = true;
}
catch (SqlException ex)
{

// It is possible that there is already too many entries in the tables to delete without timing out. In that case, you need to log into SQL Management Studio and Truncate the EwsNotificationItems, and EwsSubscriptionItems tables manually.

}

 

Best Regards,

 

-Jeff

Tags (1)
  • Tags:
  • english
Reply
mike_meirovitz
Commander mike_meirovitz
Commander

Posted: ‎2021-03-24 11:46 AM

0 Likes
4
2674
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2021-03-24 11:46 AM

Hi Jeff,

 

Thank you for your answer. Few questions:

 

1. Can these notifications be avoided/disabled? I had a demo today with a potential customer from Poland. The customer was concerned that with a large number of OPC items (20,000 to 30,000) these notifications will consume space, memory and may slow down the EWS server and the EBO.

 

2. You wrote "These notifications should be cleaned up by your Update Processor every run". Note that our update processor's Runs On Schedule is False . How often we should do the cleanup? Will this affect the performance?

 

3. Why I see these notification events on the customer's SmartConnector EWS and not on my SmartConnector EWS?

 

Thank you.

 

Mike

Tags (1)
  • Tags:
  • english
Reply
JeffBowman
Sisko JeffBowman Sisko
Sisko

Posted: ‎2021-03-24 11:51 AM

0 Likes
3
2671
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2021-03-24 11:51 AM

Hi Michael,

 

1. No, these are required for EWS Value Updates. If EBO is connected to your EWS server, these will be created.

2. If it is not runs on a schedule, then I assume your processor has some sort of loop to keep making sure the values are up to date. You should hook it into there somewhere. The alternative approach, is that with the Smart Connector.Utilities library, there is a utility processor that you can configure to run on a loop that will clean these up in your EWS Server for you, so you don't need to modify your code.

3. Do you have EBO pointing at your EWS server?

 

Best Regards,

 

-Jeff

Tags (1)
  • Tags:
  • english
Reply
mike_meirovitz
Commander mike_meirovitz
Commander

Posted: ‎2021-03-24 12:07 PM

0 Likes
2
2670
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2021-03-24 12:07 PM

Hi Jeff,

 

Thank you for your answers. 

 

3. Yes. Now I see it. So if I have 20,000 points/values, should I see 20,000 notification items in the EWS?

 

What is the value of showing this information in the EWS tab in SmartConnector web interface? I mean, if it will be cleaned by the processor in a loop. 

 

Thanks.

 

Mike 

Tags (1)
  • Tags:
  • english
Reply
JeffBowman
Sisko JeffBowman Sisko
Sisko

Posted: ‎2021-03-25 07:02 AM . Last Modified: ‎2021-03-25 07:03 AM

0 Likes
0
2665
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2021-03-25 07:02 AM

Hi Michael,

 

If you are subscribing to 20,000 points in your EWS server, from EBO then I would expect that you would have 20,000, and if you clean up the notifications as you should, you shouldn't really ever go over this number. 

 

As long as you are not building up Notification items in your database, you will be fine with 20,000.

 

As far as to why we show this information in the EWS Server. An EWS Server does not NEED to be attached to a processor, the web interface is for the Smart Connector EWS Server as a whole, not related to a specific extension.

 

Best Regards,

 

-Jeff

Tags (1)
  • Tags:
  • english
Reply
SteveGregory
Commander SteveGregory Commander
Commander

Posted: ‎2022-05-12 02:52 AM

0 Likes
0
2567
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2022-05-12 02:52 AM

Hi Michael, did you end up implementing the EwsItemManager.DeleteSubscriptionNotifications() functions in your OPC SmartConnector? We are using it on one of our projects and we are getting the issue described here.

Steve

Tags (1)
  • Tags:
  • english
Reply
Preview Exit Preview

never-displayed

You must be signed in to add attachments

never-displayed

 
To The Top!

Forums

  • APC UPS Data Center Backup Solutions
  • EcoStruxure IT
  • EcoStruxure Geo SCADA Expert
  • Metering & Power Quality
  • Schneider Electric Wiser

Knowledge Center

Events & webinars

Ideas

Blogs

Get Started

  • Ask the Community
  • Community Guidelines
  • Community User Guide
  • How-To & Best Practice
  • Experts Leaderboard
  • Contact Support
Brand-Logo
Subscribing is a smart move!
You can subscribe to this board after you log in or create your free account.
Forum-Icon

Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.

Register today for FREE

Register Now

Already have an account? Login

Terms & Conditions Privacy Notice Change your Cookie Settings © 2025 Schneider Electric

This is a heading

With achievable small steps, users progress and continually feel satisfaction in task accomplishment.

Usetiful Onboarding Checklist remembers the progress of every user, allowing them to take bite-sized journeys and continue where they left.

of