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

Contact Support

Close

Ask our Experts

Have a question related to our products, solutions or services? Get quick support on community Forums

Email Us

For Community platform-related support, please email us

New Community Ranking System
Our Community ranking system has recently been updated. You may notice changes in user rankings and receive system messages or notifications. If you have questions about how the new ranking works, please refer to the announcement post for more details (click here).

EWS Server - Notifications

SmartConnector Forum

Schneider Electric support forum for SmartConnector Framework - enabling custom integrations with EcoStruxure Building Operation, Power Monitoring Expert, and Power Operation.

Search in

Improve your search experience:

  • Exact phrase → Use quotes " " (e.g., "error 404")
  • Wildcard → Use * for partial words (e.g., build*, *tion)
  • AND / OR → Combine keywords (e.g., login AND error, login OR sign‑in)
  • Keep it short → Use 2–3 relevant words , not full sentences
  • Filters → Narrow results by section (Knowledge Base, Users, Products)
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: 

Select a Country

Please select a country to continue with beta search.

  • Home
  • Schneider Electric Community
  • EcoStruxure Building
  • SmartConnector
  • SmartConnector Forum
  • EWS Server - Notifications
Options
  • 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
JeffBowman Champion
171
KarimHussain
KarimHussain Champion
60
ardak
ardak Leader
57
View All

Recommended Forums

  • Intelligent Devices Forum

  • Metering & Power Quality

  • EcoStruxure IT Forum

Invite a Colleague

Found this content useful? Share it with a Colleague!

Invite a Colleague Invite
Solved Go to Solution
Back to SmartConnector Forum
Start a Topic
Solved
mike_meirovitz
mike_meirovitz
Mentor

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

1 Like
6
3987
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • 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

 

Tags (1)
  • Tags:
  • english
Reply
  • All forum topics
  • Previous Topic
  • Next Topic

Accepted Solutions
JeffBowman
JeffBowman Champion
Champion

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

1 Like
5
3978
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • 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
mike_meirovitz
Mentor

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

0 Likes
4
3977
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • 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
JeffBowman Champion
Champion

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

1 Like
5
3979
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • 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
mike_meirovitz
Mentor

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

0 Likes
4
3978
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • 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
JeffBowman Champion
Champion

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

0 Likes
3
3975
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • 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
mike_meirovitz
Mentor

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

0 Likes
2
3974
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • 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
JeffBowman Champion
Champion

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

0 Likes
0
3969
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • 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
SteveGregory Leader
Leader

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

0 Likes
0
3871
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • 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

 

You’ve reached the end of your document

WHAT’S NEXT?

Ask our Experts

Didn't find what you are looking for? Ask our experts!

My Dashboard

Check out the new Feeds and activities that are relevant to you.

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

    Ask our Experts

    Have a question related to our products, solutions or services? Get quick support on community Forums

    Email Us

    For Community platform-related support, please email us

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 © 2026 Schneider Electric

Welcome!

Welcome to your new personalized space.

of

Explore