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

We Value Your Feedback!
Could you please spare a few minutes to share your thoughts on Cloud Connected vs On-Premise Services. Your feedback can help us shape the future of services.
Learn more about the survey or Click here to Launch the survey
Schneider Electric Services Innovation Team!

SmartConnector RESTful EWS Gateway "Trends" endpoint 500 errors on some Trend objects

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
  • SmartConnector RESTful EWS Gateway "Trends" endpoint 500 errors on some Trend objects
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
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

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
CliveGross
Lt. Commander CliveGross Lt. Commander
Lt. Commander

Posted: ‎2019-06-02 06:31 PM

0 Likes
5
2365
  • 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.

‎2019-06-02 06:31 PM

SmartConnector RESTful EWS Gateway "Trends" endpoint 500 errors on some Trend objects

We have recently installed a SmartConnector on a 1.9 ES to use the REST API Gateway for getting trend samples into a 3rd party historian application. The users are encountering errors in the API response. Its not obvious to me whether this is a SmartConnector issue or SBO issue.

 

Basically, calling the Trends/{id} endpoint on some trend objects is returning errors but the TrendSamples and Container endpoints are ok for the same object ID.

 

Is there any character limitations or anything else I may be missing that may explain why getting some Trend objects work and some return a 500, even though they live on the same AS?

 

Example Trend id which returns error:

%2FGU-Multi%20Campus-BMS-ES-01%2FServers%2FAS-M14-MSSB6.02-Chillers%2FPlant%20Application%2FPrimary%20CHW%20System%2FTrend%20Logs%2FChiller%20No.1%2FCH1_Flow_SP

 

Swagger Response:

{

  "Message": "Code=TypeDoesNotExist, DisplayInfo='C:\\ProgramData\\Schneider Electric StruxureWare\\Building Operation 1.9\\Enterprise Server\\db\\UDT\\pr\\private\\Ce4556c9c8fcc41ab87216b4ca60b1271.xml', TechnicalInfo='The requested XML-file did not exist!', Module=ObjectManager, ModuleCode=0"

}

 

Example working trend id on the same Automation Server as the problematic trend above:

%2FGU-Multi%20Campus-BMS-ES-01%2FServers%2FAS-M14-MSSB6.02-Chillers%2FPlant%20Application%2FPrimary%20CHW%20System%2FTrend%20Logs%2FCommon%2FComEntTemp

Reply
  • All forum topics
  • Previous Topic
  • Next Topic

Accepted Solutions
JeffBowman
Sisko JeffBowman Sisko
Sisko

Posted: ‎2019-06-03 04:59 AM

0 Likes
4
2362
  • 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.

‎2019-06-03 04:59 AM

Hi Clive,

 

By the error message, it looks as though you are using the SboEwsRestProvider, but its name, of course it will work with SBO, but it does have a lot of specifics that need to be done for it to work fully, beyond a simple configuration. We don't generally suggest using the Sbo provider except in certain circumstances.

 

That said, I would suggest for you to use the SoapEwsRestProvider instead, in your situation, I think likely the error will go away.

 

As far as the specific error, the SboEwsRestProvider, is a hybrid implementation that uses some CSP (EBO's native protocol) and EWS behind the scenes. Because of the way CSP works, we need to manaully let Smart Connector know which COML (EBO's object model) types are valid for a specific EWS type (e.g.  containers, values, trends, alarms). It is likely that this BACnet trend type, isn't in this mapping. This mapping table is actually in the Smart Connector database in the ComEwsMappings table. So basically, to fix it, you would need to figure out the fully qualified COML type of the trend log in question, and then add it to this database table manually, and then restart your REST endpoint.

 

In order to determine the fully qualified COML type name, you can log into EBO, view the properies of the object in question (in this case the Trend log), expand the 'General Information' tab, and the hover over the Type name: See below for screenshot example (the COML type for the example below is trend.TLog😞

 

2019-06-03_7-56-10.png

 

The above is kind of a convoluted, this is why we suggest using the SoapEwsRestProvider, as it is more than capable in the vast vast majority of use cases, and it just works :).

 

Let me know if you have anymore questions.

 

Best Regards,

 

-Jeff

See Answer In Context

Attachments
Reply
Replies 5
JeffBowman
Sisko JeffBowman Sisko
Sisko

Posted: ‎2019-06-03 04:59 AM

0 Likes
4
2363
  • 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.

‎2019-06-03 04:59 AM

Hi Clive,

 

By the error message, it looks as though you are using the SboEwsRestProvider, but its name, of course it will work with SBO, but it does have a lot of specifics that need to be done for it to work fully, beyond a simple configuration. We don't generally suggest using the Sbo provider except in certain circumstances.

 

That said, I would suggest for you to use the SoapEwsRestProvider instead, in your situation, I think likely the error will go away.

 

As far as the specific error, the SboEwsRestProvider, is a hybrid implementation that uses some CSP (EBO's native protocol) and EWS behind the scenes. Because of the way CSP works, we need to manaully let Smart Connector know which COML (EBO's object model) types are valid for a specific EWS type (e.g.  containers, values, trends, alarms). It is likely that this BACnet trend type, isn't in this mapping. This mapping table is actually in the Smart Connector database in the ComEwsMappings table. So basically, to fix it, you would need to figure out the fully qualified COML type of the trend log in question, and then add it to this database table manually, and then restart your REST endpoint.

 

In order to determine the fully qualified COML type name, you can log into EBO, view the properies of the object in question (in this case the Trend log), expand the 'General Information' tab, and the hover over the Type name: See below for screenshot example (the COML type for the example below is trend.TLog😞

 

2019-06-03_7-56-10.png

 

The above is kind of a convoluted, this is why we suggest using the SoapEwsRestProvider, as it is more than capable in the vast vast majority of use cases, and it just works :).

 

Let me know if you have anymore questions.

 

Best Regards,

 

-Jeff

Attachments
Reply
CliveGross
Lt. Commander CliveGross Lt. Commander
Lt. Commander

Posted: ‎2019-06-03 04:46 PM

0 Likes
1
2359
  • 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.

‎2019-06-03 04:46 PM

Thanks @JeffBowman for your detailed response. You are correct, I am using the SboEwsRestProvider, which I guess I've mistakedly assumed is the standard option for integrating with SBO.

 

I will configure a SoapEwsRestProvider instead this week and let you know if it resolves the issue.

 

Thanks

Clive

Reply
CliveGross
Lt. Commander CliveGross Lt. Commander
Lt. Commander

Posted: ‎2019-06-03 08:06 PM

0 Likes
1
2356
  • 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.

‎2019-06-03 08:06 PM


Hi @JeffBowman , silly question but for the Server Address field for the SboEwsRestProvider , I just had the address + port, in the docs:

 

5.2.2.3 SoapEwsRestProvider Configuration Parameters

• Server Address – The full SOAP endpoint for the EWS server which will be the data source.
5.2.2.4 SboEwsRestProvider Configuration Parameters:
• Server Address – The HTTP endpoint for the SBO server which will be used to serve data. This only
needs to be the IP address (or DNS name) and port.

 

can you tell me the endpoint to use for SoapEwsRestProvider for an SBO ES?

Reply
CliveGross
Lt. Commander CliveGross Lt. Commander
Lt. Commander

Posted: ‎2019-06-03 09:48 PM

1 Like
0
2351
  • 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.

‎2019-06-03 09:48 PM

Never mind, I found another Community post where you have already answered this question. Ive added /EcoStruxure/DataExchange to the URL and it works.

Reply
JeffBowman
Sisko JeffBowman Sisko
Sisko

Posted: ‎2019-06-04 06:17 AM

1 Like
0
2348
  • 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.

‎2019-06-04 06:17 AM

Hi Clive,

 

You are right, the name is confusing, but it is not all at the same time (I suppose a better name would have been CSP Ews REST Provider). The SBO Provider, only works with SBO, but it is not super easy to use as you have noticed, hence the recommendation for using the SOAP Provider.

 

Regards,

 

-Jeff

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