Sign In Help
Schneider Electric
HelpSign In
Schneider Electric Exchange
  • Home
  • Collaborate
  • Develop
  • Shop
Home Collaborate Develop Shop Log in or Register Help

Invite a Co-worker

Send a co-worker an invite to the Exchange 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
  • Home
  • Collaborate
  • Exchange Community
  • :
  • SCADA & Telemetry Solutions
  • :
  • Geo SCADA Expert Forum
  • :
  • Update query for Digital points
Community Menu
  • Forums
    • By Topic
        • EcoStruxure IT
          • EcoStruxure IT forum
        • Industrial Automation
          • Industry Automation and Control Forum
          • Alliance System Integrators Forum
          • Machine Solutions in the Digital Transformation
          • EcoStruxure Automation Expert / IEC 61499 Forum
          • Industrial Edge Computing Forum
          • Level and Pressure Instrumentation Forum
          • Modicon User Group
          • PLC Club Indonesia
          • SEE Automation Club Forum
          • Fabrika ve Makina Otomasyonu Çözümleri
          • Форум по промышленной автоматизации СНГ
        • SCADA & Telemetry Solutions
          • Geo SCADA Expert Forum
          • SCADA and Telemetry Devices Forum
        • Power Distribution IEC
          • Power Distribution and Digital
          • Power Standards & Regulations
          • Paneelbouw & Energie Distributie
          • Eldistribution & Fastighetsautomation
        • Power Distribution Softwares
          • EcoStruxure Power Design Forum
          • SEE Electrical Building+ Forum
          • LayoutFAST User Group Forum
        • Wireless Information Network Solutions
          • Instrument Area Network
          • Remote Monitoring
          • Tank Level Monitoring
          • Remote Data Collection
        • Solutions for your Business
          • Solutions for Food & Beverage Forum
          • Solutions for Healthcare Forum
    • By Segment
        • Food & Beverage
          • Solutions for Food & Beverage Forum
        • Healthcare
          • Solutions for Healthcare Forum
      • EcoStruxure IT
        • EcoStruxure IT forum
      • Industrial Automation
        • Industry Automation and Control Forum
        • Alliance System Integrators Forum
        • Machine Solutions in the Digital Transformation
        • EcoStruxure Automation Expert / IEC 61499 Forum
        • Industrial Edge Computing Forum
        • Level and Pressure Instrumentation Forum
        • Modicon User Group
        • PLC Club Indonesia
        • SEE Automation Club Forum
        • Fabrika ve Makina Otomasyonu Çözümleri
        • Форум по промышленной автоматизации СНГ
      • SCADA & Telemetry Solutions
        • Geo SCADA Expert Forum
        • SCADA and Telemetry Devices Forum
      • Power Distribution IEC
        • Power Distribution and Digital
        • Power Standards & Regulations
        • Paneelbouw & Energie Distributie
        • Eldistribution & Fastighetsautomation
      • Power Distribution Softwares
        • EcoStruxure Power Design Forum
        • SEE Electrical Building+ Forum
        • LayoutFAST User Group Forum
      • Wireless Information Network Solutions
        • Instrument Area Network
        • Remote Monitoring
        • Tank Level Monitoring
        • Remote Data Collection
      • Solutions for your Business
        • Solutions for Food & Beverage Forum
        • Solutions for Healthcare Forum
      • Food & Beverage
        • Solutions for Food & Beverage Forum
      • Healthcare
        • Solutions for Healthcare Forum
  • Blogs
    • By Topic
        • Industrial Automation
          • Industrial Edge Computing Blog
          • Industry 4.0 Blog
          • Industrie du Futur France
        • SCADA & Telemetry Solutions
          • SCADA and Telemetry Blog
        • Power Distribution IEC
          • Power Events & Webinars
          • Power Foundations Blog
        • Power Distribution NEMA
          • NEMA Power Foundations Blog
        • Power Distribution Softwares
          • EcoStruxure Power Design Blog
          • SEE Electrical Building+ Blog
        • Solutions for your Business
          • Solutions for Food & Beverage Blog
          • Solutions for Healthcare Blog
          • Solutions for Retail Blog
        • Community experts & publishers
          • Publishers Community
    • By Segment
        • Food & Beverage
          • Solutions for Food & Beverage Blog
        • Healthcare
          • Solutions for Healthcare Blog
        • Retail
          • Solutions for Retail Blog
      • Industrial Automation
        • Industrial Edge Computing Blog
        • Industry 4.0 Blog
        • Industrie du Futur France
      • SCADA & Telemetry Solutions
        • SCADA and Telemetry Blog
      • Power Distribution IEC
        • Power Events & Webinars
        • Power Foundations Blog
      • Power Distribution NEMA
        • NEMA Power Foundations Blog
      • Power Distribution Softwares
        • EcoStruxure Power Design Blog
        • SEE Electrical Building+ Blog
      • Solutions for your Business
        • Solutions for Food & Beverage Blog
        • Solutions for Healthcare Blog
        • Solutions for Retail Blog
      • Community experts & publishers
        • Publishers Community
      • Food & Beverage
        • Solutions for Food & Beverage Blog
      • Healthcare
        • Solutions for Healthcare Blog
      • Retail
        • Solutions for Retail Blog
  • Ideas
        • Industrial Automation
          • Modicon Ideas & new features
        • SCADA & Telemetry Solutions
          • Geo SCADA Expert Ideas
          • SCADA and Telemetry Devices Ideas
  • Knowledge Center
    • Building Automation Knowledge Base
    • Industrial Automation Knowledge Base
    • Industrial Automation How-to videos
    • SCADA & Telemetry Solutions Knowledge Base
    • Digital E-books
    • Success Stories Corner
    • Power Talks
  • Events & Webinars
    • Innovation Talks
    • Innovation Summit
    • Let's Exchange Series
    • Technology Partners
  • Support
    • Ask Exchange
    • Leaderboard
    • Our Community Guidelines
    • Community User Guide
    • How-To & Best Practices
    • More
Join Now
How can we help?
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: 
51230members
Join Now
245445posts
Join Now

Update query for Digital points

Options
  • Subscribe to RSS Feed
  • Mark Topic as New
  • Mark Topic as Read
  • Float this Topic for Current User
  • Bookmark
  • Subscribe
  • Mute
  • Printer Friendly Page
Back to Geo SCADA Expert Forum
scott11davis
scott11davis
Cadet
‎2020-01-24 05:07 AM
0 Likes
7
1108
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
‎2020-01-24 05:07 AM

Update query for Digital points

Is it possible to use Update query to Update one of the Identification property of a Digital point.

But I am not able to do it

 

I used

UPDATE CDBOUTSTATION

SET Description = Newsite

WHERE

ID='10000'

 

The error i get is The query statement is malfunctioned or invalid. Column Newsite not found..... Equality operation '=' cannot be used with Integer and String.

 

Is it possible to use Update for Strings ?

Labels
  • SCADA
Share
Reply
  • All forum topics
  • Previous Topic
  • Next Topic
7 Replies 7
AndrewScott
Lieutenant AndrewScott
Lieutenant
‎2020-01-24 05:19 AM
0 Likes
6
1100
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
‎2020-01-24 05:19 AM

Re: Update query for Digital points

The first error "Column Newsite not found." is occurring because Newsite is missing the enclosing single quotes to make it a string literal (assuming Description is a string field).

The second error "Equality operation '=' cannot be used with Integer and String." is occurring because the ID column is an integer but the value it is being compared with is a string literal (it is enclosed in quotes).

The updated query is:

 

UPDATE CDBOUTSTATION
SET Description = 'Newsite'
WHERE
ID=10000

 

 


Andrew Scott, Lead Engineer, AVEVA
Share
Reply
scott11davis
scott11davis
Cadet
‎2020-01-24 05:40 AM
0 Likes
5
1097
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
‎2020-01-24 05:40 AM

Re: Update query for Digital points

I tried other way as well.

The error i get for that is

The results cannot be displayed. 

DML statements not supported from lists

Share
Reply
AndrewScott
Lieutenant AndrewScott
Lieutenant
‎2020-01-24 05:49 AM
0 Likes
4
1093
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
‎2020-01-24 05:49 AM

Re: Update query for Digital points

A list in ViewX (or WebX) is used to display the result set from a query so requires a SELECT statement.

 

To execute DML statements (UPDATE, CREATE or DELETE) you need to use a different application. The Query Pad tool that comes with ClearSCADA can be used for this purpose.


Andrew Scott, Lead Engineer, AVEVA
Share
Reply
sbeadle
Sisko sbeadle Sisko
Sisko
‎2020-01-24 05:59 AM
0 Likes
3
1090
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
‎2020-01-24 05:59 AM

Re: Update query for Digital points

Look up QueryPad in the help.

Enter query in the lower pane.

Hint - hold Ctrl key down when pressing Enter to execute a query.

Share
Reply
scott11davis
scott11davis
Cadet
‎2020-02-12 08:28 AM
0 Likes
2
1019
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
‎2020-02-12 08:28 AM

Re: Update query for Digital points

It does work but I used Point ID to update. I wanted to update the Description of a point, But  it had cleared other point descriptions on the same template except the one which I wanted to update. I tried several ways to check it but nothing helped and now I have to manually or use update query to update other points on the same template. And it does not throw up any error.

 

Share
Reply
Hardin4019
Lieutenant Hardin4019
Lieutenant
‎2020-02-12 09:18 AM
0 Likes
0
1010
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
‎2020-02-12 09:18 AM

Re: Update query for Digital points

If the Point you are trying to update is in an Instance of a Template, is the Attribute of that Point you are trying to update included in the Property Overrides of the Template? If not, you could change the attribute in the template to say "Newsite", then it will be set to all of the instances.

 

If the Point Attribute is already included in the Property Overrides of the Template, then only new Instances of the original Template would say this. Which is likely part of what you would like to happen.

 

To go back and fill in the attribute on Instances of the Template where the Property Override for the Attribute is already turned on and the Attribute is blank for many of the Instances, you likely need to take a slightly different approach.

 

One way I have updated Point.objDescription attributes is to setup a Function Block Diagram set to an interval of 0 seconds in the Template, then map out somewhere that has the objDescription I desire, or even a Constant in the FBD, to the Point.objDescription. Then there are two ways to execute all of the FBD's, either manually one at a time, or by creating a Structured Text program that finds all of the FBD's of a particular name and executing them.

 

The second way is much like the ST program mentioned just above for executing a FBD with the time interval set to 0 seconds. Write a ST program with a Query in it that will find all of the Instances of a particular template, and will update the Point.Attribute. Of course some care needs to be taken in setting up the query to not update Instances of the Template you don't want it to. For instance having the ST Query only return results where the Point.Attribute is empty, or in a specific Group, etc.

Share
Reply
BevanWeiss
Sisko BevanWeiss
Sisko
‎2020-02-12 01:42 PM
0 Likes
0
1002
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
‎2020-02-12 01:42 PM

Re: Update query for Digital points

I think you should just tell us what it is you're ultimately trying to do.

Only giving us a small part of the puzzle results in us giving you the wrong puzzle solution.

 

 

If I were to guess, you want to update all instances of a point (which derives from a template site/device) so that some aspect of the point description will relate back to the site in which it is actually contained.  Correct?

 

So the way that I would do this is:  QueryPad

 

If you have your template like

SiteTemplate

 -> Devices

   -> Pump 1

     -> Running

 

and you want the Running point Description to be updated to say 'Site Name - Pump 1 - Running'

Then you could do this as (@sbeadle no SQL code entry 😞 )

UPDATE CDBPoint

SET Description = ParentGroupId->ParentGroupId->ParentGroupId->Name || ' - ' || ParentGroupId->Name || ' - ' || Name

WHERE Name='Running'

AND ParentGroupId->ParentGroupId->ParentGroupId->TemplateId=[MAGIC NUMBER]


Lead Control Systems Engineer for Alliance Automation (VIC).
All opinions are my own and do not represent the opinions or policies of my employer, or of my cat..
Share
Reply
Top Experts
User Count
sbeadle
Sisko sbeadle Sisko
188
BevanWeiss
Sisko BevanWeiss
52
AdamWoodland
Lt. Commander AdamWoodland Lt. Commander
16
JChamberlain
Lieutenant JChamberlain Lieutenant
16
AndrewScott
Lieutenant AndrewScott
15
See More Top Experts
Find a Service Provider
Find a certified partner to help you address your integration, installation, maintenance and project needs.
View all Providers
Support

Have a question? Please contact us with details, and we will respond.

Contact Us
FAQ

Look through existing questions to find popular answers.

Learn More
About

Want to know more about Exchange and its possibilities?

Learn More

Full access is just steps away!

Join Exchange for FREE and get unlimited access to our global community of experts.

Connect with Peers & Experts

Discuss challenges in energy and automation with 30,000+ experts and peers.

Get Support in Our Knowledge Base

Find answers in 10,000+ support articles to help solve your product and business challenges.

Ask Questions. Give Solutions

Find peer based solutions to your questions. Provide answers for fellow community members!

Register today for FREE

Register Now

Already have an account?Log in

About Us FAQ Terms & Conditions Privacy Notice Change your cookie settings
©2020, Schneider Electric