The VALIDATEPKEYS Action checks that Primary Keys in the Staging Database are unique. It will check all Primary Keys specified where

  1. The Primary Key is set to "Active" in Tables Sheet of the Control Spreadsheet.

  2. The relevant Foreign Key table and Primary key table is set to "Active" in the Tables Sheet.

To run VALIDATEPKEYS, open The VIP Server Controller from your desktop or start menu. You must open it as an administrator. If The VIP Server Controller is already running, make sure the relevant .vip workflows are Put in Memory. See this article for instructions.

Next, complete the mandatory parameters in the "Run Flow" tab. If working from a Config file created for the current Subset, you should only need to update the parAction argument and enter any additional optional parameters. You will need to update the location of the Subset

Report and SQLActionsPath if these have changed. See this article for instructions on working with a Config file.



Complete any optional parameters. See this Knowledge Base article for a full list of Arguments and example parameters.

Once you have parameterized the VALIDATEPKEYS Action, make sure your Configuration Spreadsheet, Subset Report and Log file are all shut. Next, click "Create File" and then click "Start" to run the action.

In the output dialogue, you will see "Flow execution completed on remote server. Please check logs for details." once the VALIDATEPKEYS Action is complete":

If you receive an error message in your output dialogue or log, please refer to this article to troubleshoot common issues. You can also run your Action on debug mode for a more detailed log.

The results are created in the Subset Report:

The results can also be analysed in the Log File:

In both instances, "All primary keys satisfied" means that all Primary Keys are unique. Otherwise, the number of non-unique keys is reported.

Run VALIDATEPKEYS from the Command Line

To run VALIDATEPKEYS from the Command Line, first open your re-usable .cmd script in a text editor.

If you have already configured a .cmd script for one Subset Action and wish to edit and re-use that script, you should only need to set "VALIDATEPKEYS" for "Action".

Otherwise, configure all mandatory parameters in the .cmd script.

You can also specify optional parameters at this stage.

Make sure your Control Spreadsheet, the Subset Report, and any Log Files are closed.

Run the script to validate the Primary Keys.

The results are created in the Subset Report:

The results can also be analysed in the Log File.