When you run the utility using the Windows Task Scheduler or the command prompt, you can repair and report drawings in projects from different sites. However, before running the utility, you must provide the necessary site, plant, and project details in an Excel file format.
-
For a plant with projects, such as an as-built plant, the plant and project names are different. If the plant does not have any projects, enter the plant name in the plant and project columns. The plant and project names that you enter in the Excel file are case-sensitive.
-
The Clean Data utility only runs if a license is available.
-
Except gaps, the utility repairs and deletes orphaned model items and OPCs.
Create the Excel file
-
Open Microsoft Excel on your computer.
-
In the first row, create the INI file path, plant, and project column headers.
-
In the Excel sheet, fill in the rows with the necessary details for each project that you want to analyze.
-
Save the Excel file in a location of your choice.
Schedule a recurring task
-
Open Windows Task Scheduler.
-
In the Task Scheduler > Actions pane, select Create Basic Task.
-
Enter a name and description for the task, and then select Next.
-
For a recurring task, choose either Daily, Weekly, or Monthly, depending on how often you want to run the Clean Data utility.
-
Select Next.
-
Depending on your choice, configure specific settings such as the start time, frequency, and days of the week or month.
-
Select Next.
-
Choose Start a program, and then select Next.
-
Browse and select the DelMorpItemsConsole.exe.
-
In the Add arguments (optional) box, type Command "[Excel file path]".
Replace [Excel file path] with the actual path. For example, Command "C:\Users\Documents\MyExcelFile.xlsx".
-
Select Next, and then select Finish.
For information on the repair and cleanup process status, check the log files located in the %temp% folder. The SPDelOrpModItems.log file contains general log messages, whereas the DBCleanup_[project name].txt file contains log messages about deleted orphaned records.