Configuring a CSV Policy from an existing file

How to populate the data protection policy with existing column names from a CSV file.

Procedure

  1. Create a SOAP request for the operation configureCSV.
  2. Configure the parameters in the SOAP request (see SOAP request parameters for details).
  3. Remove any optional parameters in the request that you have not set.
  4. Attach the CSV file containing the columns to be protected to the SOAP request.
  5. Enter the same ContentID set in the parameter csvFile in the field ContentID of the file attachment.
    Figure 1: SOAP request - configureCSV
    SOAP request - unveilCSV
  6. In the request properties set the property Enable MTOM to true.
  7. Submit the request.

Results

The web service creates a Policy with given name and matching columns with the CSV File provided. The method of each column is set to Retain Values and can be edited manually:
Figure 2: SOAP request - configureCSV Result
SOAP request - unveilCSV Result
Table 1. Status codes and texts in web service response
Status code Status text
10 "Success"
31 "no csv file provided"
32 "csv is not valid"

Additionally, a detailed error list is provided.

33 "IllegalStateException occurred: " + <error message>
34 "FileNotFoundException while creating a temp file"
35 "IOException while creating a temp file"
36 "Exception occurred: " + <errorMessage>
37 "General exception occurred"

The response also contains a unique requestId. The requestId can be used to distinguish the logs for the respective request in the log file.