Help
  • Explore Community
  • Get Started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Notifications
Login / Register
Schneider Electric
Community
Community
Notifications
close
  • Categories
  • Forums
  • Knowledge Center
  • Blogs
  • Ideas
  • Events & Webinars
Help
Help
  • Explore Community
  • Get Started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Login / Register

Contact Support

Close

Ask our Experts

Have a question related to our products, solutions or services? Get quick support on community Forums

Email Us

For Community platform-related support, please email us

New Community Ranking System
Our Community ranking system has recently been updated. You may notice changes in user rankings and receive system messages or notifications. If you have questions about how the new ranking works, please refer to the announcement post for more details (click here).

E-Mail weekly CSV export of Point Historic Data

EcoStruxure Geo SCADA Expert Forum

Schneider Electric support forum about installation, configuration, integration and troubleshooting of EcoStruxure Geo SCADA Expert (ClearSCADA, ViewX, WebX).

Search in

Improve your search experience:

  • Exact phrase → Use quotes " " (e.g., "error 404")
  • Wildcard → Use * for partial words (e.g., build*, *tion)
  • AND / OR → Combine keywords (e.g., login AND error, login OR sign‑in)
  • Keep it short → Use 2–3 relevant words , not full sentences
  • Filters → Narrow results by section (Knowledge Base, Users, Products)
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: 

Select a Country

Please select a country to continue with beta search.

  • Home
  • Schneider Electric Community
  • Remote Operations
  • EcoStruxure Geo SCADA Expert Forum
  • E-Mail weekly CSV export of Point Historic Data
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
sbeadle
sbeadle Champion
335
AndrewScott
AndrewScott
125
BevanWeiss
BevanWeiss
103
View All

Recommended Forums

  • Remote Operations Forum

  • APC UPS Data Center & Enterprise Solutions Forum

Invite a Colleague

Found this content useful? Share it with a Colleague!

Invite a Colleague Invite
Solved Go to Solution
Back to EcoStruxure Geo SCADA Expert Forum
Start a Topic
Solved
MarkPitout
MarkPitout Troubleshooter
Troubleshooter

Posted: ‎2026-06-08 04:16 AM . Last Modified: ‎2026-06-08 10:28 AM

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

Posted: ‎2026-06-08 04:16 AM . Last Modified: ‎2026-06-08 10:28 AM

E-Mail weekly CSV export of Point Historic Data

I have a customer that replaced an old telemetry SCADA with Geo SCADA and are looking to reproduce a bit of functionality that they had before. The old SCADA used to dump historical data from a selection of points to a set of CSV files on a weekly basis and then e-mail those CSV files to specified e-mail address.
I know how to use the SQL-Export to create CSV files - but that doesn't e-mail them
I know how to do alarm redirections to send an e-mail - but that is for alarms not for scheduled reports.
I've also seen that Crystal Reports was previously used to e-mail weekly reports - but in this case my customer doesn't have a Crystal Reports runtime license and I am loath to recommend they get one.

Any suggestions? VBScript or Python maybe?

**** Edit *****

I've managed to write VBScript that will put all the CSV files from a set of SQL-Export objects, into a ZIP file (using Scripting.FileSystemObject) and then e-mails the ZIP file (using CDO.Message).

The VB Script is in a Script Library and I can trigger the VBScript to perform the aforementioned functions from a button on a mimic.

Now all I need to figure out is how to configure the Geo SCADA server to execute the VBScript on a regular schedule (say once a week). 

Labels
  • Labels:
  • SCADA
  • Tags:
  • english
  • scada
  • SCADA app
  • SCADA software
  • SCADA tutorial
Reply

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

  • All forum topics
  • Previous Topic
  • Next Topic

Accepted Solutions
MarkPitout
MarkPitout Troubleshooter
Troubleshooter

Posted: ‎2026-06-10 01:49 PM

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

Posted: ‎2026-06-10 01:49 PM

With Python is by far the easier solution for this question.
Sample configuration attached with both VBScript and Python Script to achieve what I asked in my original post.

MarkPitout_0-1781124285300.png

 

Notes:
The file Sample_EMail_CSV_Reports (GeoSCADA 2025).sde was exported with the Python Script included and in Geo SCADA 2025 database format.
The file Sample_EMail_CSV_Reports (Pre GeoSCADA 2025).sde was exported without the Python Script and in Geo SCADA 2023 database format.

See Answer In Context

Attachments
Sample_EMail_CSV_Reports.zip
Reply

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

Replies 6
AdamWoodlandToo
AdamWoodlandToo
Mentor

Posted: ‎2026-06-08 04:00 PM . Last Modified: ‎2026-06-08 04:00 PM

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

Posted: ‎2026-06-08 04:00 PM . Last Modified: ‎2026-06-08 04:00 PM

A simple structured text calling SYSTEM() will probably do what you want with minimum fuss, and be set to run on interval or manually from a button.

 

Just make sure you have a Windows user defined in the Geo SCADA Server Config for system calls on any server which can be Main, and that they're enabled, and that the user has the relevant policies to log in. Ignoring that its best practice due to least privilege, if there is no user then it'll run under the service account that Geo SCADA runs as and that limits network functions (typically SMB but does impact other things too which you may use)

Reply

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

AndrewScott
AndrewScott
Leader

Posted: ‎2026-06-09 02:59 AM

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

Posted: ‎2026-06-09 02:59 AM


@AdamWoodlandToo wrote: 

Ignoring that its best practice due to least privilege, if there is no user then it'll run under the service account that Geo SCADA runs as and that limits network functions (typically SMB but does impact other things too which you may use)


You cannot enable the system calls feature without specifying a Windows user account. Running system commands under the service account was removed 10 years ago. See System Calls Settings in the help.


Andrew Scott, R&D Principal Technologist, AVEVA
Reply

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

MarkPitout
MarkPitout Troubleshooter
Troubleshooter

Posted: ‎2026-06-09 10:43 AM

In response to AdamWoodlandToo
0 Likes
0
348
  • 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.

Posted: ‎2026-06-09 10:43 AM

Hi Adam,

Call me a n00b if you like, but I'm not quite sure how to use the System() function in Structured Text logic, to execute a VBScript Sub. From what I could find about System(), it seems to be used for making calls on programs hosted by the Windows OS (as in the example in the help files, where it calls 'C:\Windows\SetInstall.exe'. 

MarkPitout_1-1781026675110.png

 

Assuming I have a Sub called 'DoAllTheThings()' in a VBScript Library called 'FileHandling' as indicated below, how should I write the Structured Text program 'ExecuteSub' ?

MarkPitout_0-1781026609427.png

 

The advice about configuring a Windows account in the server config as explained by you and Andrew is noted and understood.

 

Reply

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

AndrewScott
AndrewScott
Leader

Posted: ‎2026-06-09 11:11 AM

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

Posted: ‎2026-06-09 11:11 AM

You cannot run a VBScript that is inside a mimic (or script library) from a system call (or on a schedule), but you could save the script to a ".vbs" file on the server(s) and then use a system call to run "cscript.exe" to execute the script:

C:\Windows\System32\cscript.exe C:\GEOSCADA_Reports\EmailReports.vbs /b /nologo

https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/cscript 


Andrew Scott, R&D Principal Technologist, AVEVA
Reply

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

MarkPitout
MarkPitout Troubleshooter
Troubleshooter

Posted: ‎2026-06-09 02:22 PM

In response to AndrewScott
0 Likes
0
337
  • 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.

Posted: ‎2026-06-09 02:22 PM

Okay. That solved it. The Geo SCADA server successfully executes the VBScript in an external *.VBS file, using a system call to cscript.exe.


Pity that the Geo SCADA server cannot be configured to execute VBScript within itself on a Schedule, when that same VBScript can be called from a mimic.

Just one side note: I ended up using a System Call object and adding it to the same Schedule that  executes the SQL Export objects - a bit simpler than using Structured Text.

 

To close out this topic, I will add my example configuration and VBS file to the post if other people are interested in future.

 

I wonder if this could not have been solved better with Python? I see that Python programs defined in Geo SCADA can be run from a Schedule. hmmm...

Reply

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

MarkPitout
MarkPitout Troubleshooter
Troubleshooter

Posted: ‎2026-06-10 01:49 PM

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

Posted: ‎2026-06-10 01:49 PM

With Python is by far the easier solution for this question.
Sample configuration attached with both VBScript and Python Script to achieve what I asked in my original post.

MarkPitout_0-1781124285300.png

 

Notes:
The file Sample_EMail_CSV_Reports (GeoSCADA 2025).sde was exported with the Python Script included and in Geo SCADA 2025 database format.
The file Sample_EMail_CSV_Reports (Pre GeoSCADA 2025).sde was exported without the Python Script and in Geo SCADA 2023 database format.

Attachments
Sample_EMail_CSV_Reports.zip
Reply

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

Preview Exit Preview

never-displayed

You must be signed in to add attachments

never-displayed

 

You’ve reached the end of your document

WHAT’S NEXT?

Ask our Experts

Didn't find what you are looking for? Ask our experts!

My Dashboard

Check out the new Feeds and activities that are relevant to you.

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

    Ask our Experts

    Have a question related to our products, solutions or services? Get quick support on community Forums

    Email Us

    For Community platform-related support, please email us

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 © 2026 Schneider Electric

Welcome!

Welcome to your new personalized space.

of

Explore