×
Siemens Industry Online Support
Siemens AG
Entry type: FAQ, Entry ID: 11925601, Entry date: 02/07/2017
(1)
Rate

How do you use script to completely delete the user archive and import new data records?

  • Entry
  • Associated product(s)
Recreate the content of the user archive in WinCC.

Description for up to WinCC V7.2

  • Create a user archive as described in Entry ID 9975815.
  • Create an exported CSV file as described in Entry ID 8972156.

  • Execute the following script to delete the user archive and import the CSV file.

Description for WinCC V7.3 and higher

  • Create user archive as described in Entry ID 9975815.
  • Open the "User Archive" editor.
  • In the navigation area you select the user archive.
  • In the table area you switch from the "Fields" tab to the "Archive Data" tab.
  • In the navigation area you select User Archive again and in the pop-up menu you select the item "Archive Data > Save in File".
  • Export the user archive as a CSV file.
  • Execute the following script to delete the user archive and import the CSV file.

Script

script_deleteimport.txt (1.4 KB)

Notes

  • The user archive has to be deleted before the CSV file can be imported. This is taken into account by the script.
  • The script does not generate a prompt dialog. When the script is executed, the user archive is deleted immediately and the CSV file is imported.
  • With WinCC V7.2 and higher the CSV file setup is different. Proceed as follows if you want to import old data records (created with WinCC V6.x to V7.0) with WinCC V7.2 or higher:
    - Migrate the old WinCC project to the current version.
    - Export the CSV file with the migrated project.
    - Import the created CSV file into the new WinCC project.
Support to the statistics
With this function the IDs found are listed according to number (format .txt).

Generate list
Copy URL
Display page in new design
mySupport Cockpit
Related links
    Topic pages for this entry