Recovering A Corrupted Intouch Application: Tech Note 112
Recovering A Corrupted Intouch Application: Tech Note 112
This Tech Note outlines the most common reasons Wonderware InTouch
applications can become corrupted and provides a step-by-step procedure to
rebuild and recover your application.
Note You should always backup your InTouch application files. If a backup of
your application is not available and the DBDUMP.EXE utility is unable to
create a CSV file from your application database, then only a partial
restoration of your application will be possible and your database must be
recreated from scratch. In such cases, the windows and scripts can often still
be recovered.
WindowViewer starts and runs properly for a while and then suddenly,
for no apparent reason, a GPF or an Assertion error occurs. Usually this
happens when a corrupted script executes on the change of an event
or a corrupted window is called to open.
Note If the conversion halts as described above, move the error message
aside and take note on which window or what type of script the conversion
program stopped. Most likely, that window or script is corrupted.
Note Often it is during this stage that problems are encountered with tags
that will not load. If an ASK dialog box appears, there is probably a problem
with the alarm groups. Click Abort load and then acknowledge the Load
Failed dialog box. Open the WWLogger and observe the DBLoad failure line
(generally at the bottom), writing down the line number where the failure
occurred. Open the DB.CSV file in a worksheet editor such as Microsoft Excel.
Find the row number that matches the line number you noted from the
WWLogger and then fix the problem in this row as reported by the WWLogger.
1. Open one of the imported windows and select all of the items on
the window by selecting Select All from the Edit menu.
2. Select Substitute Tags from the Special menu and then remove
the placeholders by clicking the Convert button. (If you are using
InTouch 7.0, you will have the option to convert local or remote
tags. Since we are linking the placeholders to the local database,
click the Local button.) Then click OK.
3. Select Window/Properties/Scripts or
Special/Scripts/Window Scripts to open the window script
editor. Click Convert (in InTouch 7.0, click the Local button next)
and then click Save to automatically convert all placeholders for all
three window script types: On Show, While Showing, and On Hide.
4. Save the window and close it.
5. Now repeat the steps above for each window in the application that
you imported.
6. Next, select Special/Scripts/Application Scripts to view the
Application scripts. Remove the placeholders by clicking Convert
(in InTouch 7.0, click the Local button next), and then click Save.
Repeat this procedure for each of your Data Change scripts, Condition scripts,
Key scripts, and for InTouch version 7.0, your QuickFunctions.
The Tech Note is published occasionally by Wonderware Technical Support. Editors: Sabrina
Abercromby and Kelly Hauser; Publisher: Wonderware Corporation, 100 Technology Drive, Irvine
CA 92618. There is also technical information on our software products at
www.wonderware.com/support/mmi, our WonderFax fax-on-demand system at (949) 4505050, and the Comprehensive Support Knowledge Base.