Truncating the Existing Data Subset

Search Knowledge Base by Keyword

< Back

If you have not used the DROP Action, you will first need to delete the data from your Target Database to perform an updated Subset. This is performed using the TRUNCATE action.

To run TRUNCATE, open The VIP Server Controller from your desktop or start menu. You must open it as an administrator.

Load your re-usable Config file for the current Subset. You should have created this when you ran a previous Action for the same Subset. Instructions for working with Config files are provided in this article.

Next, 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

Specify “Truncate” for parACTION:

parAction=Truncate

Complete any optional parameters. See this article for instructions.

Once you have parameterized the Truncate 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 Truncate 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. You can also check the Log File and Subset Report at this stage, to check that the Actions have performed correctly.

Check your Target Database to make sure the data has been deleted.

Run TRUNCATE from the Command Line

To run TRUNCATE 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 “DROP” 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 delete the data from your Target Database.

Check your Target Database to make sure the data has been deleted.

Next, check the Log File and Subset Report at this stage, to check that the Actions have performed correctly.