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

Typical Automation Interface Errors

Geo SCADA Knowledge Base

Access vast amounts of technical know-how and pro tips from our community of Geo SCADA experts.

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
  • Knowledge Center
  • Geo SCADA Knowledge Base
  • Typical Automation Interface Errors
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 Labels
Top Labels
  • Alphabetical
  • database 32
  • Web Server and Client 31
  • WebX 19
  • Request Form 18
  • Lists, Events & Alarms 16
  • ViewX 15
  • Application Programming 12
  • Setup 12
  • Telemetry 8
  • Events & Alarms 7
  • Lists 7
  • Mimic Graphics 7
  • Downloads 6
  • Support 5
  • IoT 5
  • SCADA 5
  • Geo SCADA Expert 5
  • Drivers and Communications 4
  • Security 4
  • DNP 3 3
  • IEC 61131-3 Logic 3
  • Trends and Historian 2
  • Virtual ViewX 2
  • Geo Scada 1
  • ClearSCADA 1
  • Templates and Instances 1
  • Releases 1
  • Maps and GIS 1
  • Mobile 1
  • Architectures 1
  • Tools & Resources 1
  • Privacy Policy 1
  • OPC-UA 1
  • Previous
  • 1 of 4
  • Next
Latest Blog Posts
  • OPC UA - Driver and Server
  • Requirements for Generating a Valid OPC UA Server Certificate
  • Load Events Using LoadRecord and LoadRecords
  • Geo SCADA Embedded Component Licenses
  • Geo SCADA 2023 Known Issues
Related Products
product field
Schneider Electric
EcoStruxure™ Geo SCADA Expert

Invite a Colleague

Found this content useful? Share it with a Colleague!

Invite a Colleague Invite
Anonymous user
Not applicable
‎2021-06-09 12:45 PM
0 Likes
0
1307
  • Bookmark
  • Subscribe
  • Email to a Friend
  • Printer Friendly Page
  • Report Inappropriate Content

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

‎2021-06-09 12:45 PM

Typical Automation Interface Errors

Originally published on Geo SCADA Knowledge Base by Anonymous user | June 09, 2021 09:45 PM

📖 Home  Back  
This article highlights some of the most common errors made when using the automation interface to connect and manipulate the database of a ClearSCADA server. 

 

You should use an error handler to trap the errors and deal with them in an elegant manner. The code segment below shows an example of how to trap errors in VB or VBA.

'be careful using this line - error handling is now up to you
On Error Resume Next
...
'try and connect
objserver.connect "system name", "username", "password"
'now display any error message
msgbox Err.Description



Permission Denied / You do not have the necessary privileges

One of these errors will occur if you attempt to modify the properties of an object where the user credentials supplied to connect to the system do not have sufficient permissions required to perform the function. An example of this is where you attempt to modify an object property, but the user account used to connect via the automation interface does not have Configuration permissions for the specified object.

To correct this error, either modify the security permissions on the server to allow the required permission, or change the user account used to connect to the automation interface to one that has sufficient permissions for the tasks attempted.

Object variable or With block variable not set

This error message occurs if the programmer attempts to access the properties of an object that has not been assigned. If is good programming practice to test for correct assignment as shown in the following example:

Set obj = objServer.FindObject("Something that does not exist") 'the object does not exist
If obj Is Nothing Then 'No object was found so display an error
messageMsgBox "Error: object not found"
Else
'do something useful with the object
End If


If the programmer did not test for "Is Nothing", then attempting to manipulate obj would cause this error.

Group Not Found

This error is produced when you attempt to create a new object in a location in the database that does not exist. The second parameter of the CreateObject method is the location in which the object will be created. Ensure that this location exists before calling the CreateObject method.

Note: To create an object at the root level of the database, the second parameter of the CreateObject method must be named "$Root".

Automation Error

This error can occur when an attempt is made via the automation interface to write to a read-only property of an object.

Before trying to write to any object properties, it is important to know whether they are writeable. The ClearSCADA database schema (http://127.0.0.1/schema) provides a list of all the database classes, object types and properties. Each property will be listed along with whether or not the field is writeable. Please refer to the ClearSCADA documentation for further details on the database schema.

Object doesn't support this property or method

This error message occurs if the programmer attempts to read or write to a property of an object, or call a method on an object that doesn't exist. To correct this error, refer to the database schema for details of available object properties and ensure that the automation interface code uses only the available properties and methods.

Another consideration when porting code from one machine to another, is that the original developer may have used custom fields in the database. Check the original source database to see if the properties used in the code were configured as custom fields.

Class "xyz" not found

This error occurs if the programmer attempts to create a new object in the ClearSCADA database using the CreateObject method and specifies a class that does not exist in the database. It is recommended that you check the database schema to determine the names of the classes that exist. The classes available vary from server to server depending on installed driver options.

Cannot create an object of class xyz

This message occurs if the programmer attempts to create an object of a class that exists in the database, but is not a creatable class. There are a variety of non-creatable classes in the schema of the database. These can be identified by the absence of a bracketed description after the title when viewed in the database schema on the "All classes" page.

The simplest way to navigate through the database schema and determine what objects can be created is to use the "Createable Classes" pages (this is shown by default).

The target object is a system managed object

This error occurs if the programmer attempts to create a database object in a group that is a template instance. Ensure that you only try to create objects in groups or templates. Do not attempt to create objects in template instances.

Object name contains invalid character "."

This error will occur if you attempt to rename an object and define a full path name during this process. Since the "." character represents a folder level in the full object name, you cannot create define an object name to contain a period ("."). If you want to redefine the location of the object, use the Move method on the object, or simply create it in the correct location as part of the CreateObject method call.

"xyz" is referenced by "uvw"

This error occurs if the programmer attempts to delete a database object that is referenced by another object. An example for this would be deleting a point that is displayed on a mimic, or deleting an outstation that has points connected to it.

The DeleteObject method on the server object contains two parameters. The first parameter defines the object to be deleted. The second parameter defines whether or not reference checking is performed by forcing the deletion. If set to False, errors will be generated when references to the object are found. When set to True, references will be broken and the deletion performed.

Aggregate not found

This error will occur when a user attempts to reference an aggregate on an object that does not exist. Refer to the database schema and verify that the name of the aggregate has been entered correctly and that the aggregate required is valid for the type of object being used.

Aggregate is not defined

This error will be returned when the program attempts to write to a property that exists on a disabled aggregate. For example, you cannot configure the compression options of the historic aggregate on a point until the historic aggregate has been enabled. The code below will return an error unless the aggregate has been enabled, or the line oAgg.Enable = True is added before setting the value of the compression property.

Set oAgg = obj.Aggregate("Historic")
oAgg1.Property("Compress") = 1



Failed to put template field

This error occurs if the programmer attempts to call the PropertyOverride method on an object that is not a Template. Ensure that the object on which you are trying to set property overrides is a template.

Field not found

This error occurs if the programmer attempts to set a property override using a property name that does not exist. For example, trying to allow an override on the property name "HanddressAllowed" for an internal analog point will work, but the property "HanddressAllowed123" will return the Field not found error.

Object not template

This error can occur if you try and set a property override on an object that does not reside in the selected template. The PropertyOverride method requires the object ID of the object on which the property overrides are to be enabled / disabled. This object must be within the template.

Cannot write to field in a template

On an object that is part of a template instance, the programmer cannot write to a property of the object unless the property is overridden at template level. This error occurs if the programmer attempts to write to a property where the property override has not been set. Ensure that all properties you wish to configure on objects in a template instance have the associated property overrides enabled in the template.

Go: Home Back

Labels:
  • Application Programming

  • Web Server and Client

Author

Biography

Anonymous user

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

  • Back to Blog
  • Newer Article
  • Older Article
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