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!

Got an error "READ_ONLY" when EwsClient.SetValues was called

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
  • Got an error "READ_ONLY" when EwsClient.SetValues was called
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
Back to SmartConnector Forum
sesa145614_brid
Ensign sesa145614_brid Ensign
Ensign

Posted: ‎2017-03-20 12:22 PM

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

‎2017-03-20 12:22 PM

Got an error "READ_ONLY" when EwsClient.SetValues was called

Hi,

I tried to use EwsClient SetValues function to set an output point in the AS. When I called "ewsClient.SetValues",
I got an error "READ_ONLY". In what condition will this happen?

Is it possible to set an input point value in the AS? I did try the same function call and got the "READ_ONLY" error too.

Thanks!

Juh

Reply
  • All forum topics
  • Previous Topic
  • Next Topic
Replies 7
sesa180908_brid
Commander sesa180908_brid Commander
Commander

Posted: ‎2017-03-20 12:47 PM

0 Likes
2
887
  • 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.

‎2017-03-20 12:47 PM

While it is certainly possible to set any ValueItem in any EWS Server (SBO AS or ES), any ValueItem can equally be deemed "Read Only".  If you attempt to set such a ValueItem, the specification mandates you return the "READ_ONLY" error result.

To confirm that this is what you are seeing, you should retrieve the ValueItem using "GetItems" and examine the returned data.  See Section 5.6.11 of the EWS specification here​.

Reply
sesa145614_brid
Ensign sesa145614_brid Ensign
Ensign

Posted: ‎2017-03-20 03:07 PM

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

‎2017-03-20 03:07 PM

Hi Mark,

I call GetItems to get the item that I am going to set and it is a writeable item.

{"GetItemsItems":{"ValueItems":[{"Id":"01/Server 1/Servers/Automation Server/IO Bus/IO-04/Digital Output 1","Name":"Digital Output 1","Description":"","Type":"boolean","Value":"0","Unit":"none","Writeable":"1","State":"0","Forceable":"1","EnumId":"~/Servers/Automation Server/io.pt.DigitalIOValue","Metadata":null}],"HistoryItems":[],"AlarmItems":[]},"GetItemsErrorResults":[],"version":"1.2"}

When the "ewsClient.SetValues" is called, I still get the "READ_ONLY" error result.

Any idea?

Thanks!

Juh

Reply
sesa180908_brid
Commander sesa180908_brid Commander
Commander

Posted: ‎2017-03-20 11:56 PM

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

‎2017-03-20 11:56 PM

Juh,

Seems like the point should be able to be written to.  Could you please provide a WireShark or Fiddler capture which shows both the GetItems and SetValues calls. 

Reply
JeffBowman
Sisko JeffBowman Sisko
Sisko

Posted: ‎2017-03-21 05:41 AM

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

‎2017-03-21 05:41 AM

Hi Juh,

You have have encountered a bug in SBO, try to do a GetContainerItems request to  "00/Server 1/Servers/Automation Server/IO Bus/IO-04/Digital Output 1" and see if something like "11/Server 1/Servers/Automation Server/IO Bus/IO-04/Digital Output 1/RequestedValue" is there.

For IO Modules, if you are trying to write to the Output Point, you will need to write to the RequestedValue property. The default property of the IO Module, should not be writable. I am not sure why it is exposed that way.If you want to read the value you should read the 'Value' property.. or is it 'PresentValue'.. In any case, it is not obvious .

-Jeff

Reply
sesa145614_brid
Ensign sesa145614_brid Ensign
Ensign

Posted: ‎2017-03-21 07:42 AM

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

‎2017-03-21 07:42 AM

Hi Jeff,

Below is the data returned from GetContainerItemsItems:

{"GetContainerItemsItems":

[

{"Id":"00/Server 1/Servers/Automation Server/IO Bus/IO-04/Digital Output 1","Name":"Digital Output 1","Description":"","Type":"structure",

"Items":{"ContainerItems":[],

"ValueItems":[

{"Id":"11/Server 1/Servers/Automation Server/IO Bus/IO-04/Digital Output 1/Value","Name":"Digital Output 1-Value","Description":"Value","Type":"boolean","Unit":"none","Writeable":"0","Forceable":"0","EnumId":"~/Servers/Automation Server/io.pt.DigitalIOValue","Metadata":null},

{"Id":"11/Server 1/Servers/Automation Server/IO Bus/IO-04/Digital Output 1/CommStatus","Name":"Digital Output 1-CommStatus","Description":"CommStatus","Type":"boolean","Unit":"none","Writeable":"0","Forceable":"0","EnumId":"~/Servers/Automation Server/io.pt.CommStatus","Metadata":null},

{"Id":"11/Server 1/Servers/Automation Server/IO Bus/IO-04/Digital Output 1/Reliability","Name":"Digital Output 1-Reliability","Description":"Reliability","Type":"integer","Unit":"none","Writeable":"0","Forceable":"0","EnumId":"~/Servers/Automation Server/io.pt.Reliability","Metadata":null},

{"Id":"11/Server 1/Servers/Automation Server/IO Bus/IO-04/Digital Output 1/RequestedValue","Name":"Digital Output 1-RequestedValue","Description":"RequestedValue","Type":"boolean","Unit":"none","Writeable":"1","Forceable":"1","EnumId":"~/Servers/Automation Server/io.pt.DigitalIOValue","Metadata":null},

{"Id":"11/Server 1/Servers/Automation Server/IO Bus/IO-04/Digital Output 1/OverrideState","Name":"Digital Output 1-OverrideState","Description":"OverrideState","Type":"boolean","Unit":"none","Writeable":"0","Forceable":"0","EnumId":"~/Servers/Automation Server/system.pt.Boolean","Metadata":null}

],

"HistoryItems":[],"AlarmItems":[]},"Metadata":null}

],"GetContainerItemsErrorResults":[],"GetContainerItemsStatus":null,"version":"1.2"}

When I set value to "11/Server 1/Servers/Automation Server/IO Bus/IO-04/Digital Output 1/RequestedValue" and it works.

I try to set Input and it seems Input is not writable. No "RequestedValue" can be found from "GetContainerItemsItems". In general, is there any case needed to change the Input value? It seems that Input is also not forceable. Is this correct?

Thanks!

Juh

Reply
JeffBowman
Sisko JeffBowman Sisko
Sisko

Posted: ‎2017-03-21 07:48 AM

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

‎2017-03-21 07:48 AM

Hi Juh,

Inputs points of IO modules are inputs because they receive data from an external stimulus (such as a voltage), they cannot be written to.

That said, I believe in theory they can be forced. If you do GetContainerItems on an Input, is the /Value property not forceable?

But, please do not 'force' an input if you want to change its value, forcing is basically for testing and manual override situations, if you need to programatically change an input on a regular basis, I would suggest reviewing your architecture, and determine if there is a better approach.

Regards,

-Jeff

Reply
sesa145614_brid
Ensign sesa145614_brid Ensign
Ensign

Posted: ‎2017-03-21 07:56 AM

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

‎2017-03-21 07:56 AM

Hi Jeff,

Yes, it is forceable. I just wounder that is there any use cases needed to set the input value.

Thanks!

Juh

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