---
title: Target reconciliation
description: During source reconciliation, the synchronization process cannot detect situations where no source object exists. In this case, the situation is detected during the second reconciliation phase, target reconciliation.
component: pingoneaic
page_id: pingoneaic:idm-synchronization:target-reconciliation
canonical_url: https://docs.pingidentity.com/pingoneaic/idm-synchronization/target-reconciliation.html
keywords: ["Synchronization", "Reconciliation"]
---

# Target reconciliation

During source reconciliation, the synchronization process cannot detect situations where no source object exists. In this case, the situation is detected during the second reconciliation phase, target reconciliation.

Target reconciliation iterates through the target objects that were not accounted for during source reconciliation. The process checks each object against the `validTarget` filter, determines the appropriate situation, and executes the action configured for the situation. Target reconciliation evaluates the following conditions:

1. Is the target object valid?

   Valid target objects are categorized `qualifies=1`. Invalid target objects are categorized `qualifies=0`. Invalid objects include objects that were filtered out by a `validTarget` script. For more information, refer to [Filter Source and Target Objects With Scripts](chap-restricting-sync.html#filtering-source-and-target).

2. Does the target object have a record in the links table?

   Target objects that have a corresponding link in the `links` table are categorized `link=1`. Target objects that do not have a corresponding link are categorized `link=0`.

3. Does the target object have a corresponding source object?

   Target objects that have a corresponding object in the source resource are categorized `source=1`. Target objects that do not have a corresponding object in the source resource are categorized `source=0`.

The following diagram illustrates the categorization of three sample objects during target reconciliation:

![sync-situations3](_images/sync-situations3.png)Figure 1. Object Categorization During the Target Synchronization Phase

Based on the categorizations of target objects during the target reconciliation phase, a *situation* is assessed for each remaining target object. Not all situations are detected in all synchronization types. The following table describes the set of situations that can be detected during the target reconciliation phase:

**Situations Detected During Target Reconciliation**

| Target Qualifies | Link Exists | Source Exists | Source Qualifies | Situation                                                | Default Action       | Possible Actions                                   |
| ---------------- | ----------- | ------------- | ---------------- | -------------------------------------------------------- | -------------------- | -------------------------------------------------- |
| **NO**           | n/a         | n/a           | n/a              | TARGET\_IGNORED \[[1](#_footnotedef_1 "View footnote.")] | IGNORE               | DELETE, UNLINK, REPORT, NOREPORT, ASYNC            |
| **YES**          | **NO**      | **NO**        | n/a              | UNASSIGNED                                               | EXCEPTION            | IGNORE, REPORT, NOREPORT, ASYNC                    |
| **YES**          | **YES**     | **YES**       | **YES**          | CONFIRMED                                                | UPDATE target object | IGNORE, REPORT, NOREPORT                           |
| **YES**          | **YES**     | **YES**       | **NO**           | UNQUALIFIED \[[2](#_footnotedef_2 "View footnote.")]     | DELETE               | UNLINK, EXCEPTION, IGNORE, REPORT, NOREPORT, ASYNC |
| **YES**          | **YES**     | **NO**        | n/a              | SOURCE\_MISSING \[[3](#_footnotedef_3 "View footnote.")] | EXCEPTION            | DELETE, UNLINK, IGNORE, REPORT, NOREPORT, ASYNC    |

Based on this table, the following situations would be assigned to the previous diagram:

![sync-situations4](_images/sync-situations4.png)Figure 2. Situation Assignment During the Target Synchronization Phase

|   |                                                                                                                                                                                                                                        |
| - | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|   | For more information on how to configure the situations and actions to take in the IDM admin console, refer to [Configure situations and actions using the IDM admin console](chap-situations-actions.html#situations-and-actions-ui). |

***

[1](#_footnoteref_1). During target reconciliation, the target becomes unqualified by the `validTarget` script.[2](#_footnoteref_2). Detected during reconciliation and target change events[3](#_footnoteref_3). Detected during reconciliation and target change events
