# Working with Submission Validation Results (RIM)

During submissions publishing and report level content plan publishing, Vault validates the content plan as well as the published content and creates _Submission Validation Result_ records. Vault creates one record for each validation criterion performed against each content plan item in the content plan.

<div class="note-border alert-info">
  <div class="alert alert-info" role="alert">
    <div><i class="far fa-info-circle"></i></div>
    <div class="alert-text">
      <p><strong>Note</strong>: This feature is only available on RIM Submissions and RIM Submissions Publishing Vaults.</p>
    </div>
  </div>
</div>



## Viewing Validation Results

You can view validation results in several areas, primarily within the _Content Plan Item_’s validation results sections. The listed _Validation Result_ (`submission_validation_result__v`) records include the _Validation Result Status_ field, indicating a _Pass_, _Failure_, _Not Executed_, or _Internal Error_ result. The _Detailed Publishing Results_ section also provides troubleshooting steps to resolve validation failures.

Validation results are also captured in:
  * A CSV file containing all results for that content plan item. To access it from the _Validation Results_ record, select **Download Validation Results** from the **Actions** menu.
  * The _Open Validation Results_ field on each _Content Plan Item_ record, reflecting the total number of validation failures.

<div class="note-border alert-info">
  <div class="alert alert-info" role="alert">
    <div><i class="far fa-info-circle"></i></div>
    <div class="alert-text">
      <p><strong>Note</strong>: If your Vault contains existing <em>Publishing Validation Result</em> records, you must contact Veeva Support to enable Vault to capture validation results in individual <em>Validation Results</em> records.</p>
    </div>
  </div>
</div>



### Validation Result Details for Report Level Content Plans

Vault deletes values in existing _Submission Validation Result_ records and creates new ones each time the _Content Plan_ is published. Each _Submission Validation Result_ record also contains a description of the error and the corrective steps required to resolve the error based on validation rules. See [Report Level Content Plan Validation Criteria](/en/lr/54263/) for a list of validation rules.

### Validation Result Details for Submission Content Plans

Vault updates the _Validation Result Status_ and _Open Validation Results_ fields each time validation occurs. If you turn off _Enable Continuous Publishing_ and then enable it again, Vault deletes and recreates all _Submission Validation Results_ records. This allows you to update the validation conditions for a submission.

## Submission Validation Results Archiving {#archiving}

Using the _Validation Results Archival_ job, Vault can archive all _Submission Validation Results_ records into a single XML file. You can then reference validation results without cluttering your Vault with unnecessary object records.

### Job Frequency

The _Validation Results Archival_ job runs daily, but only executes in the following circumstances:

  * When the _Actual Submission Date_ on the _Submission_ record is more than 365 days in the past and at least one _Submission Validation Result_ related to the submission exists
  * When the _Last Published Date_ on the _Report Level Content Plan_ record is more than 365 days in the past and at least one related _Submission Validation Result_ record exists, the _Validation Results Archival_ job automatically

### Job Details

When the _Validation Results Archival_ job executes, Vault automatically:

  * Generates the XML and adds it to a single archive package ZIP file along with the XSL stylesheet and all relevant CSV files from associated _Content Plan Item_ records
  * Adds the archive package to the _Submission_ record or _Report Level Content Plan_ as an attachment
  * Deletes the archived _Submission Validation Result_ records

The job archives all validation results possible and doesn't delete _Submission Validation Results_ records until they are archived successfully. Note that Vault only archives validation results for _Content Plan Items_ that are in an _Active_ status.

### XML Details

The XML includes the following data for each validation result:

|XML Field|Source Object|Source Field|
|--- |--- |--- |
|Name|Content Plan Item|name__v|
|# of Validation Results|Content Plan Item|open_validation_results__v|
|Section|Content Plan|name__v|
|Validation Criteria|Submission Validation Result|publishing_validation_criteria__v|
|Occurrences|Submission Validation Result|occurrences__v|
|Severity|Submission Validation Result|severity__v|
|Problem|Submission Validation Result|problem__v|
|Description|Submission Validation Result|description__v|
|Corrective Action|Submission Validation Result|corrective_action__v|
|Validation Result Status|Submission Validation Result|validation_result_status__v|

[comment]: # Pre-Action UI screenshot removed from Viewing Validation Results (below "You can view..."): file="Submission_Validation_Results_19r13.png"
