EcoStruxure Geo SCADA Expert Forum
Schneider Electric support forum about installation, configuration, integration and troubleshooting of EcoStruxure Geo SCADA Expert (ClearSCADA, ViewX, WebX).
Link copied. Please paste this link to share this article on your social media post.
Posted: 2025-03-07 02:45 PM
I have a script that is attempting to write to the ".LowLimitStd" property of an analog point. The error "The server denies access (read and/or write) to the specified item. ViewXScript" is thrown when the method "server.setopcvalue(fullname.lowlimitstd, value)" is called.
What is unusual, is that this same script works for other analog points. Is this a security properties issue or some other setting or "checkbox" that needs to be set? If security, what permissions are missing? This script is being called from a popup form, which I assume means that it is running in the security context of the ViewX logged in user.
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2025-03-10 07:48 AM
My guess is the point is in a instance of the template and that the low limit has not had its override enabled.
You certainly could have security permissions applied. To check just right click on it in the database tree and select Edit Security.
You can also try using the super user from the ViewX on the server and see what happens.
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2025-03-10 11:22 AM
Geoff is on the right path. My guess is overrides. Second guess would be permissions (Maybe it's a new tag that isn't inheriting permissions or something).
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2025-03-11 04:20 AM
Thanks for the replies.
We did some experimentation and determined the issue. As it turns out, the object was missing the "configure" permission for the operator. We turned this on and it's working now. This does however bring up a different question. Is it possible to define a script or method to run under a different security context? The script in question is used to perform some automation over alarm limits. While the script is triggered by the operator, we do not necessarily want the operator to have direct ability to change alarm limits. Execution is as follows:
Operator clicks button on screen to popup data entry form.
Operator clicks button on form to accept values and execute "limit update" script.
Limit update script writes limits via "server.setopcvalue" method (which needs to run under different security context).
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2025-03-11 09:32 PM
thw only workaround I have found is to use a ST program. The program logic can do configuration changes, but has a setable execution permission in its configuration. I did that for a refresh button set to read permission so any logged in user could force a outstation refresh.
Link copied. Please paste this link to share this article on your social media post.
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.