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

Historical data import from a csv file

EcoStruxure Geo SCADA Expert Forum

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

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
  • Remote Operations
  • EcoStruxure Geo SCADA Expert Forum
  • Historical data import from a csv file
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
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
Kirk sbeadle Kirk
307
AndrewScott
Admiral AndrewScott
95
BevanWeiss
Spock BevanWeiss
89
AdamWoodlandToo
Lt. Commander AdamWoodlandToo
36
View All

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
Solved
Mindaugas
Ensign Mindaugas
Ensign

Posted: ‎2024-02-18 10:47 PM

0 Likes
7
1158
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • 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: ‎2024-02-18 10:47 PM

Historical data import from a csv file

Hello,

I want to try import historical data from *.csv file.

I try to use this script:

 

sub AddDataFileAI22()
Set obj = Server.FindObject("2.Temperature.AI22")
Set His = obj.Interface.Historic
His.LoadDataFile "C:\GeoScada\Test.csv"
end sub

 

I put this script in New script library also I try to run this script via new button, Pick action -> Script.

But in both cases the data could not be uploaded to historical archive.

In csv file (created with Notepad++) I'm using this format

2024,02,14,09,25,05,15.2,192

I try to put this historical data to Modbus AI point.

Where could the problem be?

Labels
  • Labels:
  • Scripting
  • ViewX
  • Tags:
  • english
  • scada
  • SCADA app
  • SCADA software
  • SCADA tutorial
  • Telemetry and SCADA
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
Mindaugas
Ensign Mindaugas
Ensign

Posted: ‎2024-02-29 03:44 AM

0 Likes
0
971
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • 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: ‎2024-02-29 03:44 AM

I've tried everything, but nothing has helped. But I've solved this problem with TransferHistory tool.

Thank you for help!

See Answer In Context

Reply

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

Replies 7
AdamWoodlandToo
Lt. Commander AdamWoodlandToo
Lt. Commander

Posted: ‎2024-02-19 02:36 AM

0 Likes
1
1156
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • 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: ‎2024-02-19 02:36 AM

Double check the file encoding, should be ANSI whereas I suspect most text editors these days use Unicode by default. 

 

* Should be ANSI according to https://community.se.com/t5/Geo-SCADA-Knowledge-Base/Importing-History-Using-LoadDataValue-and-LoadD...

Reply

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

Mindaugas
Ensign Mindaugas
Ensign

Posted: ‎2024-02-19 04:04 AM

In response to AdamWoodlandToo
0 Likes
0
1132
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • 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: ‎2024-02-19 04:04 AM

I checked one more time, encoding is ANSI.

Reply

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

AndrewScott
Admiral AndrewScott
Admiral

Posted: ‎2024-02-20 01:00 AM

0 Likes
0
1084
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • 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: ‎2024-02-20 01:00 AM

When the LoadDataFile method fails what error message is reported?

 

As your using a mimic script it will be running on a ViewX client, but the filename passed to the LoadDataFile method is the name of a file on current main server where the method is executed. Have you copied the "Test.csv" file onto the correct server?


Andrew Scott, R&D Principal Technologist, AVEVA
Reply

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

Mindaugas
Ensign Mindaugas
Ensign

Posted: ‎2024-02-20 04:29 AM

0 Likes
0
1065
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • 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: ‎2024-02-20 04:29 AM

When I try to execute the script, I don't get any messages in event list, or in log txt files.

ViewX and server is in my computer, "Test.csv" file is also in my computer.

Maybe there are other ways to execute the script?

 

Reply

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

AndrewScott
Admiral AndrewScott
Admiral

Posted: ‎2024-02-23 01:53 AM

0 Likes
0
1029
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • 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: ‎2024-02-23 01:53 AM

If the LoadDataFile method call fails then the error is returned back to the script and will be displayed in ViewX in an error dialog box. For example:

 

image.png

 

You can also see the method call and error message in the DB log on the server. For example:

23-FEB-2024 09:40:48.447 A1AC [WEB] W01#00 Request {POST, /webservices/scx, HTTP/1.1}
23-FEB-2024 09:40:48.447 A1AC [WEB] W01#00 Header {Accept-Encoding: deflate}
23-FEB-2024 09:40:48.447 A1AC [WEB] W01#00 Header {SCX6-Auth: *****;}
23-FEB-2024 09:40:48.447 A1AC [WEB] W01#00 Header {Content-Type: text/xml; charset=utf-8}
23-FEB-2024 09:40:48.447 A1AC [WEB] W01#00 Header {SOAPAction: "http://serck-controls.com/webservices/SCX6/Invoke"}
23-FEB-2024 09:40:48.447 A1AC [WEB] W01#00 Header {SCX-Client-Version: 6.87.8812}
23-FEB-2024 09:40:48.447 A1AC [WEB] W01#00 Header {User-Agent: ViewXScript}
23-FEB-2024 09:40:48.447 A1AC [WEB] W01#00 Header {Host: localhost:8080}
23-FEB-2024 09:40:48.447 A1AC [WEB] W01#00 Header {Content-Length: 289}
23-FEB-2024 09:40:48.447 A1AC [WEB] W01#00 Header {Connection: Keep-Alive}
23-FEB-2024 09:40:48.447 A1AC [WEB] W01#00 Request Content
A1AC <?xml version="1.0"?>
A1AC <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
A1AC <soap:Body>
A1AC <Invoke xmlns="http://serck-controls.com/webservices/SCX6/">
A1AC <Object>77</Object>
A1AC <DispId>1666208740</DispId>
A1AC <Context>get</Context>
A1AC </Invoke>
A1AC </soap:Body>
A1AC </soap:Envelope>
23-FEB-2024 09:40:48.447 A1AC [WEB] W01#00 ObjectId: 77
23-FEB-2024 09:40:48.448 A1AC [WEB] W01#00 Reply Content
A1AC <?xml version="1.0"?>
A1AC <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
A1AC <soap:Body>
A1AC <InvokeResponse xmlns="http://serck-controls.com/webservices/SCX6/">
A1AC <Result interface="true" interfaceDefined="true"/>
A1AC </InvokeResponse>
A1AC </soap:Body>
A1AC </soap:Envelope>
23-FEB-2024 09:40:48.448 A1AC [WEB] W01#00 Reply {HTTP/1.1 200 OK}
23-FEB-2024 09:40:48.448 A1AC [WEB] W01#00 Header {Date: Fri, 23 Feb 2024 09:40:48 GMT}
23-FEB-2024 09:40:48.448 A1AC [WEB] W01#00 Header {Expires: Fri, 23 Feb 2024 09:40:48 GMT}
23-FEB-2024 09:40:48.448 A1AC [WEB] W01#00 Header {Cache-Control: no-cache}
23-FEB-2024 09:40:48.448 A1AC [WEB] W01#00 Header {Content-Type: text/xml; charset=utf-8}
23-FEB-2024 09:40:48.448 A1AC [WEB] W01#00 Header {Content-Length: 283}
23-FEB-2024 09:40:48.448 A1AC [WEB] W01#00 Header {X-Frame-Options: SAMEORIGIN}
23-FEB-2024 09:40:48.448 A1AC [WEB] W01#00 UpdateStartRequestTime : Read Request
23-FEB-2024 09:40:48.448 A1AC [WEB] W01#00 Request {POST, /webservices/scx, HTTP/1.1}
23-FEB-2024 09:40:48.448 A1AC [WEB] W01#00 Header {Accept-Encoding: deflate}
23-FEB-2024 09:40:48.449 A1AC [WEB] W01#00 Header {SCX6-Auth: *****;}
23-FEB-2024 09:40:48.449 A1AC [WEB] W01#00 Header {Content-Type: text/xml; charset=utf-8}
23-FEB-2024 09:40:48.449 A1AC [WEB] W01#00 Header {SOAPAction: "http://serck-controls.com/webservices/SCX6/GetIDsOfNames"}
23-FEB-2024 09:40:48.449 A1AC [WEB] W01#00 Header {SCX-Client-Version: 6.87.8812}
23-FEB-2024 09:40:48.449 A1AC [WEB] W01#00 Header {User-Agent: ViewXScript}
23-FEB-2024 09:40:48.449 A1AC [WEB] W01#00 Header {Host: localhost:8080}
23-FEB-2024 09:40:48.449 A1AC [WEB] W01#00 Header {Content-Length: 314}
23-FEB-2024 09:40:48.449 A1AC [WEB] W01#00 Header {Connection: Keep-Alive}
23-FEB-2024 09:40:48.449 A1AC [WEB] W01#00 Request Content
A1AC <?xml version="1.0"?>
A1AC <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
A1AC <soap:Body>
A1AC <GetIDsOfNames xmlns="http://serck-controls.com/webservices/SCX6/">
A1AC <Object>
A1AC <Interface>1666208740</Interface>
A1AC 77</Object>
A1AC <Name>LoadDataFile</Name>
A1AC </GetIDsOfNames>
A1AC </soap:Body>
A1AC </soap:Envelope>
23-FEB-2024 09:40:48.449 A1AC [WEB] W01#00 Reply Content
A1AC <?xml version="1.0"?>
A1AC <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
A1AC <soap:Body>
A1AC <GetIDsOfNamesResponse xmlns="http://serck-controls.com/webservices/SCX6/">
A1AC <DispId>1398803563</DispId>
A1AC </GetIDsOfNamesResponse>
A1AC </soap:Body>
A1AC </soap:Envelope>
23-FEB-2024 09:40:48.449 A1AC [WEB] W01#00 Reply {HTTP/1.1 200 OK}
23-FEB-2024 09:40:48.449 A1AC [WEB] W01#00 Header {Date: Fri, 23 Feb 2024 09:40:48 GMT}
23-FEB-2024 09:40:48.449 A1AC [WEB] W01#00 Header {Expires: Fri, 23 Feb 2024 09:40:48 GMT}
23-FEB-2024 09:40:48.449 A1AC [WEB] W01#00 Header {Cache-Control: no-cache}
23-FEB-2024 09:40:48.449 A1AC [WEB] W01#00 Header {Content-Type: text/xml; charset=utf-8}
23-FEB-2024 09:40:48.449 A1AC [WEB] W01#00 Header {Content-Length: 274}
23-FEB-2024 09:40:48.449 A1AC [WEB] W01#00 Header {X-Frame-Options: SAMEORIGIN}
23-FEB-2024 09:40:48.450 A1AC [WEB] W01#00 UpdateStartRequestTime : Read Request
23-FEB-2024 09:40:48.450 A1AC [WEB] W01#00 Request {POST, /webservices/scx, HTTP/1.1}
23-FEB-2024 09:40:48.450 A1AC [WEB] W01#00 Header {Accept-Encoding: deflate}
23-FEB-2024 09:40:48.450 A1AC [WEB] W01#00 Header {SCX6-Auth: *****;}
23-FEB-2024 09:40:48.450 A1AC [WEB] W01#00 Header {Content-Type: text/xml; charset=utf-8}
23-FEB-2024 09:40:48.450 A1AC [WEB] W01#00 Header {SOAPAction: "http://serck-controls.com/webservices/SCX6/Invoke"}
23-FEB-2024 09:40:48.450 A1AC [WEB] W01#00 Header {SCX-Client-Version: 6.87.8812}
23-FEB-2024 09:40:48.450 A1AC [WEB] W01#00 Header {User-Agent: ViewXScript}
23-FEB-2024 09:40:48.450 A1AC [WEB] W01#00 Header {Host: localhost:8080}
23-FEB-2024 09:40:48.450 A1AC [WEB] W01#00 Header {Content-Length: 487}
23-FEB-2024 09:40:48.450 A1AC [WEB] W01#00 Header {Connection: Keep-Alive}
23-FEB-2024 09:40:48.451 A1AC [WEB] W01#00 Request Content
A1AC <?xml version="1.0"?>
A1AC <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
A1AC <soap:Body>
A1AC <Invoke xmlns="http://serck-controls.com/webservices/SCX6/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
A1AC <Object>77</Object>
A1AC <Interface>1666208740</Interface>
A1AC <DispId>1398803563</DispId>
A1AC <Context>method</Context>
A1AC <Arg xsi:type="xsd:string">D:\ClearSCADA\TestData.csv</Arg>
A1AC </Invoke>
A1AC </soap:Body>
A1AC </soap:Envelope>
23-FEB-2024 09:40:48.451 A1AC [WEB] W01#00 ObjectId: 77
23-FEB-2024 09:40:48.451 A1AC [TRANS] 0 WebExecute Time = 0.000097 seconds
23-FEB-2024 09:40:48.451 A1AC [TRANS] 0 WEB Invoke
23-FEB-2024 09:40:48.451 A1AC [TRANS] 0 User Guest
23-FEB-2024 09:40:48.452 A1AC [TRANS] 0 Overall Status 8007006E -> The system cannot open the device or file specified.
23-FEB-2024 09:40:48.452 A1AC [TRANS] 0 ObjectId 77
23-FEB-2024 09:40:48.452 A1AC [TRANS] 0 InterfaceId 1666208740
23-FEB-2024 09:40:48.452 A1AC [TRANS] 0 DispId 1398803563
23-FEB-2024 09:40:48.452 A1AC [TRANS] 0 Flags 0x1
23-FEB-2024 09:40:48.452 A1AC [TRANS] 0 ArgCount 1
23-FEB-2024 09:40:48.452 A1AC [TRANS] 0 Arg 0: VT_BSTR D:\ClearSCADA\TestData.csv
23-FEB-2024 09:40:48.453 A1AC [WEB] W01#00 Reply Content
A1AC <?xml version="1.0"?>
A1AC <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
A1AC <soap:Body>
A1AC <soap:Fault>
A1AC <faultcode>soap:Client</faultcode>
A1AC <faultstring>The system cannot open the device or file specified.</faultstring>
A1AC <detail>
A1AC <scx:errorcode xmlns:scx="http://serck-controls.com/webservices/SCX6/">8007006E</scx:errorcode>
A1AC </detail>
A1AC </soap:Fault>
A1AC </soap:Body>
A1AC </soap:Envelope>
23-FEB-2024 09:40:48.453 A1AC [WEB] W01#00 Reply {HTTP/1.1 500 Internal Server Error}
23-FEB-2024 09:40:48.453 A1AC [WEB] W01#00 Header {Date: Fri, 23 Feb 2024 09:40:48 GMT}
23-FEB-2024 09:40:48.453 A1AC [WEB] W01#00 Header {Expires: Fri, 23 Feb 2024 09:40:48 GMT}
23-FEB-2024 09:40:48.453 A1AC [WEB] W01#00 Header {Cache-Control: no-cache}
23-FEB-2024 09:40:48.453 A1AC [WEB] W01#00 Header {Content-Type: text/xml; charset=utf-8}
23-FEB-2024 09:40:48.453 A1AC [WEB] W01#00 Header {Content-Length: 406}
23-FEB-2024 09:40:48.453 A1AC [WEB] W01#00 Header {X-Frame-Options: SAMEORIGIN}

 

If you're not seeing an error then that suggests the method was successful so the data should have been loaded into the historian for the point.

 

My only other thought is any historic compression configured on the point - this might be filtering out the new data. See Historic Data Compression 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.

sbeadle
Kirk sbeadle Kirk
Kirk

Posted: ‎2024-02-29 02:29 AM

0 Likes
0
997
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • 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: ‎2024-02-29 02:29 AM

Another potential issue - check that your data times are not older than the writable period for your historic points.

(And make sure Historic data is enabled for each point too).

Reply

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

Mindaugas
Ensign Mindaugas
Ensign

Posted: ‎2024-02-29 03:44 AM

0 Likes
0
972
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • 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: ‎2024-02-29 03:44 AM

I've tried everything, but nothing has helped. But I've solved this problem with TransferHistory tool.

Thank you for help!

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

 
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