Troubleshooting

If the Database Configuration Wizard did not complete successfully, read this troubleshooting information. If your script has stopped midway (this can happen for a number of reasons) you need to edit the Data Mover script generated automatically by the Database Configuration Wizard and restart Data Mover manually. The Data Mover script files have the extension .dms and are sometimes referred to as “DMS scripts.”

The generated Data Mover import script is saved in the PS_APP_HOME/scripts directory. The script conforms to the following naming convention:

<dbname>mss.dms

If the DMS script has stopped midway (this can happen for a number of reasons) you need to edit the script and start again.

If the Database Configuration Wizard fails while creating views, clear the cache folder, for example, C:\PS\CACHE, and restart from the create views step.

See the information on startup settings in PeopleSoft Configuration Manager in the PeopleTools: System and Server Administration product documentation.

To edit and restart the DMS script:

  1. Determine the record that was being imported (that is, which IMPORT command was running) when the script stopped, and use the following guidelines to edit and rerun the DMS scripts.

    When building a DMO database or a multilingual database, adding the SET START statement can be tricky because the Data Mover script used to load the database will include more than one IMPORT statement. The key is to view the log files and determine which IMPORT section of the script Data Mover failed on.

    • If the failure occurred during the first IMPORT statement, add the SET START statement before the first IMPORT *; statement.

    • If the failure occurred during a subsequent IMPORT statement, comment out all statements preceding the IMPORT *; statement where the failure occurred and add the SET START statement before the IMPORT *; statement of the section in which the failure occurred.

    • This is very important: If you see any “unique index constraint” error messages in the “Building required indexes” section, your IMPORT script failed during a subsequent IMPORT but the SET START statement was added to the first IMPORT. In this situation, you can run the Data Mover script in its originally generated form, with only one modification. In the first IMPORT section, change the statement “IMPORT *;” to “REPLACE_DATA *;”. This will delete all the data in the tables, and re-import it. This process will take some time to run, and you will need to separately create each of the indexes that failed.

  2. Run Data Mover as previously described.

    See Running Data Mover.

    The PeopleSoft Logon dialog box appears.

  3. Log on using the ACCESSID to start Data Mover in bootstrap mode.

    Use the Access ID you specified when you created the Data Mover scripts with the Database Setup utility.

    The input window should display the DMS import script for the database. The script has the format <dbname>mss.dms.

  4. If necessary, select File, Open, and browse to the PS_APP_HOME/scripts directory to find the appropriate DMS script.

  5. Open the script for editing with a standard editing tool such as vi.

  6. Add the following line before the offending IMPORT command (the one being executed when the failure occurred):

    SET START <RECORD NAME>;

    <RECORD NAME> is the name of the record that failed. Make sure to review the Data Mover log file to see where the script failed and locate the last record that imported successfully. The SET START command will begin the Data Mover import at the specified record name.

    Note:

    It is a good idea to change the name of the log file in the script before each attempt at running it. This ensures that you have a separate log file for each attempt, if you run the import more than once.

    For example, if the script stops and the table is partially inserted with a message similar to this one:

    Importing  PSPNLFIELD
    Rows inserted into PSPNLFIELD
    3000

    First drop the partially inserted table (for example, record) by using the DROP TABLE command, and then restart Data Mover at the record that failed using the SET START command and continue the Data Mover import. This can be done in a single pass.

    Add the following lines before the offending IMPORT *; command (the one being executed when the failure occurred):

    SET START <RECORD NAME>;
    DROP TABLE <RECORD NAME>;

    For <RECORD NAME>, specify the name of the record that failed. The SET START statement will begin the Data Mover import at the specified <RECORD NAME>.

    Example of the original script:

    REM - PeopleSoft Database - US English
    /
    SET LOG epengs.log;
    SET INPUT epengs.db;
    SET COMMIT 30000;
    SET NO VIEW;
    SET NO SPACE;
    SET NO TRACE;
    SET UNICODE ON;
    IMPORT *;

    Example of script after modification, with changes in bold font:

    REM - PeopleSoft Database - US English
    /
    SET LOG epengs2.log;
    SET INPUT epengs.db;
    SET COMMIT 30000;
    SET NO VIEW;
    SET NO SPACE;
    SET NO TRACE;
    SET UNICODE ON;
    SET START PSPNLFIELD;
    DROP TABLE PSPNLFIELD;
    IMPORT *;

    For the DROP statement, for records with a recname without a leading PS, add PS_ to the beginning of the recname; otherwise the table will not be found. For example, PS_<RECNAME>.

  7. Restart the script (File, Run Script).

  8. To restart the script, use the psdmtx command to execute Data Mover on the command line.

    See Running Data Mover.